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
↓ 4 callers
Method
parse
Parse a user-supplied repo selector: `owner/repo`, `host/owner/repo`, `forge:host/owner/repo`, or an HTTPS / SSH / SCP URL. The last two path segments
src/slug.rs:370
↓ 4 callers
Method
parse
Parse Git revision syntax accepted by tuicr's `-r` option. This accepts `REV`, `A..B`, `A..`, `..B`, and `A...B`. Open-ended two-dot ranges are norma
src/vcs/git/mod.rs:53
↓ 4 callers
Function
push_comment_bar
Per-call-site helper: record a bar anchor if the comment has a line range. No-op for file-level / review-level comments which don't anchor to a covere
src/ui/diff_view.rs:635
↓ 4 callers
Method
read_only_reason
(&self)
src/app/mod.rs:642
↓ 4 callers
Function
read_path_from_tree
(repo: &Repository, tree: &git2::Tree, path: &Path)
src/vcs/git/diff.rs:255
↓ 4 callers
Method
reload_inline_selection_for_source
Reload the inline commit subrange diff via the backend appropriate for the current review. PR reviews route through the forge `compare` API (persistin
src/app/commits.rs:856
↓ 4 callers
Function
render
(frame: &mut Frame, app: &mut App)
src/ui/app_layout.rs:19
↓ 4 callers
Function
render_unified_diff
(frame: &mut Frame, app: &mut App, area: Rect)
src/ui/diff_unified.rs:27
↓ 4 callers
Function
repo
()
src/forge/pr_open.rs:181
↓ 4 callers
Method
run_api
(&self, repo: &ForgeRepository, endpoint: String)
src/forge/gitlab/glab.rs:239
↓ 4 callers
Method
save_comment
(&mut self)
src/app/comments.rs:650
↓ 4 callers
Function
sbs_left_gutter
Side-by-side leading width before Old content: indicator(1) + lineno(w) + space(1) + prefix(1).
src/app/mod.rs:172
↓ 4 callers
Method
scroll_left
(&mut self, cols: usize)
src/app/mod.rs:1279
↓ 4 callers
Method
scroll_right
(&mut self, cols: usize)
src/app/mod.rs:1283
↓ 4 callers
Method
selected_commit_set
The set of commit SHAs currently selected in the inline commit selector. `None` when there is no selector / no selection (working tree, staged, etc.)
src/app/commits.rs:400
↓ 4 callers
Method
session_slug
Slug for the currently active session, derived from the session's embedded fields. Returns `None` if derivation fails (e.g., a local session pointing
src/app/session.rs:8
↓ 4 callers
Method
set_message_inner
( &mut self, msg: impl Into<String>, message_type: MessageType, ttl: Option<Du
src/app/modes.rs:22
↓ 4 callers
Function
setup_standard_repo
(root: &Path)
src/vcs/git/mod.rs:515
↓ 4 callers
Method
sha
Return the SHA matching `side`.
src/forge/traits.rs:303
↓ 4 callers
Method
should_render_gap_before_hunk
(&self, file_idx: usize, hunk_idx: usize)
src/app/reviewed.rs:232
↓ 4 callers
Method
start_submit_action_picker
Open the bare-`:submit` action picker. The user picks Comment/Approve/Request changes/Draft (or cancels); the picked event then runs through preflight
src/app/submit.rs:147
↓ 4 callers
Method
submit_picker_confirm
Confirm the action picker selection: dispatch into preflight with the chosen event and `skip_confirm = true`.
src/app/submit.rs:174
↓ 4 callers
Function
thread_display_lines
Count the number of rendered lines a thread occupies in the diff view. Used by `App::rebuild_annotations` to push the matching number of annotations s
src/forge/remote_comments.rs:209
↓ 4 callers
Method
toggle_scope_and_start_reload
Toggle between all open PRs and PRs awaiting the current user's review, then transition to `Loading` so the caller can refetch page 1.
src/forge/selector.rs:167
↓ 4 callers
Function
truncate_or_pad_spans
Truncate or pad highlighted spans to a specific display width Uses unicode width to properly handle wide characters (CJK, emoji, etc.) Returns a vecto
src/ui/text_utils.rs:32
↓ 4 callers
Function
truncate_str
(s: &str, max_len: usize)
src/ui/text_utils.rs:4
↓ 3 callers
Function
active_session_paths_in_dir
(reviews_dir: &Path)
src/persistence/storage.rs:234
↓ 3 callers
Method
add_comment
Add a local draft comment to a persisted session and save it.
src/review_store.rs:73
↓ 3 callers
Function
add_comments_to_line
( line_num: u32, line_comments: &std::collections::HashMap<u32, Vec<crate::model::Comment>>, side:
src/ui/diff_side_by_side.rs:1669
↓ 3 callers
Function
add_remote_threads_to_line
Add comments for a specific line. Returns (new_line_idx, optional cursor info for inline comment input) Render remote review threads anchored at this
src/ui/diff_side_by_side.rs:1615
↓ 3 callers
Function
annotation_file_idx
(annotation: &AnnotatedLine)
src/app/mod.rs:430
↓ 3 callers
Method
apply_canonical
Promote the in-flight `Loading` tab to a (possibly different) canonical repository. Called by `poll_pr_load_events` right before `apply_initial_load`
src/forge/selector.rs:184
↓ 3 callers
Method
apply_load_more
Apply the result of a load-more fetch. Appends rows.
src/forge/selector.rs:222
↓ 3 callers
Method
begin_pr_filter
(&mut self)
src/app/pr.rs:1149
↓ 3 callers
Function
blend
(base: Color, accent: Color, accent_percent: u8)
src/theme/mod.rs:1249
↓ 3 callers
Method
build
( vcs: Box<dyn VcsBackend>, vcs_info: VcsInfo, theme: Theme, comment_type_conf
src/app/init.rs:381
↓ 3 callers
Function
build_add_request_parts
(options: AddCommentOptions)
src/review_cli.rs:141
↓ 3 callers
Function
build_app_with_commits
(commits: Vec<CommitInfo>)
src/app/tests/target_selector_tests.rs:223
↓ 3 callers
Method
build_graphql_args
( &self, pr: &PullRequestDetails, query: &str, cursor: Option<&str>, )
src/forge/github/gh.rs:527
↓ 3 callers
Function
byte_to_index2
Convert a UTF-8 byte offset into an edtui `(row, col)` index, where `col` is a character index within the row.
src/comment_vim.rs:92
↓ 3 callers
Method
cancel_pr_open
Abort an in-flight PR open. Drops the receiver so the eventual thread send becomes a no-op; clears the spinner state.
src/app/pr.rs:1058
↓ 3 callers
Method
cancel_submit
(&mut self)
src/app/submit.rs:192
↓ 3 callers
Method
canonicalize_lazy
(self, base: &Path)
src/vcs/file.rs:610
↓ 3 callers
Method
capture_pr_cursor_anchor
Reload the PR's head from the forge. If the head SHA changed, this switches sessions so old-head draft comments stay with the old session and the new
src/app/pr.rs:106
↓ 3 callers
Function
centered_rect
(percent_x: u16, percent_y: u16, area: Rect)
src/ui/submit_modals.rs:277
↓ 3 callers
Function
check_graphql_errors
Inspect a `glab api graphql` response for logical errors. GraphQL returns HTTP 200 even when a mutation fails, so a successful exit status is not eno
src/forge/gitlab/glab.rs:1161
↓ 3 callers
Method
collapse_all
(&mut self)
src/app/tests/tree_tests.rs:45
↓ 3 callers
Method
comment_count
(&self)
src/model/review.rs:43
↓ 3 callers
Function
comment_file_level
()
src/forge/submit.rs:572
↓ 3 callers
Method
comment_type_label
Human-facing label for a comment type, e.g. `SUGGESTION`. Returns an empty string for [`CommentType::None`] so callers render no badge.
src/app/init.rs:676
↓ 3 callers
Function
comment_type_presentation
( app: &App, comment_type: &crate::model::CommentType, )
src/ui/diff_view.rs:209
↓ 3 callers
Function
comment_type_style
(_theme: &Theme, color: Color)
src/ui/styles.rs:105
↓ 3 callers
Method
comment_vim_command_push
Append a typed character to the `:` command-line.
src/app/comment_vim.rs:85
↓ 3 callers
Method
comment_vim_mode_label
Header indicator for the comment box as `(text, warn)`, or `None` when vim is off. `warn` is true for the cancel-confirm hint so the renderer can pain
src/app/comment_vim.rs:23
↓ 3 callers
Method
commit_select_up
(&mut self)
src/app/commits.rs:239
↓ 3 callers
Function
config_dir_from_parts
( xdg_config_home: Option<PathBuf>, home: Option<PathBuf>, _appdata: Option<PathBuf>, )
src/config/mod.rs:151
↓ 3 callers
Function
content_spans_for_diff_line
( theme: &Theme, dl: &DiffLine, origin: LineOrigin, )
src/ui/diff_side_by_side.rs:36
↓ 3 callers
Method
default_comment_type
(&self)
src/app/init.rs:633
↓ 3 callers
Function
details
()
src/forge/pr_open.rs:185
↓ 3 callers
Method
diff_annotation_at_screen_row
(&self, screen_row: u16)
src/app/navigation.rs:362
↓ 3 callers
Method
diff_args
(&self, args: &'a [&'a str])
src/vcs/jj/mod.rs:125
↓ 3 callers
Method
diff_args
(&self, args: &'a [&'a str])
src/vcs/hg/mod.rs:88
↓ 3 callers
Method
ensure_valid_tree_selection
(&mut self)
src/app/tree.rs:219
↓ 3 callers
Method
enter
Enters TUI terminal mode and returns the owning session.
src/terminal_state.rs:42
↓ 3 callers
Method
enter_comment_mode
(&mut self, file_level: bool, line: Option<(u32, LineSide)>)
src/app/comments.rs:612
↓ 3 callers
Function
entry_from_session
Build a manifest entry from a loaded session and the session file's path relative to the reviews directory. The caller is responsible for determining
src/persistence/manifest.rs:173
↓ 3 callers
Function
export_to_clipboard
( session: &ReviewSession, diff_source: &DiffSource, comment_types: &[CommentTypeDefinition],
src/output/markdown.rs:53
↓ 3 callers
Method
fetch_context_lines
( &self, old_path: Option<&PathBuf>, new_path: Option<&PathBuf>, file_status:
src/forge/context.rs:54
↓ 3 callers
Function
fetch_pr_data
Network-only half of the PR open path: fetch PR metadata, the raw patch text, and the commit list. Safe to run on a background thread because it does
src/forge/pr_open.rs:72
↓ 3 callers
Function
file_header_style
(theme: &Theme)
src/ui/styles.rs:35
↓ 3 callers
Method
file_idx_to_tree_idx
(&self, target_file_idx: usize)
src/app/navigation.rs:660
↓ 3 callers
Method
file_render_height
(&self, file_idx: usize, file: &DiffFile)
src/app/navigation.rs:828
↓ 3 callers
Function
filter_threads
Filter a list of threads by the active visibility setting. Threads that should not render are dropped; remaining ones keep their flags so the renderer
src/forge/remote_comments.rs:190
↓ 3 callers
Method
find_comment_at_cursor
(&self)
src/app/comments.rs:305
↓ 3 callers
Method
finish_pr_reload
( &mut self, details: crate::forge::traits::PullRequestDetails, patch: String,
src/app/pr.rs:521
↓ 3 callers
Method
flush
(self)
scripts/demo/drive_demo.py:52
↓ 3 callers
Method
get_change_status
(&self)
src/vcs/git/cli.rs:228
↓ 3 callers
Method
get_line_at_cursor
Returns the source line number and side at the current cursor position, if on a diff line
src/app/navigation.rs:1275
↓ 3 callers
Method
get_pr
Find the PR entry for `slug` (PR entries are singletons per slug).
src/persistence/manifest.rs:87
↓ 3 callers
Function
get_recent_commits
( repo: &Repository, offset: usize, limit: usize, )
src/vcs/git/repository.rs:66
↓ 3 callers
Method
get_recent_commits
(&self, offset: usize, limit: usize)
src/app/tests/target_selector_tests.rs:59
↓ 3 callers
Method
get_recent_commits
(&self, offset: usize, limit: usize)
src/vcs/jj/mod.rs:251
↓ 3 callers
Method
get_recent_commits
(&self, offset: usize, limit: usize)
src/vcs/hg/mod.rs:194
↓ 3 callers
Method
get_review
Load a persisted review session.
src/review_store.rs:68
↓ 3 callers
Method
get_selected_tree_item
(&self)
src/app/tree.rs:307
↓ 3 callers
Method
get_syntax
Resolve syntax from a file path using this lookup order: extension -> lowercase extension (when different) -> fallback extension -> filename token ->
src/syntax/mod.rs:326
↓ 3 callers
Method
get_working_tree_diff
(&self, _highlighter: &SyntaxHighlighter)
src/app/tests/expand_gap_tests.rs:16
↓ 3 callers
Function
handle_diff_action
Handle actions when diff panel is focused
src/handler.rs:1332
↓ 3 callers
Function
handle_export
Export review: either to clipboard or set pending stdout output based on app.output_to_stdout. When output_to_stdout is true, stores the content and s
src/handler.rs:339
↓ 3 callers
Function
highlight_n_vue_files
(n: usize)
src/vcs/mod.rs:471
↓ 3 callers
Function
init_git_repo
(dir: &Path)
src/vcs/pristine.rs:103
↓ 3 callers
Method
insert_commit_message_if_single
If we are viewing a single commit, insert a "Commit Message" DiffFile at index 0. The synthetic path embeds the commit's short id (`Commit Message (<
src/app/diff_load.rs:34
↓ 3 callers
Method
into_review_thread
(self)
src/forge/gitlab/models.rs:197
↓ 3 callers
Method
is_commit_selected
Check if a commit at the given index is selected
src/app/commits.rs:386
↓ 3 callers
Function
is_probably_binary
(path: &Path)
src/vcs/file.rs:372
↓ 3 callers
Function
key
(c: char)
src/comment_vim.rs:114
↓ 3 callers
Function
key
()
src/forge/context.rs:232
↓ 3 callers
Function
key_shift
(c: char)
src/input/keybindings.rs:445
↓ 3 callers
Function
line_comment
(content: &str, commit_id: Option<&str>)
src/app/tests/commit_scoped_comment_tests.rs:82
↓ 3 callers
Method
list_review_summaries
(&self, pr: &PullRequestDetails)
src/forge/github/gh.rs:371
← previous
next →
301–400 of 2,753, ranked by callers