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
↓ 10 callers
Function
parse_graphql_page
Parse one GraphQL response page into domain threads + pagination info. Errors only on malformed JSON; missing optional fields are tolerated.
src/forge/github/review_threads.rs:164
↓ 10 callers
Method
render_decision
Decide whether a thread should appear under this visibility setting. Returns: - `Some(false)` — render with normal styling - `Some(true)` — render wit
src/forge/remote_comments.rs:163
↓ 10 callers
Function
run_hg_command
Run an hg command and return its stdout.
src/vcs/hg/mod.rs:459
↓ 10 callers
Function
run_jj_command
Run a jj command and return its stdout.
src/vcs/jj/mod.rs:454
↓ 10 callers
Function
setup_sparse_index_repo
()
src/vcs/git/cli.rs:1205
↓ 9 callers
Function
app_with
(files: Vec<DiffFile>)
src/app/tests/single_file_view_tests.rs:72
↓ 9 callers
Function
buffer_text
(buffer: &Buffer)
src/ui/submit_modals.rs:418
↓ 9 callers
Function
build_app_with_review_commits
(commits: Vec<CommitInfo>)
src/app/tests/commit_scoped_comment_tests.rs:36
↓ 9 callers
Method
build_comment_navigator_items
(&self)
src/app/comments.rs:149
↓ 9 callers
Function
calculate_gap
Calculate the number of hidden lines (gap) before a hunk. Returns the count of lines between the end of the previous hunk and the start of the curren
src/vcs/git/context.rs:84
↓ 9 callers
Method
center_cursor
(&mut self)
src/app/navigation.rs:226
↓ 9 callers
Method
clear_comments
(&mut self, scope: ClearScope)
src/model/review.rs:205
↓ 9 callers
Method
cursor_up
(&mut self, lines: usize)
src/app/navigation.rs:61
↓ 9 callers
Function
make_pr_key
(number: u64, head_sha: &str)
src/persistence/storage.rs:856
↓ 9 callers
Function
make_pr_session
(key: &PrSessionKey)
src/persistence/storage.rs:864
↓ 9 callers
Method
max_scroll_offset
Calculate the maximum scroll offset. Allows scrolling until the last line of content is at the top of the viewport. This permits empty space below co
src/app/navigation.rs:1245
↓ 9 callers
Function
prepare_open_pr
CPU-only half of the PR open path: parse the patch, apply `.tuicrignore`, and build the session. Runs on the main thread because `SyntaxHighlighter` i
src/forge/pr_open.rs:95
↓ 9 callers
Method
reload_pull_request_with_backend
( &mut self, backend: Box<dyn ForgeBackend>, local_checkout: Option<std::path::PathBuf
src/app/pr.rs:601
↓ 9 callers
Function
resolve_canonical_repository
Resolve `origin` to its canonical (parent) repository. Order: 1. `override_repo` (from `--repo-url`) wins, no I/O. 2. `gh api repos/<owner>/<repo>` pa
src/forge/canonical.rs:21
↓ 9 callers
Function
resolve_theme_with_config
( cli_theme: Option<String>, cli_appearance: Option<AppearanceArg>, config_theme: Option<&str>,
src/theme/mod.rs:2190
↓ 9 callers
Function
run_command_output
( program: &str, current_dir: Option<&Path>, args: I, )
src/process.rs:22
↓ 9 callers
Method
run_gh
(&self, args: Vec<String>, host: &str)
src/forge/github/gh.rs:192
↓ 9 callers
Function
scroll_comment_input_into_view
Adjust scroll_offset so the comment input box is visible in the viewport. The input box is rendered inline in the diff view, so without this adjustme
src/ui/diff_view.rs:226
↓ 9 callers
Function
session_path
(session: &ReviewSession)
src/persistence/storage.rs:110
↓ 9 callers
Method
toggle_hunk_reviewed
(&mut self, key: String)
src/model/review.rs:55
↓ 9 callers
Method
toggle_hunk_reviewed
(&mut self)
src/app/reviewed.rs:239
↓ 9 callers
Method
upsert
Insert or replace an entry. For local entries the matching key is `(slug, canonical_repo_path)`; for PR entries the slug alone suffices because each P
src/persistence/manifest.rs:97
↓ 9 callers
Method
write
(&mut self, bytes: &[u8])
src/hash.rs:21
↓ 9 callers
Function
write_file
(workdir: &Path, path: &str, content: &str)
src/vcs/git/cli.rs:1178
↓ 8 callers
Function
add_comment_to_session
Add a local draft comment to an in-memory session. This is the shared primitive used by the TUI and by [`ReviewStore`].
src/review_store.rs:212
↓ 8 callers
Function
body_text
(buffer: &Buffer)
src/ui/diff_unified.rs:1601
↓ 8 callers
Function
build_pr_app
(pr: PullRequestDiffSource)
src/ui/status_bar.rs:604
↓ 8 callers
Function
build_review_payload
Build the JSON body for the GitHub create-review API call. `commit_id` is the head SHA the comments were authored against (NOT necessarily the PR's c
src/forge/github/submit.rs:17
↓ 8 callers
Method
calculate_file_scroll_offset
(&self, file_idx: usize)
src/app/navigation.rs:780
↓ 8 callers
Function
draw_header
(app: &App)
src/ui/status_bar.rs:637
↓ 8 callers
Function
enhance_with_full_file_highlight
Re-highlight each diff line using full-file context, for files whose grammar needs it (Vue, Svelte, Astro, MDX). Other files keep their existing per-h
src/vcs/mod.rs:184
↓ 8 callers
Function
file_with_hunks
(hunks: Vec<DiffHunk>)
src/forge/submit.rs:523
↓ 8 callers
Function
jj_available
Check if jj command is available
src/vcs/jj/mod.rs:490
↓ 8 callers
Method
local_checkout_path
(&self)
src/app/tests/single_file_view_tests.rs:254
↓ 8 callers
Function
make_pr_app
()
src/ui/submit_modals.rs:342
↓ 8 callers
Function
pr_source
(closed: bool, merged: bool)
src/ui/status_bar.rs:586
↓ 8 callers
Function
render_commit_row
(spec: &CommitRowSpec<'a>)
src/ui/commit_row.rs:38
↓ 8 callers
Function
row_text
(buffer: &Buffer, y: u16)
src/ui/status_bar.rs:649
↓ 8 callers
Method
run_glab
(&self, args: Vec<String>, host: &str)
src/forge/gitlab/glab.rs:210
↓ 8 callers
Method
set_diff_wrap
(&mut self, enabled: bool)
src/app/navigation.rs:185
↓ 8 callers
Function
slice_context_lines
Slice `[start_line, end_line]` (1-indexed, inclusive) into `DiffLine`s.
src/vcs/mod.rs:74
↓ 8 callers
Function
slug_for_session
Derive the slug for a session from its embedded fields. Local sessions require resolving the repo's `origin` remote (I/O); PR sessions are derived pur
src/persistence/storage.rs:641
↓ 8 callers
Function
test_theme
()
src/ui/comment_panel.rs:574
↓ 7 callers
Function
app_with_root
(root_path: PathBuf, files: Vec<DiffFile>)
src/app/tests/single_file_view_tests.rs:76
↓ 7 callers
Method
apply_submit_success
Flip every comment that was sent — inline, summary-bound, and review- level — from `LocalDraft` to `Submitted` (or `PushedDraft` for `:submit draft`)
src/app/submit.rs:499
↓ 7 callers
Function
build_review_body
Builds the GitHub review body. Returns an empty string when there's nothing to say (no summary items, no footer, no review-level comments). `review_l
src/forge/submit.rs:450
↓ 7 callers
Function
comment_with_line
(side: LineSide, new: Option<u32>, old: Option<u32>)
src/forge/submit.rs:549
↓ 7 callers
Function
delete_char_before
Delete the character before the cursor position, returning the new cursor position. Handles multi-byte UTF-8 characters correctly.
src/text_edit.rs:37
↓ 7 callers
Method
effective_scroll_margin
Minimum number of lines kept between the cursor and the viewport edge (equivalent to vim's `scrolloff`). Must be strictly less than half the viewport
src/app/mod.rs:1390
↓ 7 callers
Function
entry
(updated_at: DateTime<Utc>, anchor: &str)
src/persistence/manifest.rs:285
↓ 7 callers
Method
get_working_tree_diff
(&self, highlighter: &SyntaxHighlighter)
src/vcs/hg/mod.rs:106
↓ 7 callers
Function
gl_project_path
Percent-encode `owner/repo` as `owner%2Frepo` for GitLab project API paths.
src/forge/gitlab/glab.rs:128
↓ 7 callers
Method
go_to_source_line
(&mut self, target_lineno: u32, side: LineSide)
src/app/navigation.rs:258
↓ 7 callers
Method
highlighted_line_for_diff_with_background
( &self, old_highlighted_lines: Option<&[Option<HighlightedSpans>]>, new_highlighted_l
src/syntax/mod.rs:228
↓ 7 callers
Method
is_file_reviewed
(&self, path: &PathBuf)
src/model/review.rs:224
↓ 7 callers
Method
is_single
Check if this is a single-line range
src/model/comment.rs:40
↓ 7 callers
Method
ordered
(&self)
src/app/mod.rs:213
↓ 7 callers
Method
sync_viewport_width
Update viewport_width and trigger annotation rebuild if it changed. Called from render functions when inner.width is computed — keeps line_annotations
src/app/navigation.rs:1267
↓ 7 callers
Function
test_diff_file
(path: &str, hunks: Vec<DiffHunk>)
src/model/review.rs:270
↓ 7 callers
Function
time_with
(operation: &'static str, f: F, metadata: M)
src/profile.rs:64
↓ 7 callers
Method
total_lines
(&self)
src/app/navigation.rs:1219
↓ 7 callers
Function
with_reviews_dir_lock
(reviews_dir: &Path, f: impl FnOnce() -> Result<T>)
src/persistence/storage.rs:388
↓ 6 callers
Function
apply_container_full_file_highlight
Re-highlight container-grammar files (Vue, Svelte, etc) using their full content at the requested revisions. `new_rev = None` reads the new side from
src/vcs/mod.rs:124
↓ 6 callers
Function
build_message_span
(message: Option<&Message>, theme: &Theme)
src/ui/status_bar.rs:19
↓ 6 callers
Function
commit
(id: &str, summary: &str, branch: Option<&str>)
src/ui/commit_row.rs:173
↓ 6 callers
Function
delete_word_before
Delete word before cursor, returning the new cursor position. Handles multi-byte UTF-8 characters correctly.
src/text_edit.rs:48
↓ 6 callers
Function
diff_add_style
(theme: &Theme)
src/ui/styles.rs:13
↓ 6 callers
Function
diff_options
(whitespace_mode: DiffWhitespaceMode)
src/vcs/git/diff.rs:249
↓ 6 callers
Function
draw
(app: &mut App)
src/ui/diff_unified.rs:1583
↓ 6 callers
Method
enter_review_comment_mode
(&mut self)
src/app/comments.rs:625
↓ 6 callers
Method
exit_comment_mode
(&mut self)
src/app/comments.rs:638
↓ 6 callers
Function
filtered_indices
Return the indices into `rows` that match `filter`. An empty filter returns every index.
src/forge/selector.rs:456
↓ 6 callers
Method
finish_pr_submit
Apply the create-review result on the main thread. On success: flip each included `Comment` to `Submitted` (or `PushedDraft` for the draft event), sta
src/app/submit.rs:439
↓ 6 callers
Function
generate_export_content
Generate markdown content from the review session. Returns the markdown string or an error if there are no comments.
src/output/markdown.rs:27
↓ 6 callers
Method
get_expanded_line
Look up an expanded context line by sequential index across top + bottom.
src/app/gaps.rs:212
↓ 6 callers
Function
get_working_tree_diff
( repo: &Repository, whitespace_mode: DiffWhitespaceMode, highlighter: &SyntaxHighlighter, )
src/vcs/git/diff.rs:12
↓ 6 callers
Method
get_working_tree_diff
(&self, highlighter: &SyntaxHighlighter)
src/vcs/file.rs:289
↓ 6 callers
Method
get_working_tree_diff
(&self, highlighter: &SyntaxHighlighter)
src/vcs/jj/mod.rs:143
↓ 6 callers
Function
hg_available
Check if hg command is available
src/vcs/hg/mod.rs:495
↓ 6 callers
Function
highlighter
()
src/vcs/file.rs:391
↓ 6 callers
Method
is_locked
True for any state that has already been written to the remote forge.
src/model/comment.rs:67
↓ 6 callers
Function
line_text
(line: &Line<'_>)
src/ui/commit_row.rs:185
↓ 6 callers
Method
list_sessions_for_repo
List persisted sessions for a repo selector — a checkout path or a forge coordinate like `owner/repo`. A checkout path matches its own local sessions
src/review_store.rs:34
↓ 6 callers
Function
make_pr_app
()
src/ui/diff_unified.rs:1507
↓ 6 callers
Function
make_pr_app
()
src/ui/diff_side_by_side.rs:1950
↓ 6 callers
Function
open_pull_request
Open a PR target through a forge backend and prepare review state. `local_checkout` is optional: when provided, `.tuicrignore` rules at the root are
src/forge/pr_open.rs:48
↓ 6 callers
Function
parse_diff
(diff: &Diff, highlighter: &SyntaxHighlighter)
src/vcs/git/diff.rs:271
↓ 6 callers
Function
parse_github_remote_url
(remote_url: &str)
src/forge/github/gh.rs:605
↓ 6 callers
Function
parse_gitlab_remote_url
Parse a GitLab remote URL into a `ForgeRepository`. Handles SCP-like (`git@gitlab.com:owner/repo.git`), HTTPS (`https://gitlab.com/owner/repo.git`),
src/forge/gitlab/glab.rs:841
↓ 6 callers
Method
queue_editor_for_focused_item
Resolves the currently focused UI item into an editor target. The resolved target is queued on `pending_editor_target` so the main event loop can per
src/app/reviewed.rs:67
↓ 6 callers
Function
remove_file
(workdir: &Path, path: &str)
src/vcs/git/cli.rs:1185
↓ 6 callers
Function
repo
(name: &str)
src/persistence/manifest.rs:318
↓ 6 callers
Method
reset_persisted_session_tracking
(&mut self)
src/app/session.rs:24
↓ 6 callers
Function
resolve_session_ref
(store: &ReviewStore, repo: &Path, session: &str)
src/review_cli.rs:338
↓ 6 callers
Function
selected_style
(theme: &Theme)
src/ui/styles.rs:5
← previous
next →
101–200 of 2,753, ranked by callers