Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dimev/mininotes
/ functions
Functions
76 in github.com/Dimev/mininotes
⨍
Functions
76
◇
Types & classes
23
↓ 26 callers
Function
new
()
src/clipboard.rs:26
↓ 14 callers
Method
get_columns_scrolled
get the number of columns scrolled
src/editor.rs:110
↓ 9 callers
Method
clear_selection
clear the selection, unselect text, don't edit it
src/editor.rs:246
↓ 7 callers
Method
len_lines
get the number of lines
src/editor.rs:125
↓ 7 callers
Method
move_cursor_horizontal
move cursor horizontally, and save the cursor column if needed
src/editor.rs:310
↓ 7 callers
Function
string_width
with of a char iterator in unicode characters this helps when working with terminal UI layout
src/unicode.rs:73
↓ 6 callers
Method
add_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 callers
Method
add_selection
add to the selection, based on the current cursor position
src/editor.rs:291
↓ 6 callers
Method
cut_selection
remove the current selection, and return it, if any
src/editor.rs:259
↓ 5 callers
Method
insert_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 callers
Method
to_string
convert the contents of the editor to a string
src/editor.rs:120
↓ 4 callers
Method
get_cursor_column
get the current position of the column the cursor is on, assuming a terminal program
src/editor.rs:673
↓ 4 callers
Function
move_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 callers
Method
remove_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 callers
Function
render
render to the terminal, with differencing to not redraw the whole screen
src/terminal.rs:170
↓ 4 callers
Function
update_and_render_to_buffer
update internal editor state, and render to a buffer
src/main.rs:33
↓ 3 callers
Method
get_selection_range
get the selection range
src/editor.rs:280
↓ 3 callers
Method
get_text
get the entire text
src/editor.rs:100
↓ 3 callers
Method
layout_line
(&self, line: RopeSlice<'a>)
src/terminal.rs:31
↓ 3 callers
Method
move_cursor_to_end_of_line
move the cursor to the end of the line
src/editor.rs:644
↓ 3 callers
Method
move_cursor_vertical
move cursor vertically, and save the column if needed
src/editor.rs:388
↓ 3 callers
Method
next
(&mut self)
src/terminal.rs:65
↓ 2 callers
Function
cleanup_terminal
clean up the terminal
src/terminal.rs:316
↓ 2 callers
Method
combine_horizontal
(self, other: Self, width: u32, split: u32, _: u32)
src/widgets_impl.rs:377
↓ 2 callers
Method
combine_vertical
(self, other: Self, _: u32, split: u32, _: u32)
src/widgets_impl.rs:368
↓ 2 callers
Method
do_change
insert a new, single change
src/editor.rs:220
↓ 2 callers
Method
get_character_in_front_of_cursor
get the character before the curosr, if any
src/editor.rs:304
↓ 2 callers
Method
get_character_under_cursor
get the character currently under the cursor
src/editor.rs:299
↓ 2 callers
Method
get_current_line
get the current line the cursor is on
src/editor.rs:135
↓ 2 callers
Method
get_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 callers
Method
get_first_visible_line
get the top row that is visible
src/editor.rs:130
↓ 2 callers
Method
get_lines_scrolled
get the number of lines scrolled
src/editor.rs:105
↓ 2 callers
Method
get_selection
get the current selection, if any
src/editor.rs:251
↓ 2 callers
Method
get_tab_width
get the tab width
src/editor.rs:115
↓ 2 callers
Method
insert_character_at_cursor
insert a character
src/editor.rs:419
↓ 2 callers
Method
insert_string_at_cursor
insert a string
src/editor.rs:432
↓ 2 callers
Method
move_cursor_horizontal_words
move the cursor horizontally past a word, and save the column if needed
src/editor.rs:343
↓ 2 callers
Method
move_cursor_to_start_of_line
move the cursor to the start of the line
src/editor.rs:629
↓ 2 callers
Method
redo
redo a change
src/editor.rs:196
↓ 2 callers
Method
remove_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 callers
Method
set_text
(&mut self, string: String)
src/clipboard.rs:37
↓ 2 callers
Method
undo
undo a change
src/editor.rs:172
↓ 2 callers
Method
width
get how wide this should be
src/widgets.rs:33
↓ 2 callers
Method
width_number
how wide the number should be
src/widgets.rs:38
↓ 1 callers
Method
discard_changes
discards all changes since the save
src/editor.rs:151
↓ 1 callers
Method
draw
draw the UI
src/ui.rs:83
↓ 1 callers
Method
get_color_background_crossterm
returns the background color
src/terminal.rs:159
↓ 1 callers
Method
get_color_foreground_crossterm
returns the foreground color
src/terminal.rs:149
↓ 1 callers
Method
get_relative_cursor_pos
gets the cursor position adjusted by scrolling
src/editor.rs:731
↓ 1 callers
Method
get_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 callers
Method
insert_newline_at_cursor
insert a newline also inserts all spaces preceeding the current line, up to the cursor position
src/editor.rs:448
↓ 1 callers
Method
insert_tab_at_cursor
insert a tab
src/editor.rs:441
↓ 1 callers
Method
interact
handle interactions
src/ui.rs:73
↓ 1 callers
Function
is_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 callers
Method
maximum_size
(&self, width: u32, height: u32)
src/widgets_impl.rs:70
↓ 1 callers
Method
minimum_size
(&self, _: u32, _: u32)
src/widgets_impl.rs:66
↓ 1 callers
Method
move_cursor_to_column
move the cursor to a specific column, assuming a terminal program
src/editor.rs:597
↓ 1 callers
Method
scroll_vertically
scroll the visible window by some amount, and ensure that visually the cursor remains on the same line
src/editor.rs:790
↓ 1 callers
Method
set_cursor_pos
set the cursor pos
src/editor.rs:742
↓ 1 callers
Method
set_relative_cursor_pos
set the cursor pos, relative to scrolling
src/editor.rs:780
↓ 1 callers
Method
set_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 callers
Method
set_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 callers
Function
setup_terminal
setup the terminal
src/terminal.rs:279
↓ 1 callers
Function
terminal_main
run the program in the terminal
src/main.rs:100
Method
combine
(self, other: Self)
src/widgets_impl.rs:353
Method
draw
(&self, width: u32, height: u32)
src/widgets_impl.rs:38
Method
empty
()
src/widgets_impl.rs:349
Method
get_text
(&mut self)
src/clipboard.rs:33
Method
has_changed_since_save
get if the contents have been changed since last save
src/editor.rs:146
Method
interact
(&self, _: &UiEvent, _: u32, _: u32, _: u32, _: u32)
src/widgets_impl.rs:60
Function
main
()
src/main.rs:366
Method
new
create a new layout
src/ui.rs:65
Method
new
(tab_width: usize)
src/terminal.rs:23
Method
new
create a new editor from the given string and layout settings newly loaded means it's unsaved
src/editor.rs:82
Method
new
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
Method
new_text
create a new char, as a text element
src/terminal.rs:111