Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bazed-editor/bazed
/ functions
Functions
319 in github.com/bazed-editor/bazed
⨍
Functions
319
◇
Types & classes
70
↓ 45 callers
Function
setup_test
Set up logging and color_eyre for tests globally
crates/bazed-core/src/test_util.rs:7
↓ 36 callers
Function
key
(k: &str)
crates/bazed-core/src/vim_interface.rs:368
↓ 31 callers
Method
move_carets
Move carets by a given motion, collapsing any selections down into carets.
crates/bazed-core/src/buffer.rs:322
↓ 28 callers
Method
apply_buffer_op
(&mut self, vp: &Viewport, op: BufferOp)
crates/bazed-core/src/buffer.rs:292
↓ 28 callers
Method
clone
(&self)
crates/bazed-stew-interface/src/stew_rpc.rs:76
↓ 28 callers
Method
len
(&self)
crates/bazed-core/src/buffer.rs:60
↓ 22 callers
Method
insert_at_carets
(&mut self, chars: &str)
crates/bazed-core/src/buffer.rs:167
↓ 22 callers
Method
map
recursively map a function over the leaves of this node
crates/bazed-input-mapper/src/keymap.rs:41
↓ 18 callers
Function
leaf
( desc: &str, f: F, )
crates/bazed-core/src/vim_interface.rs:375
↓ 13 callers
Method
undo
(&mut self)
crates/bazed-core/src/buffer.rs:218
↓ 11 callers
Method
next
(&mut self)
crates/bazed-core/src/word_boundary.rs:144
↓ 10 callers
Method
range
Return the head and tail in order of offset
crates/bazed-core/src/region.rs:80
↓ 10 callers
Method
set_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 callers
Method
delete_at_carets
(&mut self, vp: &Viewport, motion: Motion<'_>)
crates/bazed-core/src/buffer.rs:206
↓ 9 callers
Method
start_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 callers
Function
mapping
( f: F, )
crates/bazed-core/src/vim_interface.rs:382
↓ 8 callers
Method
switch_mode
(&mut self, mode: VimMode)
crates/bazed-core/src/vim_interface.rs:99
↓ 7 callers
Method
into_iter
(self)
crates/bazed-input-mapper/src/input_event.rs:58
↓ 7 callers
Method
keymap_id
(&self)
crates/bazed-core/src/vim_interface.rs:30
↓ 7 callers
Method
send
* * @param {ToBackend} message - to send to backend
node_packages/bazed-svelte/src/lib/rpc.ts:33
↓ 6 callers
Function
log
(level: Level, ...params: any[])
node_packages/bazed-svelte/src/lib/log.ts:66
↓ 6 callers
Method
redo
(&mut self)
crates/bazed-core/src/buffer.rs:226
↓ 6 callers
Method
with_mods
(mut self, mods: Modifiers)
crates/bazed-input-mapper/src/key_combo.rs:71
↓ 5 callers
Method
carets
Return all carets in this buffer. Guaranteed to be ordered and non-overlapping
crates/bazed-core/src/buffer/buffer_regions.rs:58
↓ 5 callers
Function
elt
( tag: string, content?: string | HTMLElement[] | null, className?: string | null, cssText?: string, )
node_packages/bazed-svelte/src/lib/common.ts:35
↓ 5 callers
Method
make_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 callers
Method
matches
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 callers
Function
normal_mode_movement_key_motion_keymap
()
crates/bazed-core/src/vim_interface.rs:283
↓ 5 callers
Method
send_response_to
( &self, plugin_id: PluginId, invocation_id: InvocationId, data: InvocationRes
crates/bazed-stew/src/lib.rs:268
↓ 5 callers
Method
send_rpc
(&mut self, call: ToFrontend)
crates/bazed-rpc/src/server.rs:14
↓ 4 callers
Function
apply_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 callers
Function
boundaries
(s: &str)
crates/bazed-core/src/word_boundary.rs:220
↓ 4 callers
Function
check
(expected: usize, start: usize, t: &str)
crates/bazed-core/src/buffer/movement.rs:126
↓ 4 callers
Method
commit_delta
(&mut self, delta: RopeDelta, edit_type: EditType)
crates/bazed-core/src/buffer.rs:149
↓ 4 callers
Method
corresponding_keymap
(&self)
crates/bazed-core/src/vim_interface.rs:40
↓ 4 callers
Method
create_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 callers
Function
det
(a: Vector2, b: Vector2)
node_packages/bazed-svelte/src/lib/linearAlgebra.ts:11
↓ 4 callers
Method
handle_rpc_call
(&mut self, call: ToBackend)
crates/bazed-core/src/app.rs:81
↓ 4 callers
Method
merge
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 callers
Function
move_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 callers
Function
project_root
()
crates/bazed/tests/it/external.rs:9
↓ 4 callers
Method
register_keymap
(&mut self, keymap_id: KeymapId, keymap: Keymap<V>)
crates/bazed-input-mapper/src/lib.rs:55
↓ 4 callers
Method
replace_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 callers
Method
send_call
(&mut self, msg: StewRpcCall)
crates/bazed-stew-interface/src/stew_rpc.rs:286
↓ 4 callers
Method
update_carets
(&mut self, mut f: F)
crates/bazed-core/src/buffer/buffer_regions.rs:86
↓ 3 callers
Method
all_carets
Return all regions corresponding to carets or selections
crates/bazed-core/src/buffer.rs:78
↓ 3 callers
Method
calculate_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 callers
Method
is_empty
(&self)
crates/bazed-core/src/buffer.rs:64
↓ 3 callers
Method
is_key_string
(&self)
crates/bazed-input-mapper/src/input_event.rs:114
↓ 3 callers
Method
last_line
last line shown in the viewport
crates/bazed-core/src/view.rs:57
↓ 3 callers
Method
send_invocation_failure_to
( &self, plugin_id: PluginId, invocation_id: InvocationId, data: T, )
crates/bazed-stew/src/lib.rs:254
↓ 3 callers
Method
send_to_stew
(&mut self, msg: T)
crates/bazed-stew-interface/src/ipc_connection.rs:45
↓ 3 callers
Function
setup_view
Set up a view to run tests against
crates/bazed-core/src/app.rs:254
↓ 3 callers
Function
start
(addr: &str, path: Option<std::path::PathBuf>)
crates/bazed-core/src/app.rs:203
↓ 3 callers
Method
value
(&mut self)
crates/example-plugin-impl/src/main.rs:24
↓ 2 callers
Method
apply_delta
(&mut self, delta: &RopeDelta)
crates/bazed-core/src/buffer/buffer_regions.rs:52
↓ 2 callers
Method
at_end_of_history
Check whether we're currently at the end of the history
crates/bazed-core/src/buffer/undo_history.rs:75
↓ 2 callers
Method
caret_positions
(&self)
crates/bazed-core/src/document.rs:70
↓ 2 callers
Method
increase
(&mut self, n: usize)
crates/example-plugin-impl/src/main.rs:11
↓ 2 callers
Function
iter_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 callers
Method
lines_in_viewport
(&self, vp: &Viewport)
crates/bazed-core/src/document.rs:62
↓ 2 callers
Function
movement_key_motion_keymap
()
crates/bazed-core/src/vim_interface.rs:325
↓ 2 callers
Method
open_document
(&mut self, document: Document)
crates/bazed-core/src/app.rs:47
↓ 2 callers
Method
open_ephemeral
(&mut self)
crates/bazed-core/src/app.rs:75
↓ 2 callers
Method
overlaps
Check if this range overlaps with another range.
crates/bazed-core/src/region.rs:89
↓ 2 callers
Method
push_keymap
Activate a keymap. fails when no keymap with that id is registered
crates/bazed-input-mapper/src/lib.rs:60
↓ 2 callers
Function
removeChildren
(element: HTMLElement)
node_packages/bazed-svelte/src/lib/common.ts:62
↓ 2 callers
Function
removeChildrenAndAdd
( parent: HTMLElement, element: HTMLElement | HTMLElement[], )
node_packages/bazed-svelte/src/lib/common.ts:58
↓ 2 callers
Function
returns_result
(sig: &syn::Signature)
crates/bazed-stew-macros/src/utils.rs:30
↓ 2 callers
Function
search_plugin
( paths: &[PathBuf], name: &str, version_req: &VersionReq, )
crates/bazed-stew/src/executable.rs:71
↓ 2 callers
Method
send_call_fn_call
( &mut self, fn_id: FunctionId, args: T, invocation_id: Option<InvocationId>,
crates/bazed-stew-interface/src/stew_rpc.rs:293
↓ 2 callers
Method
send_response
( &mut self, invocation_id: InvocationId, msg: InvocationResponseData, )
crates/bazed-stew/src/lib.rs:315
↓ 2 callers
Method
start
(base: StewSessionBase, mut userdata: D)
crates/bazed-stew-interface/src/stew_rpc.rs:103
↓ 2 callers
Method
start_plugin
(&mut self, plugin: &executable::PluginExecutable)
crates/bazed-stew/src/lib.rs:53
↓ 2 callers
Method
to_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 callers
Function
translated_key
(k: &str)
crates/bazed-core/src/vim_interface.rs:371
↓ 2 callers
Method
undo
(&mut self)
crates/bazed-core/src/buffer/undo_history.rs:93
↓ 2 callers
Method
update_undo_state
(&mut self)
crates/bazed-core/src/buffer.rs:234
↓ 1 callers
Function
_log
(level: Level, location?: string, message?: any[], ...params: any[])
node_packages/bazed-svelte/src/lib/log.ts:58
↓ 1 callers
Method
add_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 callers
Function
add_caret_keymap
()
crates/bazed-core/src/vim_interface.rs:266
↓ 1 callers
Method
all_caret_region_positions
Return the head and tail of all carets
crates/bazed-core/src/buffer.rs:91
↓ 1 callers
Method
apply_transformer
(&mut self, trans: &mut Transformer<N>)
crates/bazed-core/src/buffer/buffer_regions.rs:45
↓ 1 callers
Method
can_undo
(&self)
crates/bazed-core/src/buffer/undo_history.rs:83
↓ 1 callers
Method
collapse_carets_into_primary
(&mut self)
crates/bazed-core/src/buffer/buffer_regions.rs:157
↓ 1 callers
Method
collapse_selections
Collapse all selections into carets at their respective heads
crates/bazed-core/src/buffer.rs:128
↓ 1 callers
Function
computeAsciiWidth
(element: HTMLElement, font: string)
node_packages/bazed-svelte/src/lib/font.ts:66
↓ 1 callers
Function
computeLineHeight
(element: HTMLElement, font: string)
node_packages/bazed-svelte/src/lib/font.ts:83
↓ 1 callers
Method
currently_undone
(&self)
crates/bazed-core/src/buffer/undo_history.rs:79
↓ 1 callers
Method
deactivate_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 callers
Function
debugInfo
(height: number = 5)
node_packages/bazed-svelte/src/lib/log.ts:38
↓ 1 callers
Method
decrease
(&mut self, n: usize)
crates/example-plugin-impl/src/main.rs:15
↓ 1 callers
Method
delete_in_selections
Delete exactly the ranges of all carets (meaning that only selections will be affected)
crates/bazed-core/src/buffer.rs:197
↓ 1 callers
Method
description
(&self)
crates/bazed-input-mapper/src/keymap.rs:34
↓ 1 callers
Function
ensureExhaustive
(_: never)
node_packages/bazed-svelte/src/lib/common.ts:32
↓ 1 callers
Method
find_plugin_data
( &self, name: &str, version_req: &VersionReq, )
crates/bazed-stew/src/lib.rs:240
↓ 1 callers
Function
find_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 callers
Function
find_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 callers
Function
getContentType
(ext)
node_packages/bazed-gluon/index.js:31
↓ 1 callers
Function
getModifiers
(event: WheelEvent | KeyboardEvent)
node_packages/bazed-svelte/src/lib/event.ts:11
next →
1–100 of 319, ranked by callers