Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/avelino/outl
/ functions
Functions
3,488 in github.com/avelino/outl
⨍
Functions
3,488
◇
Types & classes
420
↓ 10 callers
Function
ref_at_cursor
If `char_index` falls inside a `[[ref]]`, `#tag`, or `[[date]]` token in `text`, return the corresponding [`RefTarget`]. Otherwise `None`.
crates/outl-md/src/inline.rs:320
↓ 10 callers
Function
reg
( context: &mut Context, name: &str, arity: usize, f: NativeFunction, )
crates/outl-plugins/src/engine.rs:429
↓ 10 callers
Method
resolve_block_ref
Resolve `((blk-XXXXXX))` to the indexed block, if known. `O(1)`. Returns `None` for handles that don't match any indexed block — orphan references ar
crates/outl-md/src/index.rs:287
↓ 10 callers
Function
slots
Build the shared slots the way `AppState` does: an open, persisted workspace rooted under `root` with one page + block.
crates/outl-desktop/src-tauri/src/plugin_service_tests.rs:83
↓ 10 callers
Function
visual_order
Flatten `candidates` into the exact visual order the palette paints: buckets grouped by category, buckets sorted by [`category_order`], the relative o
crates/outl-tui/src/view/overlays.rs:534
↓ 10 callers
Function
ws
()
crates/outl-plugins/src/host_tests.rs:24
↓ 10 callers
Function
year
()
crates/outl-desktop/src/components/Sidebar.tsx:240
↓ 9 callers
Method
add
Add a peer and persist to disk.
crates/outl-sync-iroh/src/peers.rs:332
↓ 9 callers
Function
all_node_ids_on_disk
Full set of created-node ids on a workspace's disk, regardless of authoring actor (reads every `ops-*.jsonl` via the production storage). Lives here
crates/outl-sync-iroh/tests/chaos.rs:57
↓ 9 callers
Function
arg_string
Pull the first arg as a Rust `String` (defaults to empty).
crates/outl-plugins/src/engine.rs:441
↓ 9 callers
Function
assert_trees_equal
Compare two tree states for structural equivalence. Returns `Ok(())` if both trees agree on every node's parent + position and on every property bind
crates/outl-core/tests/common/mod.rs:51
↓ 9 callers
Function
autoClosePair
( value: string, selection: number, )
crates/outl-frontend-shared/src/autocomplete/index.ts:45
↓ 9 callers
Method
backlinks_for_current
Convenience: backlinks for the currently-opened page/journal.
crates/outl-tui/src/actions/nav.rs:121
↓ 9 callers
Function
backlinks_for_target
Every block in the workspace that mentions `target` — either as a literal `[[target]]` substring or as a `#tag` token whose slug form equals `target`'
crates/outl-actions/src/backlinks.rs:102
↓ 9 callers
Function
ensure_in_tree
Reject an action whose target node is no longer in the materialised tree (e.g. a peer trashed it between the client's read and write).
crates/outl-actions/src/block/mod.rs:63
↓ 9 callers
Function
handler
Pure handler — used by both CLI and MCP shim.
crates/outl-cli/src/cmd/query.rs:63
↓ 9 callers
Function
import
Run a Roam import. `src` is the JSON backup file.
crates/outl-cli/src/cmd/import/roam.rs:71
↓ 9 callers
Function
logop
(g: &HlcGenerator, op: Op)
crates/outl-core/tests/text_replace_rebuild.rs:23
↓ 9 callers
Function
new_workspace
()
crates/outl-actions/src/block/create.rs:267
↓ 9 callers
Function
node_at_path_mut
Mutable variant of [`node_at_path`].
crates/outl-md/src/outline_ops.rs:121
↓ 9 callers
Method
open
* @roadmap Not wired yet — calling this throws at runtime in the current * outl version. Open a page in the active client view.
plugin-sdk/src/index.ts:202
↓ 9 callers
Function
openRef
(target: string)
crates/outl-frontend-shared/src/api/commands.ts:142
↓ 9 callers
Function
open_today
Open today's journal page, creating it if needed.
crates/outl-actions/src/page.rs:412
↓ 9 callers
Function
parse_date
Parse the variety of date forms we accept. Keyword shortcuts (`today` / `yesterday` / `tomorrow`) are resolved here; every literal spelling (ISO, `20
crates/outl-cli/src/cmd/daily.rs:208
↓ 9 callers
Method
patch_page
Re-index a single page in place — replacement for the global scan when only one page changed. Refreshes the `PageEntry` metadata (title/icon/pinned)
crates/outl-md/src/index.rs:211
↓ 9 callers
Method
properties_of
Every property currently set on `node`, as `(key, value)` pairs in unspecified order. Used by projection layers (mobile / TUI outline DTO) to snapsho
crates/outl-core/src/tree/mod.rs:104
↓ 9 callers
Function
rawTextWithTodo
(block: BlockNode)
crates/outl-frontend-shared/src/outline/index.ts:27
↓ 9 callers
Function
resolve_sidecar_path
Find the path the caller should use right now to read or write the sidecar for `md_path`. In the common case this is the canonical (non-dotted) `<ste
crates/outl-md/src/sidecar.rs:214
↓ 9 callers
Method
set
(key: string, value: T)
plugin-sdk/src/index.ts:252
↓ 9 callers
Function
spawn_plugin_service
Spawn the shared plugin thread with the mobile client id, capability set, and fixed storage root. Called once in `lib.rs::setup`; the returned handle
crates/outl-mobile/src-tauri/src/plugin_service.rs:66
↓ 9 callers
Function
splitQuote
(text: string)
crates/outl-frontend-shared/src/markdown/quote.ts:30
↓ 9 callers
Function
targetBlockId
Resolve the block the user means right now — the focused * textarea's id (Insert) takes priority over the selection * cursor (Normal). Returns
crates/outl-desktop/src/lib/action-handlers.ts:83
↓ 9 callers
Function
toggle_todo
Cycle the block's TODO state: `None → TODO → DONE → None`.
crates/outl-actions/src/block/edit.rs:51
↓ 9 callers
Function
visualRangeIds
( anchor: string | null, cursor: string | null, blocks: BlockNode[], )
crates/outl-frontend-shared/src/outline/index.ts:182
↓ 9 callers
Function
wrapSelection
(prefix: string, suffix: string = prefix)
crates/outl-desktop/src/lib/markdown-wrap.ts:35
↓ 8 callers
Method
all_ops
(&self)
crates/outl-core/src/storage/jsonl.rs:296
↓ 8 callers
Method
append_op
(&mut self, op: &LogOp)
crates/outl-core/src/storage/jsonl.rs:228
↓ 8 callers
Function
applySuggestion
( value: string, ctx: RefContext, replacement: string, )
crates/outl-frontend-shared/src/autocomplete/index.ts:302
↓ 8 callers
Function
block_to_rows
Decompose a block's `text` into visual rows. `cursor_char`, when present, is a char index into `text` (counting `\n` as one char) at which the active
crates/outl-md/src/view.rs:142
↓ 8 callers
Function
createBlock
( pageId: string, opts: { afterId?: string | null; beforeId?: string | null; parentId?: string
crates/outl-frontend-shared/src/api/commands.ts:184
↓ 8 callers
Function
create_after
Insert a new sibling immediately after `after`, sharing the same parent.
crates/outl-actions/src/block/create.rs:107
↓ 8 callers
Method
current_block_text
Current selected block's text (or empty if no selection). Honours `app.focus` so backlink blocks return their own text.
crates/outl-tui/src/actions/nav.rs:348
↓ 8 callers
Function
cycle_todo
Cycle the TODO state of `raw` to the next stop. Returns the new text, ready to be stored as the block's content. Aware of an optional leading quote p
crates/outl-actions/src/todo.rs:68
↓ 8 callers
Function
daysInMonth
(year: number, monthIndex: number)
crates/outl-frontend-shared/src/journal/index.ts:67
↓ 8 callers
Function
detect_trigger
Look back from `cursor` over `chars` to find an open `[[` / `#` / `/` / `@` / `:` trigger plus the query typed after it. Returns `None` if no trigger
crates/outl-tui/src/actions/autocomplete.rs:445
↓ 8 callers
Function
editBlock
(pageId: string, id: string, text: string)
crates/outl-frontend-shared/src/api/commands.ts:202
↓ 8 callers
Method
ensure_view_file_exists
Create the underlying `.md` file (with a single empty block) if it doesn't already exist. Ensures the editor always has a target.
crates/outl-tui/src/actions/lifecycle/loading.rs:43
↓ 8 callers
Function
extract_fence
Parse the language tag and body out of a block whose first line opens a fence. Returns `None` if the text doesn't start with `` ``` `` — i.e. the bloc
crates/outl-exec/src/language.rs:37
↓ 8 callers
Method
get_mut
(&mut self, node: NodeId)
crates/outl-core/src/content.rs:92
↓ 8 callers
Function
index_for_path
Reverse of [`path_for_index`]: given a path, return the flat index.
crates/outl-md/src/outline_ops.rs:79
↓ 8 callers
Function
init_workspace
()
crates/outl-cli/tests/cli_machine.rs:30
↓ 8 callers
Method
insert_str
Insert a string at the cursor.
crates/outl-tui/src/edit_buffer.rs:55
↓ 8 callers
Method
iroh_endpoint_addr
Build a full [`iroh::EndpointAddr`] for dialing this peer. Resolution order, most-reachable first: 1. The stored full `endpoint_addr` (node id + rela
crates/outl-sync-iroh/src/peers.rs:218
↓ 8 callers
Function
isInVisualRange
( id: string, anchor: string | null, cursor: string | null, blocks: BlockNode[], )
crates/outl-frontend-shared/src/outline/index.ts:236
↓ 8 callers
Method
is_collapsed
Whether `node` is currently rendered collapsed (children hidden in the outline view). Defaults to `false` for any node the op log has never explicitly
crates/outl-core/src/tree/mod.rs:114
↓ 8 callers
Method
node_id
The public node id (device address).
crates/outl-sync-iroh/src/identity.rs:56
↓ 8 callers
Function
openPageBySlug
(slug: string)
crates/outl-frontend-shared/src/api/commands.ts:126
↓ 8 callers
Function
parse_frontmatter
Parse a YAML frontmatter block into a flat [`Frontmatter`]. - `title` (scalar) is lifted into [`Frontmatter::title`]. - `tags` accepts a scalar (comm
crates/outl-md/src/frontmatter.rs:84
↓ 8 callers
Function
press
(app: &mut App, code: KeyCode, mods: KeyModifiers)
crates/outl-tui/src/input/plugin_chord.rs:292
↓ 8 callers
Function
push
(html: string)
crates/outl-mobile/src/components/PluginViewOverlay.tsx:55
↓ 8 callers
Method
query
Find blocks matching `filter`.
plugin-sdk/src/index.ts:169
↓ 8 callers
Function
read
Handle `resources/read`.
crates/outl-cli/src/mcp/resources.rs:52
↓ 8 callers
Function
rename
Rename a page's slug. Updates the `page-slug` property, renames the on-disk `.md`, and returns the list of blocks still referencing the old slug so th
crates/outl-cli/src/cmd/page.rs:412
↓ 8 callers
Function
render_result_body
Render an [`ExecOutput`] (or a top-level [`ExecError`]) as the markdown body of a result subblock. Format: - Single-line stdout → `> **result:** \`o
crates/outl-exec/src/result_block.rs:53
↓ 8 callers
Method
secret_key
The secret key for building an iroh `Endpoint`.
crates/outl-sync-iroh/src/identity.rs:51
↓ 8 callers
Function
setEditingId
(id: string | null)
crates/outl-desktop/src/components/OutlineView.tsx:45
↓ 8 callers
Function
slots
Build the shared slots the way `AppState` does: an open, persisted workspace rooted under `root` with one page + block.
crates/outl-mobile/src-tauri/src/plugin_service.rs:151
↓ 8 callers
Function
spliceText
( el: HTMLTextAreaElement, start: number, end: number, insert: string, )
crates/outl-mobile/src/lib/textarea.ts:39
↓ 8 callers
Function
split_frontmatter
Split a leading `---\n...\n---\n` block from the file. Returns `(Some(yaml_text), body)` when present and well-formed; otherwise `(None, original_text
crates/outl-md/src/frontmatter.rs:23
↓ 8 callers
Method
sync_hooks
Dispatch every op applied since the last sweep to plugins' `onOp` hooks, applying any intents they emit. Idempotent and loop-safe.
crates/outl-plugins/src/host.rs:421
↓ 8 callers
Function
today
Today's date in the user's configured timezone (falling back to the OS local timezone), as a `NaiveDate`. Routes through [`outl_actions::clock`] so `[
crates/outl-cli/src/workspace_layout.rs:217
↓ 8 callers
Function
workspace_peers_path
Build the per-workspace peers path: `<workspace_root>/.outl/peers.json`. The `.outl/` directory already holds the workspace's `workspace-id` and `con
crates/outl-sync-iroh/src/peers.rs:86
↓ 8 callers
Function
wrap
Build a [`LogOp`] wrapping `op` with a fresh HLC.
crates/outl-actions/src/block/mod.rs:52
↓ 7 callers
Function
app_with
(root: &TempDir)
crates/outl-tui/src/actions/plugins.rs:525
↓ 7 callers
Function
append_ops
Append pre-built ops verbatim into `<root>/ops/ops-<actor>.jsonl` via the production `JsonlStorage`. Appending the same op twice plants a historic dup
crates/outl-sync-iroh/tests/regression.rs:583
↓ 7 callers
Method
apply_to_backlink_source
Run an op on the source page of the focused backlink and persist. `f` receives the source AST (mutable) and the absolute path of the currently focuse
crates/outl-tui/src/actions/block/backlink_edit.rs:35
↓ 7 callers
Function
char_to_line_col
Convert a char index into a `(line, col)` pair using `\n` as the line separator. Indices count *characters*, not bytes. Renderers usually then conver
crates/outl-md/src/view.rs:69
↓ 7 callers
Method
collapsed_ids
Iterator over every node currently flagged collapsed. Used by projection layers (sidecar render, mobile wire format) to snapshot the fold state in one
crates/outl-core/src/tree/mod.rs:121
↓ 7 callers
Method
current_slug
Slug of the currently-opened view, used to look up backlinks.
crates/outl-tui/src/actions/nav.rs:63
↓ 7 callers
Function
default_bindings
Every binding outl ships with by default. `Global` entries fire in every mode — those are the OS-standard chrome chords (`Cmd+P`, `Cmd+T`, `Cmd+,`, `
crates/outl-shortcuts/src/defaults.rs:80
↓ 7 callers
Function
delete
Delete a page by moving its root to the trash. The op stays in the log so peers converge.
crates/outl-cli/src/cmd/page.rs:356
↓ 7 callers
Method
encode
Serialize via bincode for persistence in [`crate::storage::Snapshot::bytes`].
crates/outl-core/src/snapshot.rs:153
↓ 7 callers
Function
formatJournalSlug
( year: number, monthIndex: number, day: number, )
crates/outl-frontend-shared/src/journal/index.ts:44
↓ 7 callers
Function
inline_to_source
Re-emit a tokenized inline span back as the markdown source it came from. Bold / italic / strike now carry recursively-tokenized inners (`Vec<InlineT
crates/outl-md/src/inline.rs:540
↓ 7 callers
Function
install_from_dir
Install a plugin from a local directory (the installed-shape: a `plugin.json` plus its bundle and assets). Copies it under `.outl/plugins/<id>/`, hash
crates/outl-plugins/src/loader.rs:133
↓ 7 callers
Function
isEditing
()
crates/outl-desktop/src/components/BlockRow.tsx:127
↓ 7 callers
Function
journal_slug
Slug for `date` using the canonical `YYYY-MM-DD` shape.
crates/outl-actions/src/dates.rs:132
↓ 7 callers
Function
load_installed
Load every enabled installed plugin (plus any `_dev/` plugins) into `host`. Best-effort: a plugin whose manifest is invalid, whose bundle hash no lon
crates/outl-plugins/src/loader.rs:52
↓ 7 callers
Function
lockfile_path
Path to the lockfile.
crates/outl-plugins/src/loader.rs:43
↓ 7 callers
Function
migrate_global_peers_if_absent
One-time migration: when a workspace has no `peers.json` yet but the legacy global** `~/.outl/peers.json` exists, copy the global list into the worksp
crates/outl-sync-iroh/src/peers.rs:102
↓ 7 callers
Function
mountTextarea
(value: string, selStart: number, selEnd: number)
crates/outl-desktop/src/lib/markdown-wrap.test.ts:5
↓ 7 callers
Function
newTextarea
(value = "", caret = 0)
crates/outl-mobile/src/lib/textarea.test.ts:4
↓ 7 callers
Function
nextVisibleId
( current: string | null, blocks: BlockNode[], )
crates/outl-frontend-shared/src/outline/index.ts:139
↓ 7 callers
Method
open_slash
Open the Notion-style slash command menu. Bound to `/` in Normal mode. Replaces the old `/` = workspace-search binding — search is now a *command* in
crates/outl-tui/src/actions/overlay.rs:338
↓ 7 callers
Function
parse_node
(s: &str)
crates/outl-plugins/src/host.rs:630
↓ 7 callers
Function
position_for_new_last_child
Fractional position for a new last child appended under `parent`. Promoted to `pub` for the CLI's `outl block move --parent=…` flow.
crates/outl-actions/src/tree.rs:120
↓ 7 callers
Function
rankSlashCommands
( all: PluginCommand[], query: string, )
crates/outl-desktop/src/lib/slash-commands.ts:17
↓ 7 callers
Method
record_failure
Record a failed dial to `peer`. Keeps any prior `last_rtt_ms` so the UI can show "last seen Nms ago, now offline" if it wants to.
crates/outl-sync-iroh/src/health.rs:60
↓ 7 callers
Function
search
Search the gemoji catalog for shortcodes matching `query`. Ranking (highest first): - exact shortcode match - shortcode starts with the query - short
crates/outl-md/src/emoji.rs:81
↓ 7 callers
Function
threshold
()
crates/outl-mobile/src/components/PullToRefresh.tsx:22
← previous
next →
201–300 of 3,488, ranked by callers