MCPcopy Create free account

hub / github.com/SamuelSchlesinger/tshts / functions

Functions1,456 in github.com/SamuelSchlesinger/tshts

↓ 2 callersMethodremove_name
Remove a named range. Returns true if it existed.
src/domain/models/workbook.rs:1159
↓ 2 callersFunctionrestore_cell
Restore `(row, col)` to `data` (or clear if `None`), then propagate. Shared by `apply` and `revert` for `CellModified`.
src/application/state/undo.rs:261
↓ 2 callersFunctionrestore_cf
(workbook: &mut Workbook, sheet_idx: usize, rules: &[crate::domain::ConditionalFormat])
src/application/state/undo.rs:331
↓ 2 callersMethodrestore_view_state_from_active_sheet
Pull persistent view state (frozen rows/cols, hidden ranges, filter, validations) from the loaded workbook's active sheet into the App's runtime field
src/application/state/io.rs:151
↓ 2 callersFunctionrewrite_sheet_refs
(formula: &str, old: &str, new: &str)
src/domain/models/refs.rs:8
↓ 2 callersMethodrun_inner
( &self, plan: &RecalcPlan, wb: &mut Workbook, )
src/domain/services/executor.rs:155
↓ 2 callersFunctionseed_error
Seed a cached error so the next `fetch(url)` returns `FetchResult::Error` synchronously. Useful for exercising the IFERROR-traps-GET path without depe
src/infrastructure/fetcher.rs:451
↓ 2 callersMethodset_csv_export_result
(&mut self, result: Result<String, String>)
src/application/state/io.rs:215
↓ 2 callersFunctionskip_cell_or_range
Skip an A1-style cell reference (optionally absolute) starting at `start`. If a `:` follows, skip the second endpoint too. Returns the index past the
src/domain/models/refs.rs:170
↓ 2 callersFunctionskip_one_cell
(chars: &[char], start: usize)
src/domain/models/refs.rs:179
↓ 2 callersMethodsort_column
(&mut self, ascending: bool)
src/application/state/formatting.rs:14
↓ 2 callersMethodsort_column_desc
(&mut self)
src/application/state/formatting.rs:10
↓ 2 callersFunctionsort_kind
Comparator follows Excel's mixed-type rule: numbers come first (ordered numerically among themselves), then text (ordered alphabetically), then bools/
src/domain/parser/registry_fns/dynamic_array.rs:122
↓ 2 callersFunctionstrip_sentinel
Strip the sentinel prefix from a TSV string if present.
src/infrastructure/sidecar.rs:108
↓ 2 callersFunctionterminal_color_to_ratatui
(color: &TerminalColor)
src/presentation/ui/mod.rs:52
↓ 2 callersFunctiontime_executor
Run `executor` against `builder` `iterations` times, returning median wall-clock per recalc.
benches/calc_engine.rs:167
↓ 2 callersMethodupdate_viewport_size
(&mut self, rows: usize, cols: usize)
src/application/state/mod.rs:665
↓ 2 callersMethodvim_motion_row_start
(&mut self)
src/application/state/vim.rs:111
↓ 2 callersMethodwith_workbook
Attach a workbook handle to the evaluator. Sheet-qualified refs (`Sheet2!A1`) and 3-D ranges (`Sheet1:Sheet3!A1`) resolve through it.
src/domain/services/evaluator/mod.rs:72
↓ 2 callersFunctionwith_workbook_context
Read the thread-local workbook ref and pass it (as `Option<&Workbook>`) to `f`. Used by `Spreadsheet::recalculate_cell` and `maybe_spill` to enrich th
src/domain/models/workbook.rs:128
↓ 2 callersMethodwould_create_cross_sheet_cycle
Check whether adding a new formula at `(sheet_name, row, col)` with the given precedents would create a cross-sheet cycle. Walks the existing cross-sh
src/domain/models/workbook.rs:1496
↓ 1 callersFunctionadd_commas_local
(int_str: &str)
src/domain/parser/registry_fns/string.rs:577
↓ 1 callersMethodadjust_ast_references
Adjusts cell references in an AST. Absolute parts (`$col` / `$row`) are preserved verbatim — only the relative parts shift by the offsets. If a relati
src/domain/services/evaluator/adjust.rs:53
↓ 1 callersMethodadjust_formula_for_col_delete
Adjusts formula references when a column is deleted at `at`. References to cols > at are decremented by 1. References to the deleted column itself bec
src/domain/services/evaluator/adjust.rs:261
↓ 1 callersMethodadjust_formula_for_col_insert
Adjusts formula references when a column is inserted at `at`. References to cols >= at are incremented by 1.
src/domain/services/evaluator/adjust.rs:252
↓ 1 callersMethodadjust_formula_for_row_delete
Adjusts formula references when a row is deleted at `at`. References to rows > at are decremented by 1. References to the deleted row itself become `#
src/domain/services/evaluator/adjust.rs:242
↓ 1 callersMethodadjust_formula_for_row_insert
Adjusts formula references when a row is inserted at `at`. References to rows >= at are incremented by 1.
src/domain/services/evaluator/adjust.rs:233
↓ 1 callersMethodadjust_formula_for_sheet_col_delete
( &self, formula: &str, target_sheet: &str, at: usize, )
src/domain/services/evaluator/cross_sheet.rs:54
↓ 1 callersMethodadjust_formula_for_sheet_col_insert
( &self, formula: &str, target_sheet: &str, at: usize, )
src/domain/services/evaluator/cross_sheet.rs:43
↓ 1 callersMethodadjust_formula_for_sheet_row_delete
( &self, formula: &str, target_sheet: &str, at: usize, )
src/domain/services/evaluator/cross_sheet.rs:30
↓ 1 callersMethodadjust_formula_for_sheet_row_insert
Adjusts SHEET-QUALIFIED references in a formula whose sheet matches `target_sheet` (case-insensitive). Used by `Workbook` when a structural mutation o
src/domain/services/evaluator/cross_sheet.rs:19
↓ 1 callersMethodapply
Re-apply this action to the workbook. Used by `App::redo`. Returns any non-fatal recalc error so the caller can surface it.
src/application/state/undo.rs:176
↓ 1 callersFunctionapply_date_format
(fmt: &str, year: i32, month: u32, day: u32)
src/domain/parser/registry_fns/string.rs:527
↓ 1 callersFunctionapply_number_format
(fmt: &str, n: f64)
src/domain/parser/registry_fns/string.rs:548
↓ 1 callersMethodascend
(&mut self)
src/domain/parser/parser_impl.rs:41
↓ 1 callersMethodauto_resize_column_with_cap
Auto-resize with a caller-supplied maximum (e.g. derived from the viewport so a single wide cell can't push other columns off-screen).
src/domain/models/spreadsheet/mod.rs:580
↓ 1 callersMethodautofill_column
(&self, start_row: usize, end_row: usize, col: usize)
src/application/state/autofill.rs:65
↓ 1 callersMethodautofill_row
(&self, row: usize, start_col: usize, end_col: usize)
src/application/state/autofill.rs:156
↓ 1 callersFunctionbuild_style_table
Builds a deduplicated style table for the workbook. Index 0 is always the default (no styling). Each unique non-default `CellFormat` gets an index tha
src/infrastructure/xlsx.rs:240
↓ 1 callersFunctionbuild_styles_xml
Build the `xl/styles.xml` body. Each non-default style maps to a unique numFmt (if needed) + font + fill + cellXf row.
src/infrastructure/xlsx.rs:285
↓ 1 callersFunctionbuiltin_function_names
Returns names of every registered built-in function. Used for autocomplete and the help library.
src/domain/parser/mod.rs:492
↓ 1 callersMethodcancel_pending_action
(&mut self)
src/application/state/lifecycle.rs:41
↓ 1 callersMethodcancel_search
(&mut self)
src/application/state/search.rs:16
↓ 1 callersFunctioncase_insensitive_replace
Search matcher used by find-replace mode and the `:s/find/replace/` command. Honors regex and case-sensitive flags; falls back to substring matching i
src/application/state/matcher.rs:6
↓ 1 callersMethodchecks
(&self, o: &Output)
tests/common/scenarios/dcf.rs:126
↓ 1 callersFunctionclassify_err
Map an unhandled `Err(String)` to the closest Excel error code based on keywords in the message. Falls back to `#ERROR` for genuinely unclassifiable f
src/domain/services/mod.rs:17
↓ 1 callersMethodclassify_identifier
Determines if an identifier is a cell reference or function name. Cell references accept optional `$` markers: `$?[A-Z]+\$?[0-9]+`. Anything containin
src/domain/parser/lexer.rs:141
↓ 1 callersFunctionclear
Remove the sidecar file. Used by `:clipboard clear`.
src/infrastructure/sidecar.rs:80
↓ 1 callersMethodclear_cell
Clears the cell. Sweeps any owned spill ghosts. Does not propagate to dependents — that's the workbook executor's job (use `Workbook::clear_cell_on_ac
src/domain/models/spreadsheet/mod.rs:334
↓ 1 callersMethodclear_many
Bulk-clear many cells. Pure write operation; the workbook executor handles dep propagation. Symmetric counterpart of `set_many`.
src/domain/models/spreadsheet/mod.rs:341
↓ 1 callersMethodclone_for_graph_build
Cheap snapshot for graph building. The evaluator only reads cell values and named ranges, so a full deep-clone is enough; PR 3 will avoid this entirel
src/domain/models/workbook.rs:429
↓ 1 callersMethodcmd_cf_set
`:cf <col> <predicate> [bg=COLOR] [fg=COLOR] [bold] [underline]` The predicate may use `_` for the cell value. We accept multiple whitespace-separate
src/application/state/command/analyze.rs:82
↓ 1 callersMethodcmd_goalseek
`:goalseek TARGET_CELL EXPECTED INPUT_CELL` — bisect the input cell until the target cell evaluates to (approximately) the expected value. Runs on a w
src/application/state/command/data.rs:83
↓ 1 callersMethodcmd_pivot
`:pivot <source> <target> [row=COL] [value=COL] [agg=sum|count|avg|min|max]` Writes a one-key pivot table to `target` whose cells are formula referen
src/application/state/command/data.rs:143
↓ 1 callersMethodcmd_table_create
`:table create A1:D10 [name=Sales]` — register a named table over the range. Each column also gets a `Table[Col]` named range so structured references
src/application/state/command/data.rs:15
↓ 1 callersMethodcmd_trace_dependents
`:trace dependents` — walk the unified workbook graph for cells that read the current cell. The graph is keyed by `NodeKey = (SheetId, row, col)` and
src/application/state/command/analyze.rs:36
↓ 1 callersMethodcmd_trace_precedents
`:trace` / `:trace precedents` — list the cells the current cell's formula reads. Uses the same-sheet evaluator so cross-sheet refs are listed verbati
src/application/state/command/analyze.rs:11
↓ 1 callersMethodcommand_suggestions
(&self, max: usize)
src/application/state/command/mod.rs:686
↓ 1 callersFunctioncommission_of
(sales: f64)
tests/common/scenarios/commission.rs:25
↓ 1 callersMethodcompute
(&self, i: &Inputs)
tests/common/scenarios/dcf.rs:56
↓ 1 callersMethodcompute
(&self, i: &Inputs)
tests/common/scenarios/inventory.rs:69
↓ 1 callersMethoddefault_inputs
(&self)
tests/common/scenarios/dcf.rs:46
↓ 1 callersFunctiondefault_iter_epsilon
()
src/domain/models/workbook.rs:235
↓ 1 callersFunctiondefault_iter_max
()
src/domain/models/workbook.rs:234
↓ 1 callersMethoddelete_col
(&mut self)
src/application/state/clipboard.rs:396
↓ 1 callersMethoddelete_row
(&mut self)
src/application/state/clipboard.rs:374
↓ 1 callersMethoddescend
Bump the recursion counter on entry to a recursive rule. Caller must pair with `ascend()` on every return path; a `?` after `descend` keeps the parser
src/domain/parser/parser_impl.rs:33
↓ 1 callersFunctiondisable
()
src/infrastructure/autosave.rs:87
↓ 1 callersFunctionenable
()
src/infrastructure/autosave.rs:83
↓ 1 callersMethodeval_indirect
INDIRECT(ref_text) → value at the cell whose A1-style address is `ref_text`. Errors if the string can't be parsed as a cell reference. Supports sheet-
src/domain/parser/evaluator/mod.rs:702
↓ 1 callersMethodeval_lambda_helper
Dispatch table for higher-order lambda helpers: MAP, REDUCE, BYROW, BYCOL, SCAN, MAKEARRAY. Each expects a LAMBDA as the last argument.
src/domain/parser/evaluator/mod.rs:560
↓ 1 callersMethodeval_offset
OFFSET(base, rows, cols, [height], [width]) → value or range starting at (base.row + rows, base.col + cols) of the given size. Height and width defaul
src/domain/parser/evaluator/mod.rs:786
↓ 1 callersMethodevaluate_inner
(&self, expr: &Expr)
src/domain/parser/evaluator/mod.rs:208
↓ 1 callersMethodextract_qualified_refs_from_ast
( &self, expr: &Expr, out: &mut Vec<(Option<String>, usize, usize)>, )
src/domain/services/evaluator/refs.rs:49
↓ 1 callersFunctionfetch
Look up a URL, returning the cached value if fresh, or `Loading` while the background worker is fetching. Enqueues a request if no entry exists or the
src/infrastructure/fetcher.rs:324
↓ 1 callersMethodfetch
(&self, url: &str)
src/infrastructure/fetcher.rs:303
↓ 1 callersMethodfinish_editing_move_down
Commit the edit and move the cursor down — alias for `finish_editing` for symmetry with the Up/Right variants. Provided so the Down arrow path is self
src/application/state/editing.rs:198
↓ 1 callersMethodfinish_editing_move_left
(&mut self)
src/application/state/editing.rs:184
↓ 1 callersMethodfinish_editing_move_right
(&mut self)
src/application/state/editing.rs:180
↓ 1 callersMethodfinish_editing_move_up
Commit the edit and move the cursor up — used by the Up arrow in Editing mode, matching Excel/Sheets behavior where pressing Up confirms the value and
src/application/state/editing.rs:191
↓ 1 callersMethodfinish_find_replace
(&mut self)
src/application/state/search.rs:263
↓ 1 callersMethodfinish_search
(&mut self)
src/application/state/search.rs:84
↓ 1 callersFunctionfit_to_width
Truncate `text` to fit within `width` display columns, appending an ellipsis when content was dropped. Returns the original when it fits.
src/presentation/ui/grid.rs:29
↓ 1 callersFunctionflush_now
Force-queue a snapshot, bypassing the IDLE debounce and enabled gate. Called from the shutdown path so a Ctrl+C / SIGTERM with dirty state doesn't dro
src/infrastructure/autosave.rs:167
↓ 1 callersFunctionformat_text
Format a value using a subset of Excel TEXT format codes. Supports: - Date codes: yyyy/yy, mm/m, dd/d (combined as `yyyy-mm-dd`, `m/d/yyyy`, etc.) -
src/domain/parser/registry_fns/string.rs:503
↓ 1 callersFunctionfull_recalc_plan
Mark every formula cell dirty and build a RecalcPlan.
benches/calc_engine.rs:134
↓ 1 callersFunctiongen_abs
(next: &mut impl FnMut() -> u32, i: u32)
src/domain/services/executor.rs:890
↓ 1 callersFunctiongen_arith
(next: &mut impl FnMut() -> u32, i: u32)
src/domain/services/executor.rs:846
↓ 1 callersFunctiongen_if
(next: &mut impl FnMut() -> u32, i: u32)
src/domain/services/executor.rs:865
↓ 1 callersFunctiongen_max_range
(next: &mut impl FnMut() -> u32, _i: u32, helpers: usize)
src/domain/services/executor.rs:882
↓ 1 callersFunctiongen_sum_range
(next: &mut impl FnMut() -> u32, _i: u32, helpers: usize)
src/domain/services/executor.rs:873
↓ 1 callersFunctiongen_vlookup
(next: &mut impl FnMut() -> u32, _i: u32, helpers: usize)
src/domain/services/executor.rs:895
↓ 1 callersFunctiongenerate_random_dag
Hand-rolled LCG: deterministic, no external dep. Returns a sequence of (row, col, content) tuples laying down a topologically- ordered DAG of cells in
src/domain/services/executor.rs:804
↓ 1 callersMethodget_csv_export_filename
(&self)
src/application/state/io.rs:207
↓ 1 callersMethodget_csv_import_filename
(&self)
src/application/state/io.rs:237
↓ 1 callersMethodget_load_filename
(&self)
src/application/state/io.rs:189
↓ 1 callersMethodget_save_filename
(&self)
src/application/state/io.rs:181
↓ 1 callersMethodhas_volatile_cf_predicate
Compute the conditional-format style for the given cell, if any rule matches. Walks rules in declaration order; later rules layer on top. True if any
src/domain/models/spreadsheet/mod.rs:886
↓ 1 callersFunctionhttp_fetch
Look up `url` through whichever fetcher was installed via [`set_http_fetcher`]. If no fetcher has been installed (e.g. unit tests that don't exercise
src/domain/services/http.rs:50
↓ 1 callersMethodinsert_col
(&mut self)
src/application/state/clipboard.rs:388
← previousnext →301–400 of 1,456, ranked by callers