MCPcopy Create free account

hub / github.com/agavra/tuicr / functions

Functions2,753 in github.com/agavra/tuicr

↓ 10 callersFunctionparse_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 callersMethodrender_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 callersFunctionrun_hg_command
Run an hg command and return its stdout.
src/vcs/hg/mod.rs:459
↓ 10 callersFunctionrun_jj_command
Run a jj command and return its stdout.
src/vcs/jj/mod.rs:454
↓ 10 callersFunctionsetup_sparse_index_repo
()
src/vcs/git/cli.rs:1205
↓ 9 callersFunctionapp_with
(files: Vec<DiffFile>)
src/app/tests/single_file_view_tests.rs:72
↓ 9 callersFunctionbuffer_text
(buffer: &Buffer)
src/ui/submit_modals.rs:418
↓ 9 callersFunctionbuild_app_with_review_commits
(commits: Vec<CommitInfo>)
src/app/tests/commit_scoped_comment_tests.rs:36
↓ 9 callersMethodbuild_comment_navigator_items
(&self)
src/app/comments.rs:149
↓ 9 callersFunctioncalculate_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 callersMethodcenter_cursor
(&mut self)
src/app/navigation.rs:226
↓ 9 callersMethodclear_comments
(&mut self, scope: ClearScope)
src/model/review.rs:205
↓ 9 callersMethodcursor_up
(&mut self, lines: usize)
src/app/navigation.rs:61
↓ 9 callersFunctionmake_pr_key
(number: u64, head_sha: &str)
src/persistence/storage.rs:856
↓ 9 callersFunctionmake_pr_session
(key: &PrSessionKey)
src/persistence/storage.rs:864
↓ 9 callersMethodmax_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 callersFunctionprepare_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 callersMethodreload_pull_request_with_backend
( &mut self, backend: Box<dyn ForgeBackend>, local_checkout: Option<std::path::PathBuf
src/app/pr.rs:601
↓ 9 callersFunctionresolve_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 callersFunctionresolve_theme_with_config
( cli_theme: Option<String>, cli_appearance: Option<AppearanceArg>, config_theme: Option<&str>,
src/theme/mod.rs:2190
↓ 9 callersFunctionrun_command_output
( program: &str, current_dir: Option<&Path>, args: I, )
src/process.rs:22
↓ 9 callersMethodrun_gh
(&self, args: Vec<String>, host: &str)
src/forge/github/gh.rs:192
↓ 9 callersFunctionscroll_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 callersFunctionsession_path
(session: &ReviewSession)
src/persistence/storage.rs:110
↓ 9 callersMethodtoggle_hunk_reviewed
(&mut self, key: String)
src/model/review.rs:55
↓ 9 callersMethodtoggle_hunk_reviewed
(&mut self)
src/app/reviewed.rs:239
↓ 9 callersMethodupsert
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 callersMethodwrite
(&mut self, bytes: &[u8])
src/hash.rs:21
↓ 9 callersFunctionwrite_file
(workdir: &Path, path: &str, content: &str)
src/vcs/git/cli.rs:1178
↓ 8 callersFunctionadd_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 callersFunctionbody_text
(buffer: &Buffer)
src/ui/diff_unified.rs:1601
↓ 8 callersFunctionbuild_pr_app
(pr: PullRequestDiffSource)
src/ui/status_bar.rs:604
↓ 8 callersFunctionbuild_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 callersMethodcalculate_file_scroll_offset
(&self, file_idx: usize)
src/app/navigation.rs:780
↓ 8 callersFunctiondraw_header
(app: &App)
src/ui/status_bar.rs:637
↓ 8 callersFunctionenhance_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 callersFunctionfile_with_hunks
(hunks: Vec<DiffHunk>)
src/forge/submit.rs:523
↓ 8 callersFunctionjj_available
Check if jj command is available
src/vcs/jj/mod.rs:490
↓ 8 callersMethodlocal_checkout_path
(&self)
src/app/tests/single_file_view_tests.rs:254
↓ 8 callersFunctionmake_pr_app
()
src/ui/submit_modals.rs:342
↓ 8 callersFunctionpr_source
(closed: bool, merged: bool)
src/ui/status_bar.rs:586
↓ 8 callersFunctionrender_commit_row
(spec: &CommitRowSpec<'a>)
src/ui/commit_row.rs:38
↓ 8 callersFunctionrow_text
(buffer: &Buffer, y: u16)
src/ui/status_bar.rs:649
↓ 8 callersMethodrun_glab
(&self, args: Vec<String>, host: &str)
src/forge/gitlab/glab.rs:210
↓ 8 callersMethodset_diff_wrap
(&mut self, enabled: bool)
src/app/navigation.rs:185
↓ 8 callersFunctionslice_context_lines
Slice `[start_line, end_line]` (1-indexed, inclusive) into `DiffLine`s.
src/vcs/mod.rs:74
↓ 8 callersFunctionslug_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 callersFunctiontest_theme
()
src/ui/comment_panel.rs:574
↓ 7 callersFunctionapp_with_root
(root_path: PathBuf, files: Vec<DiffFile>)
src/app/tests/single_file_view_tests.rs:76
↓ 7 callersMethodapply_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 callersFunctionbuild_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 callersFunctioncomment_with_line
(side: LineSide, new: Option<u32>, old: Option<u32>)
src/forge/submit.rs:549
↓ 7 callersFunctiondelete_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 callersMethodeffective_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 callersFunctionentry
(updated_at: DateTime<Utc>, anchor: &str)
src/persistence/manifest.rs:285
↓ 7 callersMethodget_working_tree_diff
(&self, highlighter: &SyntaxHighlighter)
src/vcs/hg/mod.rs:106
↓ 7 callersFunctiongl_project_path
Percent-encode `owner/repo` as `owner%2Frepo` for GitLab project API paths.
src/forge/gitlab/glab.rs:128
↓ 7 callersMethodgo_to_source_line
(&mut self, target_lineno: u32, side: LineSide)
src/app/navigation.rs:258
↓ 7 callersMethodhighlighted_line_for_diff_with_background
( &self, old_highlighted_lines: Option<&[Option<HighlightedSpans>]>, new_highlighted_l
src/syntax/mod.rs:228
↓ 7 callersMethodis_file_reviewed
(&self, path: &PathBuf)
src/model/review.rs:224
↓ 7 callersMethodis_single
Check if this is a single-line range
src/model/comment.rs:40
↓ 7 callersMethodordered
(&self)
src/app/mod.rs:213
↓ 7 callersMethodsync_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 callersFunctiontest_diff_file
(path: &str, hunks: Vec<DiffHunk>)
src/model/review.rs:270
↓ 7 callersFunctiontime_with
(operation: &'static str, f: F, metadata: M)
src/profile.rs:64
↓ 7 callersMethodtotal_lines
(&self)
src/app/navigation.rs:1219
↓ 7 callersFunctionwith_reviews_dir_lock
(reviews_dir: &Path, f: impl FnOnce() -> Result<T>)
src/persistence/storage.rs:388
↓ 6 callersFunctionapply_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 callersFunctionbuild_message_span
(message: Option<&Message>, theme: &Theme)
src/ui/status_bar.rs:19
↓ 6 callersFunctioncommit
(id: &str, summary: &str, branch: Option<&str>)
src/ui/commit_row.rs:173
↓ 6 callersFunctiondelete_word_before
Delete word before cursor, returning the new cursor position. Handles multi-byte UTF-8 characters correctly.
src/text_edit.rs:48
↓ 6 callersFunctiondiff_add_style
(theme: &Theme)
src/ui/styles.rs:13
↓ 6 callersFunctiondiff_options
(whitespace_mode: DiffWhitespaceMode)
src/vcs/git/diff.rs:249
↓ 6 callersFunctiondraw
(app: &mut App)
src/ui/diff_unified.rs:1583
↓ 6 callersMethodenter_review_comment_mode
(&mut self)
src/app/comments.rs:625
↓ 6 callersMethodexit_comment_mode
(&mut self)
src/app/comments.rs:638
↓ 6 callersFunctionfiltered_indices
Return the indices into `rows` that match `filter`. An empty filter returns every index.
src/forge/selector.rs:456
↓ 6 callersMethodfinish_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 callersFunctiongenerate_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 callersMethodget_expanded_line
Look up an expanded context line by sequential index across top + bottom.
src/app/gaps.rs:212
↓ 6 callersFunctionget_working_tree_diff
( repo: &Repository, whitespace_mode: DiffWhitespaceMode, highlighter: &SyntaxHighlighter, )
src/vcs/git/diff.rs:12
↓ 6 callersMethodget_working_tree_diff
(&self, highlighter: &SyntaxHighlighter)
src/vcs/file.rs:289
↓ 6 callersMethodget_working_tree_diff
(&self, highlighter: &SyntaxHighlighter)
src/vcs/jj/mod.rs:143
↓ 6 callersFunctionhg_available
Check if hg command is available
src/vcs/hg/mod.rs:495
↓ 6 callersFunctionhighlighter
()
src/vcs/file.rs:391
↓ 6 callersMethodis_locked
True for any state that has already been written to the remote forge.
src/model/comment.rs:67
↓ 6 callersFunctionline_text
(line: &Line<'_>)
src/ui/commit_row.rs:185
↓ 6 callersMethodlist_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 callersFunctionmake_pr_app
()
src/ui/diff_unified.rs:1507
↓ 6 callersFunctionmake_pr_app
()
src/ui/diff_side_by_side.rs:1950
↓ 6 callersFunctionopen_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 callersFunctionparse_diff
(diff: &Diff, highlighter: &SyntaxHighlighter)
src/vcs/git/diff.rs:271
↓ 6 callersFunctionparse_github_remote_url
(remote_url: &str)
src/forge/github/gh.rs:605
↓ 6 callersFunctionparse_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 callersMethodqueue_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 callersFunctionremove_file
(workdir: &Path, path: &str)
src/vcs/git/cli.rs:1185
↓ 6 callersFunctionrepo
(name: &str)
src/persistence/manifest.rs:318
↓ 6 callersMethodreset_persisted_session_tracking
(&mut self)
src/app/session.rs:24
↓ 6 callersFunctionresolve_session_ref
(store: &ReviewStore, repo: &Path, session: &str)
src/review_cli.rs:338
↓ 6 callersFunctionselected_style
(theme: &Theme)
src/ui/styles.rs:5
← previousnext →101–200 of 2,753, ranked by callers