Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agavra/tuicr
/ functions
Functions
2,753 in github.com/agavra/tuicr
⨍
Functions
2,753
◇
Types & classes
298
↓ 208 callers
Method
iter
(&self)
src/persistence/manifest.rs:120
↓ 185 callers
Method
is_empty
(&self)
src/persistence/manifest.rs:132
↓ 181 callers
Method
len
Total entry count across all slugs (a slug with two local entries counts twice).
src/persistence/manifest.rs:128
↓ 123 callers
Method
path
(&self)
src/review_store.rs:138
↓ 68 callers
Method
display_path
(&self)
src/model/diff_types.rs:147
↓ 68 callers
Method
get_file_mut
(&mut self, path: &PathBuf)
src/model/review.rs:197
↓ 67 callers
Function
build_app
()
src/app/tests/target_selector_tests.rs:79
↓ 67 callers
Method
contains
Check if this range contains a given line
src/model/comment.rs:45
↓ 61 callers
Function
parse_for_test
(args: &[&str])
src/cli.rs:410
↓ 60 callers
Method
as_str
(self)
src/forge/submit.rs:61
↓ 51 callers
Method
rebuild_annotations
Rebuild the line annotations cache. Call this when: - Diff files change (load/reload) - Expansion state changes (expand/collapse gap) - Comments are a
src/app/annotations.rs:59
↓ 49 callers
Method
set_message
(&mut self, msg: impl Into<String>)
src/app/modes.rs:4
↓ 48 callers
Function
parse_config
Helper: write a config file, parse it, and return the outcome.
src/config/mod.rs:552
↓ 39 callers
Function
parse_unified_diff
Parse unified diff output into DiffFile structures.
src/vcs/diff_parser.rs:24
↓ 38 callers
Method
add_file
Registers a file in the session. Returns true if the file was previously reviewed but its content changed, causing reviewed status to be reset.
src/model/review.rs:164
↓ 37 callers
Function
build_app_with_files
(files: Vec<DiffFile>, total_lines: u32)
src/app/tests/expand_gap_tests.rs:72
↓ 35 callers
Method
is_none
True for the typeless default. Callers use this to suppress the `[TYPE]` prefix / badge for untyped comments.
src/model/comment.rs:114
↓ 35 callers
Function
make_pr_app_with_single_modified_file
(file_path: &str)
src/app/tests/submit_flow_tests.rs:43
↓ 34 callers
Method
start_initial_load
Begin the initial fetch. Only meaningful from `Idle`.
src/forge/selector.rs:132
↓ 32 callers
Method
apply_initial_load
Apply the result of the initial load.
src/forge/selector.rs:193
↓ 32 callers
Function
make_file_with_hunks
(path: &str, hunks: Vec<DiffHunk>)
src/app/tests/expand_gap_tests.rs:106
↓ 32 callers
Method
open_pr_with_backend
( &mut self, summary: &crate::forge::traits::PullRequestSummary, backend: Box<dyn Forg
src/app/pr.rs:1110
↓ 32 callers
Function
sample_pr
(number: u64, title: &str)
src/app/tests/target_selector_tests.rs:430
↓ 32 callers
Function
test_pr_details
(number: u64, title: &str)
src/app/tests/target_selector_tests.rs:326
↓ 31 callers
Function
with_test_reviews_dir
()
src/persistence/storage.rs:824
↓ 30 callers
Function
save_session
Save a session to disk and update the manifest. The on-disk path is derived from the session's slug; the slug is computed from the session's fields at
src/persistence/storage.rs:57
↓ 27 callers
Function
comment_types
()
src/output/markdown.rs:537
↓ 27 callers
Function
generate_markdown
( session: &ReviewSession, diff_source: &DiffSource, comment_types: &[CommentTypeDefinition],
src/output/markdown.rs:227
↓ 26 callers
Function
parse_pull_request_target
(input: &str)
src/forge/github/gh.rs:586
↓ 24 callers
Method
syntax_highlighter
Get the syntax highlighter for this theme (lazily initialized, cached)
src/theme/mod.rs:2295
↓ 23 callers
Function
add_line_comment
(app: &mut App, path: &str, line: u32, comment: Comment)
src/app/tests/submit_flow_tests.rs:138
↓ 23 callers
Method
set_warning
(&mut self, msg: impl Into<String>)
src/app/modes.rs:8
↓ 21 callers
Function
get_reviews_dir
()
src/persistence/storage.rs:672
↓ 21 callers
Method
max_cursor_line
Last line the cursor can occupy. If the final annotation is a Spacing separator it is not navigable content and is excluded.
src/app/navigation.rs:1231
↓ 21 callers
Function
repo
()
src/forge/github/gh.rs:1216
↓ 21 callers
Function
run_git_command
(workdir: &Path, args: &[&str])
src/vcs/git/mod.rs:193
↓ 21 callers
Function
test_session
()
src/model/review.rs:244
↓ 20 callers
Method
add_diff_file
(&mut self, file: &DiffFile)
src/model/review.rs:179
↓ 20 callers
Function
line_comment
(side: LineSide, new: Option<u32>, old: Option<u32>)
src/app/tests/submit_flow_tests.rs:124
↓ 20 callers
Function
make_local_session
( repo_path: PathBuf, base_commit: &str, branch_name: Option<&str>, diff_sourc
src/persistence/storage.rs:838
↓ 20 callers
Function
make_repo
()
src/persistence/storage.rs:832
↓ 19 callers
Method
add_file_comment
(&mut self, comment: Comment)
src/model/review.rs:47
↓ 19 callers
Method
get_pull_request
(&self, target: PullRequestTarget)
src/forge/github/gh.rs:240
↓ 18 callers
Method
add_line_comment
(&mut self, line: u32, comment: Comment)
src/model/review.rs:51
↓ 18 callers
Function
default_config
()
src/forge/submit.rs:545
↓ 17 callers
Method
expand_gap
Expand a gap in the given direction. If `limit` is Some(n), expand up to n lines. If None, expand all remaining.
src/app/gaps.rs:228
↓ 17 callers
Method
select
(&mut self, index: usize)
src/app/mod.rs:1275
↓ 17 callers
Method
set_error
(&mut self, msg: impl Into<String>)
src/app/modes.rs:12
↓ 17 callers
Method
start_submit
Drive `:submit*` preflight: walk every local-draft comment in the current PR session, map each one against the displayed diff, bucket the results, and
src/app/submit.rs:11
↓ 16 callers
Method
expand_all_dirs
(&mut self)
src/app/tree.rs:187
↓ 16 callers
Function
find_source_line
( annotations: &[AnnotatedLine], current_file: usize, target_lineno: u32, side: LineSide, )
src/app/mod.rs:460
↓ 16 callers
Function
handle_command_action
Handle actions in Command mode (text input for :commands)
src/handler.rs:495
↓ 16 callers
Method
hunk_review_key
Stable key for a reviewed hunk. Unique hunk content ignores hunk header line numbers so unrelated edits above a hunk do not clear its reviewed state.
src/model/diff_types.rs:91
↓ 16 callers
Method
id
(&self)
src/model/comment.rs:101
↓ 16 callers
Function
resolve_theme
Resolve a theme based on the CLI argument
src/theme/mod.rs:1687
↓ 16 callers
Function
wrap_spans
(spans: &[Span<'a>], width: usize)
src/ui/text_utils.rs:96
↓ 15 callers
Method
cursor_down
(&mut self, lines: usize)
src/app/navigation.rs:4
↓ 15 callers
Function
key
(code: KeyCode)
src/input/keybindings.rs:441
↓ 15 callers
Function
map_comment
Map a single local `Comment` to either an inline GitHub comment or an `Unmappable` outcome. `file` must be the diff file that produced this comment (l
src/forge/submit.rs:191
↓ 15 callers
Method
sort_files_by_directory
(&mut self, reset_position: bool)
src/app/tree.rs:131
↓ 14 callers
Function
anchor_from
Infer the `CommentAnchor` from a test fixture's `Comment` shape. Production callers (`App::start_submit`) build the anchor from the `line_comments` Ha
src/forge/submit.rs:584
↓ 14 callers
Function
maybe_migrate
On first run under the flat layout, move any pre-existing reviews dir aside. The current layout is identified by the presence of the `sessions/` subdi
src/persistence/storage.rs:715
↓ 14 callers
Function
repo
()
src/forge/selector.rs:498
↓ 14 callers
Function
two_file_patch
(changed_replacement: &str)
src/app/tests/target_selector_tests.rs:710
↓ 13 callers
Function
build_scroll_app
Build a test App with a single file containing `n` context lines. Total rendered lines = 1 (review header) + 1 (file header) + 1 (spacing) + 1 (hunk h
src/app/tests/scroll_behavior_tests.rs:43
↓ 13 callers
Function
create_test_session
()
src/output/markdown.rs:566
↓ 13 callers
Function
draw
(app: &mut App)
src/ui/selector.rs:594
↓ 13 callers
Method
ensure_cursor_visible
Adjusts scroll_offset so the cursor stays within the visible viewport, respecting the configured scroll margin (minimum lines from edge).
src/app/navigation.rs:200
↓ 13 callers
Function
make_app
(commits: Vec<CommitInfo>)
src/ui/selector.rs:543
↓ 13 callers
Function
make_in_flight
( event: SubmitEvent, comment_ids: &[&str], head_sha: &str, moved_to_summary_count: usize, )
src/app/tests/submit_flow_tests.rs:609
↓ 13 callers
Function
rgb
(r: u8, g: u8, b: u8)
src/theme/mod.rs:1239
↓ 13 callers
Function
row_text
(buffer: &Buffer, y: u16)
src/ui/selector.rs:603
↓ 12 callers
Method
draw
Draws one frame while the TUI terminal session is active.
src/terminal_state.rs:78
↓ 12 callers
Method
jump_to_file
(&mut self, idx: usize)
src/app/navigation.rs:581
↓ 12 callers
Function
load_latest_session_for_context
Look up the persisted local session that matches the requested context. Returns `None` if no matching slug is in the manifest, or if a manifest entry
src/persistence/storage.rs:474
↓ 12 callers
Function
load_manifest
Load the manifest from `<reviews_dir>/index.json`. Returns an empty manifest if the file does not exist; returns a corruption error when the file exis
src/persistence/manifest.rs:141
↓ 12 callers
Function
make_pr_details
(repo: ForgeRepository)
src/forge/gitlab/glab.rs:1431
↓ 12 callers
Function
make_response
( id: u64, html_url: &str, state: &str, )
src/app/tests/submit_flow_tests.rs:643
↓ 12 callers
Function
repo
()
src/ui/selector.rs:575
↓ 12 callers
Method
save_current_session_merging_external
(&mut self)
src/app/session.rs:110
↓ 12 callers
Method
selected
(&self)
src/app/mod.rs:1271
↓ 12 callers
Method
update_current_file_from_cursor
(&mut self)
src/app/navigation.rs:1187
↓ 12 callers
Function
wrap_segments
Split `text` into segments whose display width each fits within `content_area`. Returns a single-element vec when the text already fits. The returned
src/ui/comment_panel.rs:24
↓ 11 callers
Function
border_style
(theme: &Theme, focused: bool)
src/ui/styles.rs:49
↓ 11 callers
Function
create_forge_backend
Create a forge backend for the given repository. Routes to the GitHub backend (via `gh`) or the GitLab backend (via `glab`) based on `repo.kind`.
src/app/mod.rs:42
↓ 11 callers
Method
create_review
( &self, pr: &PullRequestDetails, request: CreateReviewRequest<'_>, )
src/forge/gitlab/glab.rs:555
↓ 11 callers
Function
dim_style
(theme: &Theme)
src/ui/styles.rs:9
↓ 11 callers
Function
panel_style
(theme: &Theme)
src/ui/styles.rs:57
↓ 11 callers
Method
replace
( buffer: impl Into<String>, completion: Option<CommandCompletionState>, )
src/handler.rs:684
↓ 11 callers
Function
typical_file
()
src/forge/submit.rs:536
↓ 10 callers
Function
build_local_slug
Build a `LocalSlug` from session inputs. The `owner_repo` pair is taken pre-resolved (see [`resolve_owner_repo`]) so that the build step itself is pur
src/slug.rs:488
↓ 10 callers
Method
build_visible_items
(&self)
src/app/tree.rs:260
↓ 10 callers
Method
clear_expanded_gaps
Clear all expanded gaps (called when reloading diffs)
src/app/gaps.rs:370
↓ 10 callers
Method
create_review
( &self, pr: &PullRequestDetails, request: CreateReviewRequest<'_>, )
src/forge/github/gh.rs:460
↓ 10 callers
Function
cursor_indicator
(line_idx: usize, current_line_idx: usize)
src/ui/diff_view.rs:132
↓ 10 callers
Function
filter_diff_files
Apply `.tuicrignore` rules from the repository root to a diff file set.
src/tuicrignore.rs:8
↓ 10 callers
Function
format_comment_input_lines
( theme: &Theme, comment_type: CommentTypePresentation, buffer: &str, cursor_pos: usize, l
src/ui/comment_panel.rs:112
↓ 10 callers
Method
highlight_file_lines
Highlight all lines in a file's content. Returns `None` when no syntax can be resolved for the file (by path or shebang). Otherwise returns one entry
src/syntax/mod.rs:98
↓ 10 callers
Function
load_session
Load a session JSON file from an absolute path.
src/persistence/storage.rs:465
↓ 10 callers
Function
map_normal_mode
(key: KeyEvent, leader_key: char)
src/input/keybindings.rs:155
next →
1–100 of 2,753, ranked by callers