MCPcopy Create free account

hub / github.com/bazed-editor/bazed / functions

Functions319 in github.com/bazed-editor/bazed

↓ 45 callersFunctionsetup_test
Set up logging and color_eyre for tests globally
crates/bazed-core/src/test_util.rs:7
↓ 36 callersFunctionkey
(k: &str)
crates/bazed-core/src/vim_interface.rs:368
↓ 31 callersMethodmove_carets
Move carets by a given motion, collapsing any selections down into carets.
crates/bazed-core/src/buffer.rs:322
↓ 28 callersMethodapply_buffer_op
(&mut self, vp: &Viewport, op: BufferOp)
crates/bazed-core/src/buffer.rs:292
↓ 28 callersMethodclone
(&self)
crates/bazed-stew-interface/src/stew_rpc.rs:76
↓ 28 callersMethodlen
(&self)
crates/bazed-core/src/buffer.rs:60
↓ 22 callersMethodinsert_at_carets
(&mut self, chars: &str)
crates/bazed-core/src/buffer.rs:167
↓ 22 callersMethodmap
recursively map a function over the leaves of this node
crates/bazed-input-mapper/src/keymap.rs:41
↓ 18 callersFunctionleaf
( desc: &str, f: F, )
crates/bazed-core/src/vim_interface.rs:375
↓ 13 callersMethodundo
(&mut self)
crates/bazed-core/src/buffer.rs:218
↓ 11 callersMethodnext
(&mut self)
crates/bazed-core/src/word_boundary.rs:144
↓ 10 callersMethodrange
Return the head and tail in order of offset
crates/bazed-core/src/region.rs:80
↓ 10 callersMethodset_primary_caret
Directly overwrite the primary caret / selection. Note** that you should ensure you're always setting a sticky region here.
crates/bazed-core/src/buffer/buffer_regions.rs:115
↓ 9 callersMethoddelete_at_carets
(&mut self, vp: &Viewport, motion: Motion<'_>)
crates/bazed-core/src/buffer.rs:206
↓ 9 callersMethodstart_new_undo_group
If a new undo group should be created, creates a new undo group id, truncates any history-elements that are in the future and adds the new group to th
crates/bazed-core/src/buffer/undo_history.rs:56
↓ 8 callersFunctionmapping
( f: F, )
crates/bazed-core/src/vim_interface.rs:382
↓ 8 callersMethodswitch_mode
(&mut self, mode: VimMode)
crates/bazed-core/src/vim_interface.rs:99
↓ 7 callersMethodinto_iter
(self)
crates/bazed-input-mapper/src/input_event.rs:58
↓ 7 callersMethodkeymap_id
(&self)
crates/bazed-core/src/vim_interface.rs:30
↓ 7 callersMethodsend
* * @param {ToBackend} message - to send to backend
node_packages/bazed-svelte/src/lib/rpc.ts:33
↓ 6 callersFunctionlog
(level: Level, ...params: any[])
node_packages/bazed-svelte/src/lib/log.ts:66
↓ 6 callersMethodredo
(&mut self)
crates/bazed-core/src/buffer.rs:226
↓ 6 callersMethodwith_mods
(mut self, mods: Modifiers)
crates/bazed-input-mapper/src/key_combo.rs:71
↓ 5 callersMethodcarets
Return all carets in this buffer. Guaranteed to be ordered and non-overlapping
crates/bazed-core/src/buffer/buffer_regions.rs:58
↓ 5 callersFunctionelt
( tag: string, content?: string | HTMLElement[] | null, className?: string | null, cssText?: string, )
node_packages/bazed-svelte/src/lib/common.ts:35
↓ 5 callersMethodmake_carets_consistent
Ensure that the list of carets is ordered and carets are not overlapping. TODO For now, we just run this after any change to the regions, which is ob
crates/bazed-core/src/buffer/buffer_regions.rs:126
↓ 5 callersMethodmatches
Compare two word boundaries, checking if they match. If either boundary is `Other` this will always match
crates/bazed-core/src/word_boundary.rs:72
↓ 5 callersFunctionnormal_mode_movement_key_motion_keymap
()
crates/bazed-core/src/vim_interface.rs:283
↓ 5 callersMethodsend_response_to
( &self, plugin_id: PluginId, invocation_id: InvocationId, data: InvocationRes
crates/bazed-stew/src/lib.rs:268
↓ 5 callersMethodsend_rpc
(&mut self, call: ToFrontend)
crates/bazed-rpc/src/server.rs:14
↓ 4 callersFunctionapply_motion_to_region
Apply a given motion to a region. if `only_move_head` is false, the tail of the region gets set to the new head, collapsing it into a cursor. May res
crates/bazed-core/src/buffer/movement.rs:11
↓ 4 callersFunctionboundaries
(s: &str)
crates/bazed-core/src/word_boundary.rs:220
↓ 4 callersFunctioncheck
(expected: usize, start: usize, t: &str)
crates/bazed-core/src/buffer/movement.rs:126
↓ 4 callersMethodcommit_delta
(&mut self, delta: RopeDelta, edit_type: EditType)
crates/bazed-core/src/buffer.rs:149
↓ 4 callersMethodcorresponding_keymap
(&self)
crates/bazed-core/src/vim_interface.rs:40
↓ 4 callersMethodcreate_update_notification
Create a notification for the frontend, that contains all relevant state of this document. Note:* This will later be replaced with a proper damage tr
crates/bazed-core/src/document.rs:92
↓ 4 callersFunctiondet
(a: Vector2, b: Vector2)
node_packages/bazed-svelte/src/lib/linearAlgebra.ts:11
↓ 4 callersMethodhandle_rpc_call
(&mut self, call: ToBackend)
crates/bazed-core/src/app.rs:81
↓ 4 callersMethodmerge
Merge this region into another region. Keeps all non-positional attributes of `self`. Returns none when the regions did not overlap
crates/bazed-core/src/region.rs:102
↓ 4 callersFunctionmove_vertically
Move a region vertically by a given number of lines. Preserves all other attributes of the Region.
crates/bazed-core/src/buffer/movement.rs:81
↓ 4 callersFunctionproject_root
()
crates/bazed/tests/it/external.rs:9
↓ 4 callersMethodregister_keymap
(&mut self, keymap_id: KeymapId, keymap: Keymap<V>)
crates/bazed-input-mapper/src/lib.rs:55
↓ 4 callersMethodreplace_at_carets
replace the characters at the carets with the given chars, basically treating them as length 1 selections
crates/bazed-core/src/buffer.rs:183
↓ 4 callersMethodsend_call
(&mut self, msg: StewRpcCall)
crates/bazed-stew-interface/src/stew_rpc.rs:286
↓ 4 callersMethodupdate_carets
(&mut self, mut f: F)
crates/bazed-core/src/buffer/buffer_regions.rs:86
↓ 3 callersMethodall_carets
Return all regions corresponding to carets or selections
crates/bazed-core/src/buffer.rs:78
↓ 3 callersMethodcalculate_undo_id
Returns the current undo group id, or starts a new group if we're not currently at the end of the history
crates/bazed-core/src/buffer/undo_history.rs:67
↓ 3 callersMethodis_empty
(&self)
crates/bazed-core/src/buffer.rs:64
↓ 3 callersMethodis_key_string
(&self)
crates/bazed-input-mapper/src/input_event.rs:114
↓ 3 callersMethodlast_line
last line shown in the viewport
crates/bazed-core/src/view.rs:57
↓ 3 callersMethodsend_invocation_failure_to
( &self, plugin_id: PluginId, invocation_id: InvocationId, data: T, )
crates/bazed-stew/src/lib.rs:254
↓ 3 callersMethodsend_to_stew
(&mut self, msg: T)
crates/bazed-stew-interface/src/ipc_connection.rs:45
↓ 3 callersFunctionsetup_view
Set up a view to run tests against
crates/bazed-core/src/app.rs:254
↓ 3 callersFunctionstart
(addr: &str, path: Option<std::path::PathBuf>)
crates/bazed-core/src/app.rs:203
↓ 3 callersMethodvalue
(&mut self)
crates/example-plugin-impl/src/main.rs:24
↓ 2 callersMethodapply_delta
(&mut self, delta: &RopeDelta)
crates/bazed-core/src/buffer/buffer_regions.rs:52
↓ 2 callersMethodat_end_of_history
Check whether we're currently at the end of the history
crates/bazed-core/src/buffer/undo_history.rs:75
↓ 2 callersMethodcaret_positions
(&self)
crates/bazed-core/src/document.rs:70
↓ 2 callersMethodincrease
(&mut self, n: usize)
crates/example-plugin-impl/src/main.rs:11
↓ 2 callersFunctioniter_rope_chunks_reverse
Returns an iterator that reverses over chunks of the rope. Note** that the chunks contents are still ordered left to right.
crates/bazed-core/src/word_boundary.rs:166
↓ 2 callersMethodlines_in_viewport
(&self, vp: &Viewport)
crates/bazed-core/src/document.rs:62
↓ 2 callersFunctionmovement_key_motion_keymap
()
crates/bazed-core/src/vim_interface.rs:325
↓ 2 callersMethodopen_document
(&mut self, document: Document)
crates/bazed-core/src/app.rs:47
↓ 2 callersMethodopen_ephemeral
(&mut self)
crates/bazed-core/src/app.rs:75
↓ 2 callersMethodoverlaps
Check if this range overlaps with another range.
crates/bazed-core/src/region.rs:89
↓ 2 callersMethodpush_keymap
Activate a keymap. fails when no keymap with that id is registered
crates/bazed-input-mapper/src/lib.rs:60
↓ 2 callersFunctionremoveChildren
(element: HTMLElement)
node_packages/bazed-svelte/src/lib/common.ts:62
↓ 2 callersFunctionremoveChildrenAndAdd
( parent: HTMLElement, element: HTMLElement | HTMLElement[], )
node_packages/bazed-svelte/src/lib/common.ts:58
↓ 2 callersFunctionreturns_result
(sig: &syn::Signature)
crates/bazed-stew-macros/src/utils.rs:30
↓ 2 callersFunctionsearch_plugin
( paths: &[PathBuf], name: &str, version_req: &VersionReq, )
crates/bazed-stew/src/executable.rs:71
↓ 2 callersMethodsend_call_fn_call
( &mut self, fn_id: FunctionId, args: T, invocation_id: Option<InvocationId>,
crates/bazed-stew-interface/src/stew_rpc.rs:293
↓ 2 callersMethodsend_response
( &mut self, invocation_id: InvocationId, msg: InvocationResponseData, )
crates/bazed-stew/src/lib.rs:315
↓ 2 callersMethodstart
(base: StewSessionBase, mut userdata: D)
crates/bazed-stew-interface/src/stew_rpc.rs:103
↓ 2 callersMethodstart_plugin
(&mut self, plugin: &executable::PluginExecutable)
crates/bazed-stew/src/lib.rs:53
↓ 2 callersMethodto_offset_snapping
Turn a position into an offset at that point, snapping to the end of the line if the column is further than the line is long and snapping to the last
crates/bazed-core/src/buffer/position.rs:64
↓ 2 callersFunctiontranslated_key
(k: &str)
crates/bazed-core/src/vim_interface.rs:371
↓ 2 callersMethodundo
(&mut self)
crates/bazed-core/src/buffer/undo_history.rs:93
↓ 2 callersMethodupdate_undo_state
(&mut self)
crates/bazed-core/src/buffer.rs:234
↓ 1 callersFunction_log
(level: Level, location?: string, message?: any[], ...params: any[])
node_packages/bazed-svelte/src/lib/log.ts:58
↓ 1 callersMethodadd_caret
Add a new caret and return the generated id. Note that the caret may imediately get merged into another region.
crates/bazed-core/src/buffer/buffer_regions.rs:103
↓ 1 callersFunctionadd_caret_keymap
()
crates/bazed-core/src/vim_interface.rs:266
↓ 1 callersMethodall_caret_region_positions
Return the head and tail of all carets
crates/bazed-core/src/buffer.rs:91
↓ 1 callersMethodapply_transformer
(&mut self, trans: &mut Transformer<N>)
crates/bazed-core/src/buffer/buffer_regions.rs:45
↓ 1 callersMethodcan_undo
(&self)
crates/bazed-core/src/buffer/undo_history.rs:83
↓ 1 callersMethodcollapse_carets_into_primary
(&mut self)
crates/bazed-core/src/buffer/buffer_regions.rs:157
↓ 1 callersMethodcollapse_selections
Collapse all selections into carets at their respective heads
crates/bazed-core/src/buffer.rs:128
↓ 1 callersFunctioncomputeAsciiWidth
(element: HTMLElement, font: string)
node_packages/bazed-svelte/src/lib/font.ts:66
↓ 1 callersFunctioncomputeLineHeight
(element: HTMLElement, font: string)
node_packages/bazed-svelte/src/lib/font.ts:83
↓ 1 callersMethodcurrently_undone
(&self)
crates/bazed-core/src/buffer/undo_history.rs:79
↓ 1 callersMethoddeactivate_keymap
Deactivate the top-most occurrence of the given keymap. NOTE** that this will never deactivate the base map.
crates/bazed-input-mapper/src/lib.rs:75
↓ 1 callersFunctiondebugInfo
(height: number = 5)
node_packages/bazed-svelte/src/lib/log.ts:38
↓ 1 callersMethoddecrease
(&mut self, n: usize)
crates/example-plugin-impl/src/main.rs:15
↓ 1 callersMethoddelete_in_selections
Delete exactly the ranges of all carets (meaning that only selections will be affected)
crates/bazed-core/src/buffer.rs:197
↓ 1 callersMethoddescription
(&self)
crates/bazed-input-mapper/src/keymap.rs:34
↓ 1 callersFunctionensureExhaustive
(_: never)
node_packages/bazed-svelte/src/lib/common.ts:32
↓ 1 callersMethodfind_plugin_data
( &self, name: &str, version_req: &VersionReq, )
crates/bazed-stew/src/lib.rs:240
↓ 1 callersFunctionfind_word_boundaries
Search forwards for any word boundaries in a rope, starting at a given offset. Note that the location at the offset itself is not considered. Will al
crates/bazed-core/src/word_boundary.rs:10
↓ 1 callersFunctionfind_word_boundaries_backwards
Search backwards for any word boundaries in a rope, starting at a given offset. Note that the location at the offset itself is not considered. Will a
crates/bazed-core/src/word_boundary.rs:23
↓ 1 callersFunctiongetContentType
(ext)
node_packages/bazed-gluon/index.js:31
↓ 1 callersFunctiongetModifiers
(event: WheelEvent | KeyboardEvent)
node_packages/bazed-svelte/src/lib/event.ts:11
next →1–100 of 319, ranked by callers