Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Bruce-Hopkins/code-editor-prototype
/ functions
Functions
314 in github.com/Bruce-Hopkins/code-editor-prototype
⨍
Functions
314
◇
Types & classes
59
↓ 31 callers
Method
line
(&self)
src/core/position.rs:65
↓ 28 callers
Method
can_edit_textbox
For methods that requiere editing the state of the textbox. */
src/lib.rs:592
↓ 24 callers
Method
character
(&self)
src/core/position.rs:69
↓ 24 callers
Method
to_string
(&self)
src/core/document.rs:31
↓ 19 callers
Method
len
(&self)
src/core/buffer.rs:88
↓ 18 callers
Method
into
(self)
src/core/position.rs:54
↓ 16 callers
Method
children
(&self)
src/widgets/main_view.rs:44
↓ 14 callers
Method
width
(&self)
src/widgets/main_view.rs:88
↓ 10 callers
Method
start
(&self)
src/core/selection.rs:16
↓ 9 callers
Method
clear
* Sets both positions of the selection to the smallest value. * * Sets the cursor to the position of the selection */
src/core/selection.rs:71
↓ 9 callers
Method
clear_floating_elements
(&mut self)
src/widgets/textbox.rs:214
↓ 9 callers
Method
end
(&self)
src/core/selection.rs:20
↓ 9 callers
Method
height
(&self)
src/widgets/textbox.rs:258
↓ 9 callers
Method
is_empty
Returns true if the start and end values are not the same */
src/core/selection.rs:27
↓ 8 callers
Method
padding
* The padding of the virual window in pixels */
src/core/window.rs:116
↓ 7 callers
Function
file_path
(relative_path: &str)
src/lsp/client.rs:146
↓ 6 callers
Method
buffer
(&self)
src/widgets/textbox.rs:285
↓ 6 callers
Method
correct_position
* Corrects the position of the cursor when it's out of bounds */
src/core/buffer.rs:303
↓ 6 callers
Method
filename
(&self)
src/core/buffer.rs:72
↓ 6 callers
Method
line_len
* Get's the length of characters within the line */
src/core/buffer.rs:99
↓ 6 callers
Method
move_vertically
(&mut self, distance: isize)
src/core/buffer.rs:263
↓ 6 callers
Method
set_character
(&mut self, character: usize)
src/core/position.rs:77
↓ 5 callers
Method
as_initialized
(&self)
src/lsp/client.rs:41
↓ 5 callers
Method
buffer
(&self)
src/core/buffer.rs:80
↓ 5 callers
Method
send_notification
* Sends an LSP notification */
src/lsp/transport.rs:81
↓ 5 callers
Method
start_line
(&self)
src/core/window.rs:139
↓ 4 callers
Method
children
(&self)
src/widgets/view_port.rs:50
↓ 4 callers
Method
delete
(&mut self)
src/core/buffer.rs:128
↓ 4 callers
Method
end_line
(&self)
src/core/window.rs:143
↓ 4 callers
Method
get_line_bytes
(&self, line_number: usize)
src/core/document.rs:118
↓ 4 callers
Method
insert
(&mut self, content: String)
src/core/buffer.rs:158
↓ 4 callers
Method
move_horizontally
(&mut self, distance: isize, text_info: &TextInfo)
src/core/buffer.rs:248
↓ 4 callers
Method
move_selection_with_shift
(&mut self, modifier: Modifiers)
src/widgets/textbox.rs:75
↓ 4 callers
Method
select
* Selects a color based on the highlighted item. * * If at any time the highlighted item is `None` what means the iterator is finished, so w
src/highlighter/color_selector.rs:57
↓ 4 callers
Method
text_info
(&self)
src/widgets/textbox.rs:230
↓ 3 callers
Method
children
(&self)
src/widgets/textbox_container.rs:66
↓ 3 callers
Method
get_character_pos
(&self, position: &Position)
src/core/document.rs:110
↓ 3 callers
Method
get_line
(&self, line_idx: usize)
src/core/document.rs:149
↓ 3 callers
Method
get_position
(&self)
src/core/buffer.rs:236
↓ 3 callers
Method
height
(&self)
src/core/window.rs:50
↓ 3 callers
Method
is_saved
(&self)
src/lib.rs:605
↓ 3 callers
Method
is_within
* Returns if the pos is greater than or eq the start pos and less than the end pos */
src/core/position.rs:83
↓ 3 callers
Function
layout
(child: Element<'a, Message>, modal: Option<Element<'a, Message>>, is_saved: bool)
src/widgets/layout.rs:10
↓ 3 callers
Method
lines
(&self)
src/core/buffer.rs:120
↓ 3 callers
Method
modal_view
(&self)
src/lib.rs:601
↓ 3 callers
Method
new_file
(&mut self, commands: &mut Vec<Command<Message>>)
src/lib.rs:329
↓ 3 callers
Function
read_message
(reader: &mut BufReader<T>)
src/lsp/transport.rs:374
↓ 3 callers
Method
send
(self, msg: JsonRpc)
src/lsp/transport.rs:74
↓ 3 callers
Method
set_end
Sets the end position of the selection. */
src/core/selection.rs:41
↓ 3 callers
Method
text_width
(&self)
src/widgets/textbox.rs:241
↓ 3 callers
Method
workspace
(&self)
src/lib.rs:650
↓ 2 callers
Method
change_file
(&mut self, file: String, commands: &mut Vec<Command<Message>>)
src/lib.rs:641
↓ 2 callers
Method
character_deleted
(&mut self, start_byte: usize, end_byte: usize, start_pos: Position, end_pos: Position)
src/core/buffer.rs:149
↓ 2 callers
Method
character_inputed
(&mut self, start_byte: usize, end_byte:usize, start_pos: Position, end_pos:Position, length: usize)
src/core/buffer.rs:154
↓ 2 callers
Method
correct_possition_x
(&mut self, longest_line: usize, text_width: f32)
src/core/window.rs:88
↓ 2 callers
Method
correct_possition_y
(&mut self, lines: usize)
src/core/window.rs:79
↓ 2 callers
Method
default_text_color
(&self)
src/highlighter/color_selector.rs:39
↓ 2 callers
Method
did_save
(self, path: String)
src/lsp/transport.rs:178
↓ 2 callers
Method
edit
(&mut self, input: &InputEdit, content: &RopeSlice)
src/highlighter/mod.rs:39
↓ 2 callers
Method
end_character
(&self, text_width: f32)
src/core/window.rs:151
↓ 2 callers
Method
get_cursor_row_len
(&self)
src/core/buffer.rs:276
↓ 2 callers
Function
get_files
* Uses breadth first search to find all the folders in a given directory. Does not search for the files within the excluded list. */
src/widgets/modal/file_selector.rs:86
↓ 2 callers
Method
get_selected_text
(&self)
src/core/buffer.rs:197
↓ 2 callers
Function
line_hit_test
(text: &Document, line_height: f32, glyph_width: f32, point: Point)
src/widgets/textbox_container.rs:294
↓ 2 callers
Method
lines_height
(&self)
src/core/window.rs:147
↓ 2 callers
Method
move_offset_x
(&mut self, direction: MoveDirectionX, longest_line: usize, text_width: f32)
src/core/window.rs:105
↓ 2 callers
Method
move_offset_y
(&mut self, direction: MoveDirectionY, lines: usize)
src/core/window.rs:97
↓ 2 callers
Method
move_to_end_of_insert
(&mut self, insert: String)
src/core/position.rs:170
↓ 2 callers
Method
open_document
(self, path: String)
src/lsp/transport.rs:129
↓ 2 callers
Method
open_folder
(&self)
src/lib.rs:619
↓ 2 callers
Method
pos_in_range
(&self, pos: Position)
src/core/selection.rs:93
↓ 2 callers
Function
process_reader
(reader: &mut BufReader<T>, sender: &Sender<Input>, message: impl Fn(String) -> Input)
src/lsp/transport.rs:30
↓ 2 callers
Method
recv
* Receives a message from the LSP. * * If it fails to recieve a message, it will print an error and return early. * If it succeeds, i
src/lsp/transport.rs:207
↓ 2 callers
Method
replace
(&mut self, start_idx:&Position, end_idx:&Position, character: String)
src/core/buffer.rs:124
↓ 2 callers
Method
save
(&mut self, workspace: Option<String>)
src/core/buffer.rs:76
↓ 2 callers
Function
send
* A generic send method for both notifications and requests */
src/lsp/transport.rs:347
↓ 2 callers
Method
set_curor
(&mut self, cursor: Position)
src/widgets/textbox.rs:276
↓ 2 callers
Method
set_file
(&mut self, document: Document, old_file: Option<String>, commands: &mut Vec<Command<Message>>)
src/lib.rs:339
↓ 2 callers
Method
set_floating_message
(&mut self)
src/widgets/textbox.rs:185
↓ 2 callers
Method
set_focus
(&mut self, focus: bool)
src/widgets/textbox.rs:71
↓ 2 callers
Method
set_modal
(&mut self, file: String)
src/lib.rs:612
↓ 2 callers
Method
set_selection
(&mut self, pos: Position)
src/widgets/textbox.rs:301
↓ 2 callers
Method
set_selection_end
(&mut self, pos: Position)
src/widgets/textbox.rs:307
↓ 2 callers
Method
set_start
Sets the start positions of the selection. */
src/core/selection.rs:34
↓ 2 callers
Method
set_workspace
(&mut self, file: Option<PathBuf>, commands: &mut Vec<Command<Message>>)
src/lib.rs:657
↓ 2 callers
Method
show
(&self, filter: &str)
src/widgets/modal/file_selector.rs:18
↓ 2 callers
Method
slice_all
(&self)
src/core/document.rs:46
↓ 2 callers
Method
start_character
(&self, text_width: f32)
src/core/window.rs:155
↓ 2 callers
Method
width
(&self)
src/widgets/view_port.rs:76
↓ 1 callers
Method
add
(&mut self, position: Self)
src/core/position.rs:94
↓ 1 callers
Method
add_diagnostics
* Adds the diagnostic to the buffer if the paths match. */
src/core/buffer.rs:44
↓ 1 callers
Method
backspace
(&mut self)
src/widgets/textbox.rs:130
↓ 1 callers
Method
close_floating_elements
* Closes both floating elements and modals */
src/lib.rs:775
↓ 1 callers
Method
closed_document
(self, path: String)
src/lsp/transport.rs:148
↓ 1 callers
Method
color
(&self)
src/lsp/response.rs:39
↓ 1 callers
Function
connect
(client_id: usize, reciever: MessageReciever)
src/lsp/connect.rs:14
↓ 1 callers
Method
copy
* Copies the selected text */
src/core/buffer.rs:209
↓ 1 callers
Method
correct_position
Returns a new selection with the positions corrected. If the start pos is greater than the end, it will swap the values */
src/core/selection.rs:58
↓ 1 callers
Method
correct_position
(&mut self)
src/widgets/textbox.rs:289
↓ 1 callers
Method
correct_position_to_cursor
(&mut self, text_width: f32, longest_line: usize)
src/core/buffer.rs:240
next →
1–100 of 314, ranked by callers