MCPcopy Create free account

hub / github.com/Dimev/mininotes / functions

Functions76 in github.com/Dimev/mininotes

↓ 26 callersFunctionnew
()
src/clipboard.rs:26
↓ 14 callersMethodget_columns_scrolled
get the number of columns scrolled
src/editor.rs:110
↓ 9 callersMethodclear_selection
clear the selection, unselect text, don't edit it
src/editor.rs:246
↓ 7 callersMethodlen_lines
get the number of lines
src/editor.rs:125
↓ 7 callersMethodmove_cursor_horizontal
move cursor horizontally, and save the cursor column if needed
src/editor.rs:310
↓ 7 callersFunctionstring_width
with of a char iterator in unicode characters this helps when working with terminal UI layout
src/unicode.rs:73
↓ 6 callersMethodadd_item
add an item to the UI layout This is intended to work via the builder pattern, so it consumes self, and returns a modified version It might also be po
src/ui.rs:162
↓ 6 callersMethodadd_selection
add to the selection, based on the current cursor position
src/editor.rs:291
↓ 6 callersMethodcut_selection
remove the current selection, and return it, if any
src/editor.rs:259
↓ 5 callersMethodinsert_string
insert a string of characters, at the start byte indicated assumes that start points at a correct grapheme boundary record indicates whether or not to
src/editor.rs:507
↓ 5 callersMethodto_string
convert the contents of the editor to a string
src/editor.rs:120
↓ 4 callersMethodget_cursor_column
get the current position of the column the cursor is on, assuming a terminal program
src/editor.rs:673
↓ 4 callersFunctionmove_grapheme
return the start byte index of the unicode grapheme if the cursor is advanced by amount returns the length of the rope if it's too far
src/unicode.rs:12
↓ 4 callersMethodremove_range
remove a range of characters, in bytes, start..end assumes that the range is in correct graphemes record indicates whether or not to record this actio
src/editor.rs:550
↓ 4 callersFunctionrender
render to the terminal, with differencing to not redraw the whole screen
src/terminal.rs:170
↓ 4 callersFunctionupdate_and_render_to_buffer
update internal editor state, and render to a buffer
src/main.rs:33
↓ 3 callersMethodget_selection_range
get the selection range
src/editor.rs:280
↓ 3 callersMethodget_text
get the entire text
src/editor.rs:100
↓ 3 callersMethodlayout_line
(&self, line: RopeSlice<'a>)
src/terminal.rs:31
↓ 3 callersMethodmove_cursor_to_end_of_line
move the cursor to the end of the line
src/editor.rs:644
↓ 3 callersMethodmove_cursor_vertical
move cursor vertically, and save the column if needed
src/editor.rs:388
↓ 3 callersMethodnext
(&mut self)
src/terminal.rs:65
↓ 2 callersFunctioncleanup_terminal
clean up the terminal
src/terminal.rs:316
↓ 2 callersMethodcombine_horizontal
(self, other: Self, width: u32, split: u32, _: u32)
src/widgets_impl.rs:377
↓ 2 callersMethodcombine_vertical
(self, other: Self, _: u32, split: u32, _: u32)
src/widgets_impl.rs:368
↓ 2 callersMethoddo_change
insert a new, single change
src/editor.rs:220
↓ 2 callersMethodget_character_in_front_of_cursor
get the character before the curosr, if any
src/editor.rs:304
↓ 2 callersMethodget_character_under_cursor
get the character currently under the cursor
src/editor.rs:299
↓ 2 callersMethodget_current_line
get the current line the cursor is on
src/editor.rs:135
↓ 2 callersMethodget_cursor_pos
get the cursor pos, assuming a terminal program this is the true cursor position, not adjusted by scrolling
src/editor.rs:720
↓ 2 callersMethodget_first_visible_line
get the top row that is visible
src/editor.rs:130
↓ 2 callersMethodget_lines_scrolled
get the number of lines scrolled
src/editor.rs:105
↓ 2 callersMethodget_selection
get the current selection, if any
src/editor.rs:251
↓ 2 callersMethodget_tab_width
get the tab width
src/editor.rs:115
↓ 2 callersMethodinsert_character_at_cursor
insert a character
src/editor.rs:419
↓ 2 callersMethodinsert_string_at_cursor
insert a string
src/editor.rs:432
↓ 2 callersMethodmove_cursor_horizontal_words
move the cursor horizontally past a word, and save the column if needed
src/editor.rs:343
↓ 2 callersMethodmove_cursor_to_start_of_line
move the cursor to the start of the line
src/editor.rs:629
↓ 2 callersMethodredo
redo a change
src/editor.rs:196
↓ 2 callersMethodremove_character_or_selection_at_cursor
remove a character at the cursor, or the selection, if any before means remove it before the cursor, wich is what would be expected if a character was
src/editor.rs:479
↓ 2 callersMethodset_text
(&mut self, string: String)
src/clipboard.rs:37
↓ 2 callersMethodundo
undo a change
src/editor.rs:172
↓ 2 callersMethodwidth
get how wide this should be
src/widgets.rs:33
↓ 2 callersMethodwidth_number
how wide the number should be
src/widgets.rs:38
↓ 1 callersMethoddiscard_changes
discards all changes since the save
src/editor.rs:151
↓ 1 callersMethoddraw
draw the UI
src/ui.rs:83
↓ 1 callersMethodget_color_background_crossterm
returns the background color
src/terminal.rs:159
↓ 1 callersMethodget_color_foreground_crossterm
returns the foreground color
src/terminal.rs:149
↓ 1 callersMethodget_relative_cursor_pos
gets the cursor position adjusted by scrolling
src/editor.rs:731
↓ 1 callersMethodget_row_and_column
get the row and column this is equivalent to getting the cursor position assuming a terminal text layout
src/editor.rs:695
↓ 1 callersMethodinsert_newline_at_cursor
insert a newline also inserts all spaces preceeding the current line, up to the cursor position
src/editor.rs:448
↓ 1 callersMethodinsert_tab_at_cursor
insert a tab
src/editor.rs:441
↓ 1 callersMethodinteract
handle interactions
src/ui.rs:73
↓ 1 callersFunctionis_newline
newline, as recognized by ropey, so either one of line feed, carriage return, vertical tab, form feed, next line, line separator, paragraph separator
src/unicode.rs:87
↓ 1 callersMethodmaximum_size
(&self, width: u32, height: u32)
src/widgets_impl.rs:70
↓ 1 callersMethodminimum_size
(&self, _: u32, _: u32)
src/widgets_impl.rs:66
↓ 1 callersMethodmove_cursor_to_column
move the cursor to a specific column, assuming a terminal program
src/editor.rs:597
↓ 1 callersMethodscroll_vertically
scroll the visible window by some amount, and ensure that visually the cursor remains on the same line
src/editor.rs:790
↓ 1 callersMethodset_cursor_pos
set the cursor pos
src/editor.rs:742
↓ 1 callersMethodset_relative_cursor_pos
set the cursor pos, relative to scrolling
src/editor.rs:780
↓ 1 callersMethodset_saved
set the save point in the history to now this means that the current content should be saved to a file
src/editor.rs:141
↓ 1 callersMethodset_scroll
set the right scrolling values so the text stays in frame margins are how many characters before and after on that axis should remain visible
src/editor.rs:800
↓ 1 callersFunctionsetup_terminal
setup the terminal
src/terminal.rs:279
↓ 1 callersFunctionterminal_main
run the program in the terminal
src/main.rs:100
Methodcombine
(self, other: Self)
src/widgets_impl.rs:353
Methoddraw
(&self, width: u32, height: u32)
src/widgets_impl.rs:38
Methodempty
()
src/widgets_impl.rs:349
Methodget_text
(&mut self)
src/clipboard.rs:33
Methodhas_changed_since_save
get if the contents have been changed since last save
src/editor.rs:146
Methodinteract
(&self, _: &UiEvent, _: u32, _: u32, _: u32, _: u32)
src/widgets_impl.rs:60
Functionmain
()
src/main.rs:366
Methodnew
create a new layout
src/ui.rs:65
Methodnew
(tab_width: usize)
src/terminal.rs:23
Methodnew
create a new editor from the given string and layout settings newly loaded means it's unsaved
src/editor.rs:82
Methodnew
create a new line numbers bar bar starts at start, total is the total number of lines that can be displayed, relative for whether to display line numb
src/widgets.rs:23
Methodnew_text
create a new char, as a text element
src/terminal.rs:111