MCPcopy Create free account

hub / github.com/SamuelSchlesinger/tshts / functions

Functions1,456 in github.com/SamuelSchlesinger/tshts

↓ 4 callersMethodwith_names
Attach a named-ranges map to the evaluator. Bare identifiers in formulas (e.g. `=Revenue + 10`) resolve through it.
src/domain/services/evaluator/mod.rs:65
↓ 4 callersMethodwith_snapshot_undo
Run a structural mutation with a coarse snapshot-based undo entry. `description` shows in :history-style listings (currently only used for debugging).
src/application/state/mod.rs:419
↓ 3 callersFunctionadd
Record a file as most-recently-used, deduping prior entries and capping to `MAX_ENTRIES`. Errors are silently ignored. Written atomically so a crash m
src/infrastructure/recent.rs:51
↓ 3 callersMethodauto_resize_column
(&mut self, col: usize)
src/domain/models/spreadsheet/mod.rs:574
↓ 3 callersFunctionbuild_deep
"Deep-narrow": a chain of N formula cells. Worst parallel case.
benches/calc_engine.rs:72
↓ 3 callersFunctionbuild_fanout
"Fan-out": one seed with N independent dependents at level 1.
benches/calc_engine.rs:103
↓ 3 callersFunctionbuild_parity_workbook
Helper: build a workbook with a small mix of same-sheet and cross-sheet dependencies. Returns the workbook ready for recalc.
src/domain/services/executor.rs:555
↓ 3 callersFunctionbuild_wide
"Shallow-wide": N independent formula cells, no dep chains. Ideal parallel workload — every cell can run on its own worker.
benches/calc_engine.rs:39
↓ 3 callersFunctionclear_cache
Clears the entire cache. Bound to `:cache clear`. Also drops the in_flight set so the in-flight cap doesn't stay artificially saturated if the user in
src/infrastructure/fetcher.rs:409
↓ 3 callersMethodclear_cells_on_active
Bulk clear — symmetric to `write_cells_on_active`.
src/domain/models/workbook.rs:1297
↓ 3 callersFunctioncreate_test_spreadsheet
()
src/infrastructure/persistence.rs:141
↓ 3 callersFunctioncriteria_matches
Tests a value against an Excel-style criteria string. Supported forms: "5" (equality), ">5", "<5", ">=5", "<=5", "<>5", "*wildcard*" (glob; `?` matche
src/domain/parser/mod.rs:534
↓ 3 callersFunctionctrl
(app: &mut App, c: char)
src/presentation/input/normal/tests.rs:20
↓ 3 callersFunctiondays_in_month
(year: i32, month: u32)
src/domain/parser/mod.rs:674
↓ 3 callersMethoddelete_col_on_active
(&mut self, at: usize)
src/domain/models/workbook.rs:841
↓ 3 callersMethoddismiss_transients
(&mut self)
src/application/state/mod.rs:345
↓ 3 callersMethodevaluate_function_args
Evaluates function arguments. Ranges produce a single `Value::List` so range-aware functions (SUMIF, VLOOKUP, ...) can preserve structure. Scalar aggr
src/domain/parser/evaluator/mod.rs:907
↓ 3 callersMethodextract_cell_references_from_ast
(&self, expr: &Expr)
src/domain/services/evaluator/refs.rs:156
↓ 3 callersFunctionformat_cell_value
Formats a cell value according to the given number format.
src/domain/models/style.rs:95
↓ 3 callersMethodgo_to_current_search_result
(&mut self)
src/application/state/search.rs:76
↓ 3 callersFunctiongoto_cell
Navigate the cursor to the given A1 address via Ctrl-G (goto-cell). Plain `g` in tshts is vim's `gg` prefix, not goto — the goto-cell dialog is bound
tests/common/scenarios/mod.rs:265
↓ 3 callersMethodinsert_col
Inserts a column at the given index, shifting all columns at or to the right by 1. Updates formula references accordingly.
src/domain/models/spreadsheet/mod.rs:748
↓ 3 callersMethodinsert_row
Inserts a row at the given index, shifting all rows at or below down by 1. Updates formula references accordingly.
src/domain/models/spreadsheet/mod.rs:639
↓ 3 callersMethodis_error
True if this value is an error (or a list/array containing one).
src/domain/parser/mod.rs:198
↓ 3 callersMethoditerative_calc_cyclic
Iterative recalc for a set of cyclic cells that span sheets. Loops up to `iter_max` passes; converges when every cell's numeric delta from the previou
src/domain/models/workbook.rs:470
↓ 3 callersFunctionload
Load the recent-files list. Returns an empty vec on any error. Lazily purges entries whose backing file no longer exists so the UI doesn't show dead p
src/infrastructure/recent.rs:29
↓ 3 callersFunctionnumbers_equal
Tolerance-aware float equality. Returns true when the two numbers are within a relative epsilon scaled to their magnitude, with an absolute floor at `
src/domain/parser/mod.rs:820
↓ 3 callersFunctionparse_range
Parse a literal cell-range like `A1:B10` into ((row, col), (row, col)).
src/application/state/mod.rs:258
↓ 3 callersFunctionpath
()
src/infrastructure/sidecar.rs:43
↓ 3 callersMethodpropagate_cell_change
Propagation hook for cell mutations that don't go through `Workbook::write_cells_on_active`. With the unified graph executor as the single source of t
src/application/state/mod.rs:452
↓ 3 callersMethodrecord_structural_targets
Record the cells INDIRECT/OFFSET resolved to during a VolatileStructural cell's evaluation. Called by the executor post-eval so the next recalc's auto
src/domain/models/workbook.rs:1438
↓ 3 callersMethodreplace_current
(&mut self)
src/application/state/search.rs:150
↓ 3 callersMethodresolve_name
Look up a name and parse its value into an `Expr`. The value may be a single cell ref or a range like `A1:B10`. Bare TRUE/FALSE are handled via `bare_
src/domain/parser/evaluator/mod.rs:184
↓ 3 callersMethodset_cell_internal
Low-level cell write without dependency tracking or recalc. Use `set_cell`.
src/domain/models/spreadsheet/mod.rs:156
↓ 3 callersMethodset_many
Bulk-set many cells. Pure write operation; the workbook executor handles dep propagation. Used by sort/autofill/paste — write the batch, mark dirty at
src/domain/models/spreadsheet/mod.rs:352
↓ 3 callersFunctionset_network_enabled
Toggle whether `GET()` calls actually hit the network. When false, `fetch` returns a sentinel error and no request is enqueued. Bound to `:net on/off`
src/infrastructure/fetcher.rs:32
↓ 3 callersMethodset_prereqs
Replace `node`'s outgoing edges with `prereqs`. Equivalent to `unlink_node(node); link(node, prereqs)` but as one safe call. Prefer this over `link` w
src/domain/models/dep_graph.rs:107
↓ 3 callersMethodset_selection_bg_color
(&mut self, color: Option<TerminalColor>)
src/application/state/formatting.rs:231
↓ 3 callersMethodsnapshot_view_state_to_active_sheet
Push the App's runtime view-state fields into the active sheet's persistent record so the next save round-trips them.
src/application/state/io.rs:164
↓ 3 callersMethodvim_motion_bottom
(&mut self)
src/application/state/vim.rs:150
↓ 3 callersMethodvim_motion_goto_row
(&mut self, n: usize)
src/application/state/vim.rs:164
↓ 3 callersMethodvim_motion_row_end
(&mut self)
src/application/state/vim.rs:116
↓ 3 callersMethodvim_motion_top
(&mut self)
src/application/state/vim.rs:145
↓ 3 callersMethodwait_for_text
Poll the screen up to `timeout` waiting for `needle` to appear. Returns true if found, false on timeout.
tests/common/mod.rs:272
↓ 3 callersFunctionwith_parse_cache
Run `parse` on `expr`, returning a cached AST if one exists. The cache is keyed by the exact formula string. Lookups are O(N) over a small cap so the
src/domain/services/mod.rs:51
↓ 2 callersFunctionabs_range
Wrap an A1-style address (single cell `"A2"` or range `"A2:B6"`) in fully-absolute references: `"A2" → "$A$2"`, `"A2:B6" → "$A$2:$B$6"`. Idempotent. S
tests/common/scenarios/mod.rs:363
↓ 2 callersFunctionadd_thousands_separator
(s: &str)
src/domain/models/style.rs:138
↓ 2 callersFunctionascii_prefix_match
(rest: &str, prefix: &[u8])
src/infrastructure/xlsx.rs:169
↓ 2 callersMethodauto_resize_all_columns
Automatically resizes all columns to fit their content. Single pass over the sparse `cells` map (O(N) total) instead of O(cols × cells) — the per-col
src/domain/models/spreadsheet/mod.rs:611
↓ 2 callersFunctionbare_bool_literal
Compare two values for ordering. Numbers compare numerically (with the same float-tolerance as `=`); strings compare lexicographically and case-insens
src/domain/parser/evaluator/mod.rs:93
↓ 2 callersFunctionbatch_apply_cells_then_recalc
Bulk-apply CellModified-style entries from a batch in O(N) total — write every cell directly to the live workbook, mark the union dirty, then run a si
src/application/state/undo.rs:281
↓ 2 callersFunctionbuild_row
(app: &App, row: usize, visible_cols: usize, is_frozen: bool)
src/presentation/ui/grid.rs:52
↓ 2 callersFunctionbuild_workbook_from
(formulas: &[(usize, usize, String)])
src/domain/services/executor.rs:771
↓ 2 callersMethodcancel_editing
(&mut self)
src/application/state/editing.rs:202
↓ 2 callersMethodcancel_goto_cell
(&mut self)
src/application/state/search.rs:341
↓ 2 callersFunctioncell_at
(app: &App, x: usize, y: usize)
src/presentation/ui/grid.rs:346
↓ 2 callersMethodcheck_circular_in_formula
Checks for circular references in a formula string, reusing the visited set.
src/domain/services/evaluator/circular.rs:11
↓ 2 callersMethodcheck_circular_reference_in_ast
Checks for circular references in an AST.
src/domain/services/evaluator/circular.rs:26
↓ 2 callersFunctioncheck_url_safety
Reject URLs that resolve to IP literals in private/loopback/link-local ranges, or to obvious hostnames like `localhost`. This catches the common SSRF
src/infrastructure/fetcher.rs:182
↓ 2 callersMethodclear_cell_with_undo
(&mut self, row: usize, col: usize)
src/application/state/mod.rs:598
↓ 2 callersMethodclear_filter
(&mut self)
src/application/state/formatting.rs:302
↓ 2 callersFunctioncompletion_count
Monotonic counter of completed fetches. The main loop watches this to know when to trigger a recalc.
src/infrastructure/fetcher.rs:401
↓ 2 callersFunctionconfig_dir
()
src/infrastructure/sidecar.rs:35
↓ 2 callersFunctionconfig_dir
()
src/infrastructure/recent.rs:12
↓ 2 callersFunctionconfig_path
()
src/infrastructure/recent.rs:20
↓ 2 callersMethodcontinue_sheet_qualified_ref
Called after we've consumed `<sheet_name> !`. Reads the cell or range that follows and produces a sheet-qualified Expr. Also supports 3-D refs of the
src/domain/parser/parser_impl.rs:284
↓ 2 callersMethoddelete_col
Deletes the column at the given index, shifting all columns to the right left by 1. Updates formula references accordingly.
src/domain/models/spreadsheet/mod.rs:812
↓ 2 callersMethoddelete_row
Deletes the row at the given index, shifting all rows below up by 1. Updates formula references accordingly.
src/domain/models/spreadsheet/mod.rs:693
↓ 2 callersMethodensure_sheet_ids
Ensure `sheet_ids` is parallel to `sheets`. Fills in fresh IDs for sheets that don't have one yet — happens on load of files written before SheetId ex
src/domain/models/workbook.rs:314
↓ 2 callersFunctionfill_col
(app: &mut App, col: usize, n: usize)
src/presentation/input/editing.rs:96
↓ 2 callersMethodforget_cell_in_graph
Drop unified-graph + purity tracking for a cell whose formula was removed (or the cell itself was deleted). Called from `clear_cell_on_active` paths s
src/domain/models/workbook.rs:1425
↓ 2 callersMethodforget_node
Forget every edge touching `node` in either direction. Use when a cell is removed (clears outgoing edges via `unlink_node`) AND the node should no lon
src/domain/models/dep_graph.rs:136
↓ 2 callersFunctiongcd
(a: i64, b: i64)
src/domain/parser/registry_fns/numeric.rs:514
↓ 2 callersMethodgenerate
Generate value at given index (0-based from start of pattern).
src/domain/services/autofill_pattern.rs:62
↓ 2 callersMethodget_function
Gets a function by name.
src/domain/parser/registry.rs:70
↓ 2 callersFunctionhelp_section_offset
(key: char)
src/presentation/ui/help.rs:67
↓ 2 callersMethodinsert_col_on_active
(&mut self, at: usize)
src/domain/models/workbook.rs:831
↓ 2 callersFunctioninstall_as_file_writer
Install this module's `atomic_write` as the global file writer used by `CsvExporter::export_to_csv` (and any future domain-layer file output). Call on
src/infrastructure/atomic.rs:92
↓ 2 callersFunctioninstall_as_http_fetcher
Install this module's fetcher as the global HTTP fetcher used by the `GET()` formula function. Call once at process startup before any formula evaluat
src/infrastructure/fetcher.rs:317
↓ 2 callersFunctionis_blocked_ip
(ip: &IpAddr)
src/infrastructure/fetcher.rs:240
↓ 2 callersMethodjump_to_end
(&mut self)
src/application/state/navigation.rs:50
↓ 2 callersMethodjump_to_home
(&mut self)
src/application/state/navigation.rs:43
↓ 2 callersMethodlookup_local
Look up `name` in the local scope (innermost first).
src/domain/parser/evaluator/mod.rs:170
↓ 2 callersFunctionmark_dirty
Record that the workbook has been modified. The main loop calls this once per dirtying action; the autosave thread waits for the idle window before wr
src/infrastructure/autosave.rs:99
↓ 2 callersMethodmark_dirty_active
Mark a cell on the currently-active sheet as dirty.
src/domain/models/workbook.rs:1182
↓ 2 callersMethodmark_sheet_dirty
Mark every cell on a given sheet as dirty. Reserved for callers that need maximal coverage (e.g. wholesale sheet replacement like CSV import) where ev
src/domain/models/workbook.rs:1192
↓ 2 callersFunctionmigrate_workbook_json
Walk `raw` (the in-memory JSON value of a workbook file just parsed by `serde_json`) and apply schema migrations from its declared `version` field up
src/domain/models/workbook.rs:48
↓ 2 callersFunctionnetwork_enabled
Whether `:net on` has been issued this session.
src/infrastructure/fetcher.rs:37
↓ 2 callersFunctionnext_rand_u64
Advance the thread-local PRNG and return the next 64-bit value.
src/domain/parser/registry_fns/numeric.rs:645
↓ 2 callersMethodnext_search_result
(&mut self)
src/application/state/search.rs:58
↓ 2 callersMethodnext_token
(&mut self)
src/domain/parser/lexer.rs:216
↓ 2 callersFunctionnormal_mode
Bounce through `Esc` to guarantee Normal mode. Cheap and safe; the harness's existing input settle delay handles the redraw.
tests/common/scenarios/mod.rs:255
↓ 2 callersMethodparse_addition
Parses addition and subtraction expressions.
src/domain/parser/parser_impl.rs:140
↓ 2 callersMethodparse_comparison
Parses comparison expressions.
src/domain/parser/parser_impl.rs:97
↓ 2 callersMethodparse_concatenation
Parses string concatenation expressions. Sits between comparison and addition: Excel binds `&` looser than `+`/`-` but tighter than comparisons, so `=
src/domain/parser/parser_impl.rs:123
↓ 2 callersMethodparse_multiplication
Parses multiplication, division, and modulo expressions.
src/domain/parser/parser_impl.rs:162
↓ 2 callersMethodparse_power
Parses power expressions (left-associative, matching Excel/Sheets).
src/domain/parser/parser_impl.rs:185
↓ 2 callersMethodparse_unary
Parses unary expressions.
src/domain/parser/parser_impl.rs:201
↓ 2 callersMethodprevious_search_result
(&mut self)
src/application/state/search.rs:65
↓ 2 callersFunctionpush_dynamic_target
Push a dynamic target captured during INDIRECT/OFFSET eval. Called from the inline handlers in `ExpressionEvaluator::evaluate` after the target sheet/
src/domain/parser/mod.rs:738
← previousnext →201–300 of 1,456, ranked by callers