var searchIndex = {}; searchIndex["liner"] = {"doc":"","items":[[3,"Event","liner","",null,null],[12,"editor","","",0,null],[12,"kind","","",0,null],[3,"Editor","","",null,null],[3,"BasicCompleter","","",null,null],[3,"FilenameCompleter","","",null,null],[3,"Context","","",null,null],[12,"history","","",1,null],[12,"completer","","",1,null],[12,"word_fn","","",1,null],[3,"Buffer","","",null,null],[3,"History","","Structure encapsulating command history",null,null],[12,"buffers","","Vector of buffers to store history in",2,null],[4,"EventKind","","",null,null],[13,"BeforeKey","","Sent in `Editor.handle_key()`, before handling the key.",3,null],[13,"AfterKey","","Sent in `Editor.handle_key()`, after handling the key.",3,null],[13,"BeforeComplete","","Sent in `Editor.complete()`, before processing the completion.",3,null],[4,"CursorPosition","","Represents the position of the cursor relative to words in the buffer.",null,null],[13,"InWord","","The cursor is in the word with the specified index.",4,null],[13,"OnWordLeftEdge","","The cursor is on the left edge of the word with the specified index.\nFor example: `abc |hi`, where `|` is the cursor.",4,null],[13,"OnWordRightEdge","","The cursor is on the right edge of the word with the specified index.\nFor example: `abc| hi`, where `|` is the cursor.",4,null],[13,"InSpace","","The cursor is not in contact with any word. Each `Option<usize>` specifies the index of the\nclosest word to the left and right, respectively, or `None` if there is no word on that side.",4,null],[4,"Action","","",null,null],[13,"Insert","","",5,null],[12,"start","liner::Action","",5,null],[12,"text","","",5,null],[13,"Remove","liner","",5,null],[12,"start","liner::Action","",5,null],[12,"text","","",5,null],[5,"get_buffer_words","liner","The default for `Context.word_fn`.",null,{"inputs":[{"name":"buffer"}],"output":{"name":"vec"}}],[11,"new","","",0,{"inputs":[{"name":"editor"},{"name":"eventkind"}],"output":{"name":"self"}}],[11,"fmt","","",3,null],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"clone","","",4,null],[11,"fmt","","",4,null],[11,"get","","",4,null],[11,"new","","",6,{"inputs":[{"name":"w"},{"name":"string"},{"name":"context"}],"output":{"name":"result"}}],[11,"get_words_and_cursor_position","","",6,null],[11,"set_prompt","","",6,null],[11,"context","","",6,null],[11,"cursor","","",6,null],[11,"handle_key","","",6,null],[11,"undo","","Attempts to undo an action on the current buffer.",6,null],[11,"redo","","",6,null],[11,"revert","","",6,null],[11,"delete_word_before_cursor","","Deletes the word preceding the cursor.\nIf `ignore_space_before_cursor` is true and there is space directly before the cursor,\nthis method ignores that space until it finds a word.\nIf `ignore_space_before_cursor` is false and there is space directly before the cursor,\nnothing is deleted.",6,null],[11,"clear","","Clears the screen then prints the prompt and current buffer.",6,null],[11,"move_up","","Move up (backwards) in history.",6,null],[11,"move_down","","Move down (forwards) in history, or to the new buffer if we reach the end of history.",6,null],[11,"move_to_start_of_history","","Moves to the start of history (ie. the earliest history entry).",6,null],[11,"move_to_end_of_history","","Moves to the end of history (ie. the new buffer).",6,null],[11,"insert_str_after_cursor","","Inserts a string directly after the cursor, moving the cursor to the right.",6,null],[11,"insert_after_cursor","","Inserts a character directly after the cursor, moving the cursor to the right.",6,null],[11,"insert_chars_after_cursor","","Inserts characters directly after the cursor, moving the cursor to the right.",6,null],[11,"delete_before_cursor","","Deletes the character directly before the cursor, moving the cursor to the left.\nIf the cursor is at the start of the line, nothing happens.",6,null],[11,"delete_after_cursor","","Deletes the character directly after the cursor. The cursor does not move.\nIf the cursor is at the end of the line, nothing happens.",6,null],[11,"delete_all_before_cursor","","Deletes every character preceding the cursor until the beginning of the line.",6,null],[11,"delete_all_after_cursor","","Deletes every character after the cursor until the end of the line.",6,null],[11,"move_cursor_left","","Moves the cursor to the left by `count` characters.\nThe cursor will not go past the start of the buffer.",6,null],[11,"move_cursor_right","","Moves the cursor to the right by `count` characters.\nThe cursor will not go past the end of the buffer.",6,null],[11,"move_cursor_to","","Moves the cursor to `pos`. If `pos` is past the end of the buffer, it will be clamped.",6,null],[11,"move_cursor_to_start_of_line","","Moves the cursor to the start of the line.",6,null],[11,"move_cursor_to_end_of_line","","Moves the cursor to the end of the line.",6,null],[11,"current_buffer","","Returns a reference to the current buffer being edited.\nThis may be the new buffer or a buffer from history.",6,null],[11,"print_current_buffer","","Deletes the displayed prompt and buffer, replacing them with the current prompt and buffer",6,null],[11,"new","","",7,{"inputs":[{"name":"vec"}],"output":{"name":"basiccompleter"}}],[11,"completions","","",7,null],[11,"new","","",8,{"inputs":[{"name":"option"}],"output":{"name":"self"}}],[11,"completions","","",8,null],[11,"new","","",1,{"inputs":[],"output":{"name":"self"}}],[11,"read_line","","Creates an `Editor` and feeds it keypresses from stdin until the line is entered.\nThe output is stdout.\nThe returned line has the newline removed.\nBefore returning, will revert all changes to the history buffers.",1,null],[11,"revert_all_history","","",1,null],[11,"clone","","",5,null],[11,"fmt","","",5,null],[11,"do_on","","",5,null],[11,"undo","","",5,null],[11,"clone","","",9,null],[11,"fmt","","",9,null],[11,"from","","",9,{"inputs":[{"name":"string"}],"output":{"name":"self"}}],[11,"from","","",9,{"inputs":[{"name":"str"}],"output":{"name":"self"}}],[11,"from_iter","","",9,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"new","","",9,{"inputs":[],"output":{"name":"self"}}],[11,"clear_actions","","",9,null],[11,"undo","","",9,null],[11,"redo","","",9,null],[11,"revert","","",9,null],[11,"num_chars","","",9,null],[11,"num_bytes","","",9,null],[11,"width","","",9,null],[11,"char_before","","",9,null],[11,"char_after","","",9,null],[11,"remove","","Returns the number of characters removed.",9,null],[11,"insert","","",9,null],[11,"range","","",9,null],[11,"range_chars","","",9,null],[11,"range_width","","",9,null],[11,"chars","","",9,null],[11,"truncate","","",9,null],[11,"print","","",9,null],[11,"new","","Create new History structure.",2,{"inputs":[],"output":{"name":"history"}}],[11,"len","","Number of items in history.",2,null],[11,"push","","Add a command to the history buffer and remove the oldest commands when the max history\nsize has been met. If writing to the disk is enabled, this function will be used for\nlogging history to the designated history file.",2,null],[11,"file_name","","Get the history file name.",2,null],[11,"set_file_name","","Set history file name. At the same time enable history.",2,null],[11,"set_max_size","","Set maximal number of buffers stored in memory",2,null],[11,"set_max_file_size","","Set maximal number of entries in history file",2,null],[11,"load_history","","Load history from given file name",2,null],[11,"index","","",2,null],[11,"index_mut","","",2,null],[6,"EventHandler","","",null,null],[8,"Completer","","",null,null],[10,"completions","","",10,null]],"paths":[[3,"Event"],[3,"Context"],[3,"History"],[4,"EventKind"],[4,"CursorPosition"],[4,"Action"],[3,"Editor"],[3,"BasicCompleter"],[3,"FilenameCompleter"],[3,"Buffer"],[8,"Completer"]]}; initSearch(searchIndex);