Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MovingtoMars/liner
/ functions
Functions
336 in github.com/MovingtoMars/liner
⨍
Functions
336
◇
Types & classes
25
↓ 1 callers
Method
completions
(&self, start: &str)
src/complete.rs:18
↓ 1 callers
Method
current_history_location
None if we're on the new buffer, else the index of history
src/editor.rs:141
↓ 1 callers
Method
cursor_is_at_end_of_line
(&self)
src/editor.rs:549
↓ 1 callers
Method
delete_all_before_cursor
Deletes every character preceding the cursor until the beginning of the line.
src/editor.rs:458
↓ 1 callers
Method
editor_mut
(&mut self)
src/keymap/vi.rs:1011
↓ 1 callers
Function
find_longest_common_prefix
(among: &[Vec<T>])
src/util.rs:8
↓ 1 callers
Function
get_buffer_words
The default for `Context.word_divider_fn`.
src/context.rs:9
↓ 1 callers
Method
get_newest_match
Go through the history and try to find a buffer which starts the same as the new buffer given to this function as argument.
src/history.rs:120
↓ 1 callers
Method
handle_alt_key
(&mut self, c: char)
src/keymap/emacs.rs:46
↓ 1 callers
Method
handle_ctrl_key
(&mut self, c: char)
src/keymap/emacs.rs:25
↓ 1 callers
Method
handle_key_core
(&mut self, _: Key)
src/keymap/mod.rs:84
↓ 1 callers
Method
handle_key_delete_or_change
(&mut self, key: Key)
src/keymap/vi.rs:844
↓ 1 callers
Method
handle_key_g
(&mut self, key: Key)
src/keymap/vi.rs:970
↓ 1 callers
Method
handle_key_insert
(&mut self, key: Key)
src/keymap/vi.rs:487
↓ 1 callers
Method
handle_key_replace
(&mut self, key: Key)
src/keymap/vi.rs:809
↓ 1 callers
Method
handle_last_arg_fetch
(&mut self)
src/keymap/emacs.rs:62
↓ 1 callers
Method
insert_from_buffer
XXX rename, too confusing
src/buffer.rs:221
↓ 1 callers
Function
is_movement_key
(key: Key)
src/keymap/vi.rs:68
↓ 1 callers
Method
move_count_left
Get the current count or the number of remaining chars in the buffer.
src/keymap/vi.rs:438
↓ 1 callers
Function
move_file_contents_backward
(file: &mut File, distance: u64)
src/history.rs:295
↓ 1 callers
Method
move_to_end_of_history
Moves to the end of history (ie. the new buffer).
src/editor.rs:400
↓ 1 callers
Function
move_to_end_of_word_back
(ed: &mut Editor<W>, count: usize)
src/keymap/vi.rs:136
↓ 1 callers
Function
move_to_end_of_word_ws_back
(ed: &mut Editor<W>, count: usize)
src/keymap/vi.rs:140
↓ 1 callers
Method
move_to_start_of_history
Moves to the start of history (ie. the earliest history entry).
src/editor.rs:389
↓ 1 callers
Method
num_bytes
(&self)
src/buffer.rs:182
↓ 1 callers
Method
print_completion_list
(&mut self, completions: &[String])
src/editor.rs:218
↓ 1 callers
Method
print_rest
Takes other buffer, measures its length and prints this buffer from the point where the other stopped. Used to implement autosuggestions.
src/buffer.rs:273
↓ 1 callers
Method
read_line
Creates an `Editor` and feeds it keypresses from stdin until the line is entered. The output is stdout. The returned line has the newline removed. Bef
src/context.rs:70
↓ 1 callers
Method
read_line_with_init_buffer
Same as `Context.read_line()`, but passes the provided initial buffer to the editor. ```no_run use liner::Context; let mut context = Context::new();
src/context.rs:88
↓ 1 callers
Method
redo
(&mut self)
src/buffer.rs:133
↓ 1 callers
Function
remove_codes
(input: &str)
src/util.rs:52
↓ 1 callers
Method
repeat
(&mut self)
src/keymap/vi.rs:447
↓ 1 callers
Method
revert_all_history
(&mut self)
src/context.rs:124
↓ 1 callers
Method
set_max_file_size
Set maximal number of entries in history file
src/history.rs:155
↓ 1 callers
Method
set_max_size
Set maximal number of buffers stored in memory
src/history.rs:150
↓ 1 callers
Method
skip_completions_hint
(&mut self)
src/editor.rs:248
↓ 1 callers
Method
undo
Attempts to undo an action on the current buffer. Returns `Ok(true)` if an action was undone. Returns `Ok(false)` if there was no action to undo.
src/editor.rs:188
↓ 1 callers
Function
width
(s: S)
src/util.rs:4
Function
basic_replace
test basic replace
src/keymap/vi.rs:1649
Method
calc_width
(prompt_width: usize, buf_widths: Vec<usize>, terminal_width: usize)
src/editor.rs:599
Function
change_and_repeat
test repeat with change
src/keymap/vi.rs:2678
Function
change_char_left
test deleting a single char to the left
src/keymap/vi.rs:2593
Function
change_char_right
test deleting a single char to the right
src/keymap/vi.rs:2633
Function
change_chars_left
test deleting multiple chars to the left
src/keymap/vi.rs:2613
Function
change_chars_right
test changing multiple chars to the right
src/keymap/vi.rs:2653
Function
change_line
test changing a line
src/keymap/vi.rs:2571
Function
change_until_end
test change until end of line
src/keymap/vi.rs:2703
Function
change_until_end_from_middle_shift_c
test change until end of line
src/keymap/vi.rs:2745
Function
change_until_end_shift_c
test change until end of line
src/keymap/vi.rs:2725
Function
change_until_start
test change until start of line
src/keymap/vi.rs:2768
Function
change_with_count
test a compound count with change
src/keymap/vi.rs:2793
Function
change_with_count_and_repeat
test a compound count with change and repeat
src/keymap/vi.rs:2820
Function
change_word
test change word
src/keymap/vi.rs:2844
Function
change_word_ge_ws
test change word with 'gE'
src/keymap/vi.rs:3273
Method
clear_actions
(&mut self)
src/buffer.rs:93
Function
count_at_buffer_edge
make sure we only attempt to repeat for as many chars are in the buffer
src/keymap/vi.rs:1628
Function
ctrl_c
ctrl-c should generate an error
src/keymap/mod.rs:125
Function
ctrl_d_empty
when the current buffer is empty, ctrl-d generates and eof error
src/keymap/mod.rs:99
Function
ctrl_d_non_empty
when the current buffer is not empty, ctrl-d should be ignored
src/keymap/mod.rs:112
Function
ctrl_h
ctrl-h should act as backspace
src/keymap/vi.rs:3706
Function
ctrl_h
ctrl-h should act as backspace
src/keymap/emacs.rs:276
Function
cursor_movement
()
src/editor.rs:795
Function
cursor_movement
()
src/keymap/vi.rs:1091
Function
cursor_movement
()
src/keymap/emacs.rs:261
Function
delete_abort
test aborting a delete (and change)
src/keymap/vi.rs:1926
Function
delete_all_after_cursor_undo
test undoing delete_all_after_cursor
src/editor.rs:767
Function
delete_and_repeat
test repeat with delete
src/keymap/vi.rs:2024
Function
delete_char_left
test deleting a single char to the left
src/keymap/vi.rs:1948
Function
delete_char_right
test deleting a single char to the right
src/keymap/vi.rs:1985
Function
delete_chars_left
test deleting multiple chars to the left
src/keymap/vi.rs:1966
Function
delete_chars_right
test deleting multiple chars to the right
src/keymap/vi.rs:2004
Function
delete_line
test deleting a line
src/keymap/vi.rs:1885
Function
delete_line_normal
test for normal mode after deleting a line
src/keymap/vi.rs:1903
Function
delete_until
()
src/editor.rs:834
Function
delete_until_backwards
()
src/editor.rs:808
Function
delete_until_end
test delete until end of line
src/keymap/vi.rs:2044
Function
delete_until_end_shift_d
test delete until end of line
src/keymap/vi.rs:2063
Function
delete_until_forwards
()
src/editor.rs:821
Function
delete_until_inclusive
()
src/editor.rs:847
Function
delete_until_start
test delete until start of line
src/keymap/vi.rs:2081
Function
delete_with_count
test a compound count with delete
src/keymap/vi.rs:2100
Function
delete_with_count_and_repeat
test a compound count with delete and repeat
src/keymap/vi.rs:2121
Function
delete_word
test delete word
src/keymap/vi.rs:2552
Function
dot_replace
test replace with dot
src/keymap/vi.rs:1730
Function
dot_replace_count
test replace with dot
src/keymap/vi.rs:1753
Function
dot_replace_eol
test replace with dot at eol
src/keymap/vi.rs:1778
Function
dot_replace_eol_multiple
test replace with dot at eol multiple times
src/keymap/vi.rs:1799
Function
dot_x_delete
test delete with dot
src/keymap/vi.rs:1865
Method
editor
(&self)
src/keymap/vi.rs:1015
Method
editor
(&self)
src/keymap/emacs.rs:124
Function
enter_is_done
()
src/keymap/vi.rs:1056
Function
enter_is_done
()
src/keymap/emacs.rs:211
Method
fmt
(&self, f: &mut fmt::Formatter)
src/buffer.rs:66
Method
from
(buf: Buffer)
src/buffer.rs:48
Method
from
(ed: Editor<'a, W>)
src/editor.rs:752
Method
from
(vi: Vi<'a, W>)
src/keymap/vi.rs:1021
Method
from
(emacs: Emacs<'a, W>)
src/keymap/emacs.rs:130
Method
from_iter
(t: T)
src/buffer.rs:75
Method
handle_key_core
(&mut self, key: Key)
src/keymap/emacs.rs:97
Method
handle_keys
( mut keymap: M, mut handler: &mut EventHandler<W>, )
src/context.rs:107
← previous
next →
101–200 of 336, ranked by callers