MCPcopy Create free account

hub / github.com/avelino/outl / functions

Functions3,488 in github.com/avelino/outl

↓ 10 callersFunctionref_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 callersFunctionreg
( context: &mut Context, name: &str, arity: usize, f: NativeFunction, )
crates/outl-plugins/src/engine.rs:429
↓ 10 callersMethodresolve_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 callersFunctionslots
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 callersFunctionvisual_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 callersFunctionws
()
crates/outl-plugins/src/host_tests.rs:24
↓ 10 callersFunctionyear
()
crates/outl-desktop/src/components/Sidebar.tsx:240
↓ 9 callersMethodadd
Add a peer and persist to disk.
crates/outl-sync-iroh/src/peers.rs:332
↓ 9 callersFunctionall_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 callersFunctionarg_string
Pull the first arg as a Rust `String` (defaults to empty).
crates/outl-plugins/src/engine.rs:441
↓ 9 callersFunctionassert_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 callersFunctionautoClosePair
( value: string, selection: number, )
crates/outl-frontend-shared/src/autocomplete/index.ts:45
↓ 9 callersMethodbacklinks_for_current
Convenience: backlinks for the currently-opened page/journal.
crates/outl-tui/src/actions/nav.rs:121
↓ 9 callersFunctionbacklinks_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 callersFunctionensure_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 callersFunctionhandler
Pure handler — used by both CLI and MCP shim.
crates/outl-cli/src/cmd/query.rs:63
↓ 9 callersFunctionimport
Run a Roam import. `src` is the JSON backup file.
crates/outl-cli/src/cmd/import/roam.rs:71
↓ 9 callersFunctionlogop
(g: &HlcGenerator, op: Op)
crates/outl-core/tests/text_replace_rebuild.rs:23
↓ 9 callersFunctionnew_workspace
()
crates/outl-actions/src/block/create.rs:267
↓ 9 callersFunctionnode_at_path_mut
Mutable variant of [`node_at_path`].
crates/outl-md/src/outline_ops.rs:121
↓ 9 callersMethodopen
* @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 callersFunctionopenRef
(target: string)
crates/outl-frontend-shared/src/api/commands.ts:142
↓ 9 callersFunctionopen_today
Open today's journal page, creating it if needed.
crates/outl-actions/src/page.rs:412
↓ 9 callersFunctionparse_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 callersMethodpatch_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 callersMethodproperties_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 callersFunctionrawTextWithTodo
(block: BlockNode)
crates/outl-frontend-shared/src/outline/index.ts:27
↓ 9 callersFunctionresolve_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 callersMethodset
(key: string, value: T)
plugin-sdk/src/index.ts:252
↓ 9 callersFunctionspawn_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 callersFunctionsplitQuote
(text: string)
crates/outl-frontend-shared/src/markdown/quote.ts:30
↓ 9 callersFunctiontargetBlockId
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 callersFunctiontoggle_todo
Cycle the block's TODO state: `None → TODO → DONE → None`.
crates/outl-actions/src/block/edit.rs:51
↓ 9 callersFunctionvisualRangeIds
( anchor: string | null, cursor: string | null, blocks: BlockNode[], )
crates/outl-frontend-shared/src/outline/index.ts:182
↓ 9 callersFunctionwrapSelection
(prefix: string, suffix: string = prefix)
crates/outl-desktop/src/lib/markdown-wrap.ts:35
↓ 8 callersMethodall_ops
(&self)
crates/outl-core/src/storage/jsonl.rs:296
↓ 8 callersMethodappend_op
(&mut self, op: &LogOp)
crates/outl-core/src/storage/jsonl.rs:228
↓ 8 callersFunctionapplySuggestion
( value: string, ctx: RefContext, replacement: string, )
crates/outl-frontend-shared/src/autocomplete/index.ts:302
↓ 8 callersFunctionblock_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 callersFunctioncreateBlock
( pageId: string, opts: { afterId?: string | null; beforeId?: string | null; parentId?: string
crates/outl-frontend-shared/src/api/commands.ts:184
↓ 8 callersFunctioncreate_after
Insert a new sibling immediately after `after`, sharing the same parent.
crates/outl-actions/src/block/create.rs:107
↓ 8 callersMethodcurrent_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 callersFunctioncycle_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 callersFunctiondaysInMonth
(year: number, monthIndex: number)
crates/outl-frontend-shared/src/journal/index.ts:67
↓ 8 callersFunctiondetect_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 callersFunctioneditBlock
(pageId: string, id: string, text: string)
crates/outl-frontend-shared/src/api/commands.ts:202
↓ 8 callersMethodensure_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 callersFunctionextract_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 callersMethodget_mut
(&mut self, node: NodeId)
crates/outl-core/src/content.rs:92
↓ 8 callersFunctionindex_for_path
Reverse of [`path_for_index`]: given a path, return the flat index.
crates/outl-md/src/outline_ops.rs:79
↓ 8 callersFunctioninit_workspace
()
crates/outl-cli/tests/cli_machine.rs:30
↓ 8 callersMethodinsert_str
Insert a string at the cursor.
crates/outl-tui/src/edit_buffer.rs:55
↓ 8 callersMethodiroh_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 callersFunctionisInVisualRange
( id: string, anchor: string | null, cursor: string | null, blocks: BlockNode[], )
crates/outl-frontend-shared/src/outline/index.ts:236
↓ 8 callersMethodis_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 callersMethodnode_id
The public node id (device address).
crates/outl-sync-iroh/src/identity.rs:56
↓ 8 callersFunctionopenPageBySlug
(slug: string)
crates/outl-frontend-shared/src/api/commands.ts:126
↓ 8 callersFunctionparse_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 callersFunctionpress
(app: &mut App, code: KeyCode, mods: KeyModifiers)
crates/outl-tui/src/input/plugin_chord.rs:292
↓ 8 callersFunctionpush
(html: string)
crates/outl-mobile/src/components/PluginViewOverlay.tsx:55
↓ 8 callersMethodquery
Find blocks matching `filter`.
plugin-sdk/src/index.ts:169
↓ 8 callersFunctionread
Handle `resources/read`.
crates/outl-cli/src/mcp/resources.rs:52
↓ 8 callersFunctionrename
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 callersFunctionrender_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 callersMethodsecret_key
The secret key for building an iroh `Endpoint`.
crates/outl-sync-iroh/src/identity.rs:51
↓ 8 callersFunctionsetEditingId
(id: string | null)
crates/outl-desktop/src/components/OutlineView.tsx:45
↓ 8 callersFunctionslots
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 callersFunctionspliceText
( el: HTMLTextAreaElement, start: number, end: number, insert: string, )
crates/outl-mobile/src/lib/textarea.ts:39
↓ 8 callersFunctionsplit_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 callersMethodsync_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 callersFunctiontoday
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 callersFunctionworkspace_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 callersFunctionwrap
Build a [`LogOp`] wrapping `op` with a fresh HLC.
crates/outl-actions/src/block/mod.rs:52
↓ 7 callersFunctionapp_with
(root: &TempDir)
crates/outl-tui/src/actions/plugins.rs:525
↓ 7 callersFunctionappend_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 callersMethodapply_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 callersFunctionchar_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 callersMethodcollapsed_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 callersMethodcurrent_slug
Slug of the currently-opened view, used to look up backlinks.
crates/outl-tui/src/actions/nav.rs:63
↓ 7 callersFunctiondefault_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 callersFunctiondelete
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 callersMethodencode
Serialize via bincode for persistence in [`crate::storage::Snapshot::bytes`].
crates/outl-core/src/snapshot.rs:153
↓ 7 callersFunctionformatJournalSlug
( year: number, monthIndex: number, day: number, )
crates/outl-frontend-shared/src/journal/index.ts:44
↓ 7 callersFunctioninline_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 callersFunctioninstall_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 callersFunctionisEditing
()
crates/outl-desktop/src/components/BlockRow.tsx:127
↓ 7 callersFunctionjournal_slug
Slug for `date` using the canonical `YYYY-MM-DD` shape.
crates/outl-actions/src/dates.rs:132
↓ 7 callersFunctionload_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 callersFunctionlockfile_path
Path to the lockfile.
crates/outl-plugins/src/loader.rs:43
↓ 7 callersFunctionmigrate_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 callersFunctionmountTextarea
(value: string, selStart: number, selEnd: number)
crates/outl-desktop/src/lib/markdown-wrap.test.ts:5
↓ 7 callersFunctionnewTextarea
(value = "", caret = 0)
crates/outl-mobile/src/lib/textarea.test.ts:4
↓ 7 callersFunctionnextVisibleId
( current: string | null, blocks: BlockNode[], )
crates/outl-frontend-shared/src/outline/index.ts:139
↓ 7 callersMethodopen_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 callersFunctionparse_node
(s: &str)
crates/outl-plugins/src/host.rs:630
↓ 7 callersFunctionposition_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 callersFunctionrankSlashCommands
( all: PluginCommand[], query: string, )
crates/outl-desktop/src/lib/slash-commands.ts:17
↓ 7 callersMethodrecord_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 callersFunctionsearch
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 callersFunctionthreshold
()
crates/outl-mobile/src/components/PullToRefresh.tsx:22
← previousnext →201–300 of 3,488, ranked by callers