Repository navigation
What's Changed
Added
terminaltheme — A new bundled preset draws every color from the terminal's own ANSI palette, so glab-tui follows the terminal or OS theme. Theme files and[theme]overrides now also accept ANSI color names ("light-blue") and palette indexes ("8") besides hex values (#598) — thanks @Luckystrike561, @rcieri.theme_preset = "auto"— Pickstheme_dark(defaultdefault) ortheme_light(defaultcatppuccin-latte) from the terminal's background, read fromCOLORFGBGor asked of the terminal at startup.appearance = "dark"or"light"forces one (#598) — thanks @Luckystrike561, @rcieri.- Theme picker live preview — Moving through the Configure View's theme picker repaints the screen with the highlighted preset.
Enterkeeps it,Escrestores the previous one. The picker now opens on the current preset (#598) — thanks @Luckystrike561, @rcieri. - Remappable navigation, diff view, selector and dialog keys — A binding can now be a list of keys (
next_row = ["j", "Down"]), and""or[]unbinds an action. New tables:[keybindings.list](next_row,previous_row,first_row,last_row,open,back,search,check_updates, the keys every list view handles after the tab's own),[keybindings.diff](every diff view key),[keybindings.selector](next,previous,toggle,confirm,filter,close) and[keybindings.dialog](the confirmation dialog's navigation,submitandcancel).global.leave_scopereturns from a project narrowed withGandjobs.clear_trace_searchclears the job trace search.Ctrl+Cisglobal.force_quit. The help modal and the custom-command shadow report are generated from the same registry, so they list exactly the keys that act, with the configured keys, and name the shadowing action by its config key (e.g.keybindings.list.next_row). A[keybindings]entry that names no table or action, whose value is not a key or a list of keys, or that names a key glab-tui cannot read ("esc","Ctrl+Shift+N") is reported in the Terminal tab and binds nothing (the action keeps its defaults), instead of resetting the whole config to its defaults (#594) — thanks @Luckystrike561. - Multi-key sequence support across any keybinding — Any keybinding in
config.tomlcan now be a sequence of plain characters typed in order (e.g.gg,gcc). While keys typed so far match a sequence prefix, glab-tui buffers the input and waits up tokeybinding_timeout_ms(default 1000 ms) before dropping unrecognized keys or firing a lone waiting prefix. Resolved sequences dispatch within the same event pass without extra redraw latency (#622, #692) — thanks @Luckystrike561. - Width-aware diff layout and preview placement — The diff view now picks its layout from the width of the diff pane: side-by-side when it has at least 121 columns inside its border (two 60-column sides and the divider), unified below, so it changes when the terminal is resized or the file tree is shown or hidden. A line selection holds the layout until it ends, and going back to unified returns the cursor to the line it left.
1pins side-by-side and2unified for the rest of the session,dtoggles and pins the other one, and0goes back to picking by width. The diff pane title names the layout and whether it isautoorpinned. Diff search (/) now lands on and highlights the matching row in side-by-side. When the list would keep fewer than 38 columns beside the preview, the preview first narrows to 30 columns, then moves below the list (under 90 columns with the default sidebar) instead of disappearing, then gives up the terminal log under them, and is only hidden when the terminal is too short to stack both. Both decisions go through one ordered compaction algorithm (ui::compaction::compact) meant to be shared with the overlays (#597) — thanks @Luckystrike561. - GitHub conversation comments and review summaries in review threads — On a GitHub PR, the review threads overlay (
Tin the diff view) andglab-tui review threadsnow list the PR's conversation comments and the body of every submitted review asgeneralthreads, ordered by creation time with the inline threads. They are read withgh pr view --json comments,reviewsbeside the existing calls. A review summary shows its verdict (APPROVED,CHANGES REQUESTED,COMMENTED,DISMISSED) as a badge in the overlay and asreview_statein the JSON, and a review approved without a body is left out. Overlay rows now also show each thread's age. Neither kind can be replied to or resolved: the overlay offers no reply on them (a conversation comment can still be edited or deleted), andreview reply/review resolvegiven one of their ids exit non-zero naming the limitation (#696) — thanks @Luckystrike561, @rcieri. - Submit-review overlay —
rin the diff view (and Submit on the dialog shown when leaving it with drafts) opens one dialog instead of a verdict picker followed by a summary prompt. It holds the verdict as radio buttons (Comment, Approve, Request changes, Keep as draft), the summary (Ctrl+Eopens$EDITOR), how many draft comments the review posts, and Submit / Cancel buttons.j/kpick the verdict, andjorDownpast the last one (orTab) moves into the summary to type it. The footer names the keys of the focused part. The verdict now starts on Comment: the old picker started on Approve, sorEnterEnterapproved. While the review is posted the dialog shows that it is submitting and ignores keys,Ctrl+Cincluded. A failure is shown inside the dialog and keeps the draft comments and the summary: before, the drafts were dropped before the request ran and a failure only raised a toast. On GitLab, a failure after the comments are published (the approval or the summary note) leaves them posted, so submitting the kept drafts again posts them twice. An empty Comment or Request changes review is refused in the dialog before anything is sent (#599) — thanks @Luckystrike561. - Confirmation dialogs on a shared form — Every confirmation dialog (merge, close, delete, rebase, cancel, roll back, submit review, re-run) is now drawn and driven by one form: a title, its options as radio and toggle groups, item lists and notes, a button row and a key footer naming the keys of the focused group. The merge strategy is a real radio group on one row instead of three options prefixed with
Strategy:, a bulk merge lists the MRs/PRs it merges, a stack merge lists the PRs it takes along, and a bulk branch delete lists its branches one per row instead of joined into one paragraph.Tab/Shift+Tabmove between groups,j/kwithin one,h/lacross radios and buttons,SpaceorEnterselects or toggles the focused option, andEnteron a button runs it. Destructive actions open in a danger tone: red border, focus andEnteron Cancel. The title, buttons and footer always stay on screen: on a short terminal the body drops its blank rows and cuts long lists to the entries that fit plus anN morerow, then scrolls to keep the focused option in view. The screen behind an open dialog is dimmed instead of left as is (#592) — thanks @Luckystrike561, @rcieri. - New theme tokens —
accent,key_hint,danger_borderandbackdrop_dim, set in every bundled theme. Themes that leave them out fall back topurple,yellow,redandtext_muted(#592) — thanks @Luckystrike561, @rcieri. - More highlighted languages and word-level diff marks — The diff view and Markdown code fences now highlight TypeScript, TSX, TOML, Dockerfile, Kotlin, Swift, Nix, Zig, Terraform/HCL, Svelte, Vue, F# and the rest of bat's syntax set, through the
two-facecrate (fancy-regex build, no C dependency), which replaces syntect's bundled syntaxes. Fences taggedtypescript,kotlin,swift,dockerfileortomlare no longer plain text. Each removed line is paired with the added line that replaces it, and the words that changed get a stronger background on both sides, keeping their syntax colors. Pairs that share less than half their words, runs of removed and added lines of different lengths, and lines over 4 KiB keep whole-line colouring only. Two new theme tokens,diff_addition_emph_bganddiff_deletion_emph_bg, set those backgrounds in every bundled theme, and a custom theme without them mixes 30% of the row foreground into the row background. A[theme]override of a diff row colour mixes them again from the new row colours unless it sets them too (#596) — thanks @Luckystrike561.
Fixed
- Diff search matches readable on every theme — A diff row matching the search is now drawn entirely in
diff_search_fg(blackinterminal,yellowelsewhere) ondiff_search_bg. Its syntax and addition/deletion colors were picked for the row's own background and could be unreadable on the search one, light text on ANSI yellow in theterminalpreset. The matched characters stay bold and underlined (#598) — thanks @Luckystrike561, @rcieri. - Destructive actions always ask first — Cancelling a single job on the Jobs tab cancelled it at once, while a selection of jobs asked for confirmation. Every action the registry marks destructive (close, reopen, delete, revoke, cancel, stop, roll back, mark all read) now opens its confirmation dialog whatever key it is bound to (#594) — thanks @Luckystrike561.
qin the diff view closes the diff — It quit glab-tui, as the global quit key was checked before the diff view. It now cancels the selection or closes the diff (asking first with pending drafts), as documented (#594) — thanks @Luckystrike561.qon a confirmation dialog no longer quits — The quit key was checked before an open confirmation dialog (close, delete, cancel, merge, re-run, ...) saw it, soqquit glab-tui instead of leaving the dialog open (#594) — thanks @Luckystrike561.- Leaving a narrowed project reloads its group —
Esc(leave_scope) in a project narrowed from its group withGswitched the scope back but kept showing the project's rows until the next refresh, because the scope was compared after it had already been swapped. It now restores the group's cached rows and rebuilds its client, as entering the project does (#594) — thanks @Luckystrike561. - Failed GitLab reviews no longer leave draft notes behind — When a draft note or
bulk_publishfailed, the draft notes the attempt had already created stayed pending on the MR, and the nextbulk_publish(a retry or any later review) published them a second time. They are now deleted again, from the submit-review overlay and fromglab-tui review submitalike, and the error says how many could not be deleted (#599) — thanks @Luckystrike561. - Theme picker keeps color overrides — Picking a theme in the Configure View now applies the per-color
[theme]overrides fromconfig.tomlon top of the preset, as a restart does, instead of dropping them until the next launch. A theme change or repo switch no longer re-reads the config file to resolve the theme and icons (#589) — thanks @Luckystrike561. - No refetch after read-only commands — Opening an issue, MR/PR, pipeline, job, runner, release, milestone, branch, environment or todo in the browser, or downloading a job artifact, no longer refetches the active tab and the open diff. Only commands that change something on the forge do (#595) — thanks @Luckystrike561, @rcieri.
- Idle preview prefetch — The jobs of the highlighted pipeline or MR and the issues of the highlighted milestone are looked up when the highlight, the list or the cache changes, instead of on every tick, so an idle Pipelines, MRs or Milestones tab no longer filters its list four times a second (#595) — thanks @Luckystrike561, @rcieri.
- Diff comment actions in group scope — Posting, replying to, resolving, editing and deleting a comment in an MR/PR diff now act on the diff's own project instead of the first listed MR with the same number or the group path (#595) — thanks @Luckystrike561, @rcieri.
- GitHub approval state without required reviews — On a GitHub repository whose branch requires no reviews,
reviewDecisionis null, so the Approval and Workflow columns never showed a PR as approved or returned with changes requested. They now follow the PR's latest reviews: approved when someone approved and nobody requested changes, changes requested when any latest review did (#761) — thanks @Luckystrike561, @rcieri. - GitLab environments last deployment — GitLab environment listings omit
last_deployment.list_environmentsnow fetches the project's newest deployments in a single call and correlates each environment to its latest deployment across all statuses. The Deployment Status column is hidden on GitHub where environments lack this status (#777) — thanks @seflue. - GitHub deployment status — GitHub's REST deployment endpoint omits status, leaving the Deployments Status column and inspector field empty. An eager GraphQL query now retrieves
latestStatusfor each deployment (matched bydatabaseId), rendering status badges including new error and inactive badges (#775) — thanks @seflue. - GitLab pipeline duration and actor — GitLab's basic pipeline list (
GET /projects/:id/pipelines) lacks duration and trigger user metadata, displaying duration as "-" and actor as empty. Both are now batch-fetched via aliased GraphQLproject.pipelines(ids:)queries (up to 100 pipelines per page) (#774) — thanks @seflue. - Nullable GitHub deployment description — Deserialization of GitHub deployment responses now tolerates
nullin thedescriptionfield instead of failing the entire deployment list and blocking environment management (#765) — thanks @seflue. - GitLab tag deployment parsing — GitLab's Deployment entity does not include a top-level
tagfield. Deployments now read tag status fromdeployable.tag, fixing JSON deserialization errors and accurately reflecting tag-based deployments in the inspector (#764) — thanks @seflue. - GitLab group-mode pipelines — Navigating to the Pipelines tab in a GitLab group scope no longer requests the unsupported
GET /groups/:id/pipelinesroute (which returned 404). It now displays a clear unsupported placeholder rather than an empty table and error toast, while preserving GitHub organization pipeline listings (#758) — thanks @seflue. - App defaults isolated from user configs —
App::default()now builds strictly fromConfig::default()without reading ambient global or repository-localconfig.tomlfiles, ensuring clean unit test execution regardless of developer configuration (#757) — thanks @seflue. - Job trace log search scroll — Searching inside a job trace when line wrapping is enabled now scrolls to the wrapped row index via
job_trace_scroll_to_linerather than the raw line index, matchingjump_to_failurebehavior (#752) — thanks @seflue. - Reset follow mode on job trace close — Closing or replacing a job trace (
Esc, tab refresh without the active job, or opening a pipeline) now clearsjob_trace_followalongside the trace buffer so subsequent job traces do not inadvertently launch with follow mode enabled (#754) — thanks @seflue. - Browser launch commands for jobs and milestones — Fixed Jobs tab browser launch by opening
Job::web_urldirectly viagit web--browserather than callinggh run view <job-id> --web(which treated the job ID as a run ID and failed with 404). Fixed GitLab milestone state transitions to callglab milestone edit <id> --state close|activateinstead of non-existentglab milestone close/reopensubcommands, and opened group milestones using their reportedweb_url(#705, #706, #730) — thanks @seflue. - Prefix-aware GitLab assignee and reviewer updates — Updating assignees or reviewers on GitLab now sends
--assignee=+user/=!userand--reviewer=+user/=!userprefixes to selectively add or remove users rather than replacing or clearing the entire list (#740, #751) — thanks @seflue. - Clean GitLab section markers from job logs — Strip GitLab Runner
section_start:andsection_end:control markers and trailing\r\e[0Ksequences from job trace lines so raw runner formatting markers are hidden in the Jobs pane (#747, #755) — thanks @seflue. - Disable trace follow mode on GitHub — Because GitHub Action logs are only available for completed jobs that never stream or append output, follow mode (
f) is disabled and omitted from the help overlay when connected to GitHub repositories (#744, #753) — thanks @seflue. - Pipelines preview isolation from Jobs tab — Background job previews for highlighted pipelines on the Pipelines tab now update
pipeline_jobsonly, preventing them from overwriting the Jobs tab's active job list or causing unwanted layout zoom (#738) — thanks @seflue. - Child pipeline cache invalidation — Refreshes or re-entries into child pipelines now invalidate cached jobs for child pipelines whose statuses changed, ensuring inspector metadata and stage dots accurately reflect updated statuses (#703, #736) — thanks @seflue.
- Preserve opened pipeline on Jobs tab across refreshes — Refreshing the Jobs tab now re-fetches the currently opened pipeline instead of reverting to the checked-out branch's latest pipeline. The Jobs tab title also displays a breadcrumb trail (
#parent › #child) for opened child pipelines (#721) — thanks @seflue. - Prioritized notice queue — Replaced the single
error_messageslot with a dedicatedNoticeQueue(Notice/NoticeLevel/RequestTag), routing errors and offline cache notices directly to their initiating modal or toast and preventing rapid info notices from displacing active error toasts (#590) — thanks @Luckystrike561, @rcieri. - Key sequence timeout and cancellation guards — Allowed
Ctrl+Cto immediately force-quit while a multi-key sequence prefix is waiting; rejected non-existentF0keys and mis-cased names; resolvedReturnand lowercase function keys as single keys rather than pending sequences (#622, #692) — thanks @Luckystrike561.
Changed
- Remapping a key replaces it — Every key glab-tui handles in a list view, the diff view, a selector or a confirmation dialog is now an action in one registry (
src/keymap.rs), and the keys a[keybindings.<table>]entry sets replace the action's defaults. Before, many actions also kept a hard-coded key next to their configurable one, so remappingpipelines.retryaway fromradded a key instead of moving it. Those keys are now ordinary defaults of their action:F1(help),?andqin list views (help/quit),Ctrl+xin the edit menu (submit_edit),F5/Ctrl+r(refresh),Ctrl+s(switch_repo),,(configure),l/→andh/←(next_tab/prev_tab),J/K(scroll_down/scroll_up),Pon the Terminal tab (inspect_command),Mon Issues,A/R/D/P/Ion MRs/PRs,Space/r/d/Won Pipelines andSon Jobs. A config that sets one of these actions to a single key (e.g.help = "?") loses the other default: list every key you want (help = ["?", "F1"]). Built-in plain-character keys now match only with their own modifiers, soCtrl+qorAlt+rno longer quit or retry and are free for custom bindings. Named keys (Enter, Esc, arrows, F-keys) still match whatever the modifiers, andCtrl+/Alt+combos also match with extra ones. In the diff view, the previous search match moves fromCtrl+Shift+N(which the binding grammar cannot express) toCtrl+p.Ctrl+nalso matches with Shift held, so the oldCtrl+Shift+Nnow jumps to the next match (#594) — thanks @Luckystrike561. - Confirmation dialog keys —
yno longer confirms a dialog,Enteron its Submit button does. In a dialog with options,Tab/Shift+Tabmove between its groups (the strategy radio, the toggles) and stop once on the button row, on Cancel, whereh/lmove between the buttons. They wrap around instead of stopping on each option and button and halting at Cancel.j/Downpast the last option still lands on Cancel, somkjEnterstill cancels, butj/kno longer wrap between the buttons and the options (#592) — thanks @Luckystrike561, @rcieri. - Diff layout keys take
1,2and0— The diff view now handles1,2and0by default (see the width-aware diff layout below), so[[custom_keybindings.diff]]entries bound to them no longer run and are reported as never running. To keep such an entry, move the layout key it collides with under the new[keybindings.diff]table (layout_side_by_side,layout_unified,layout_auto) (#597) — thanks @Luckystrike561. - Update and Effect architecture refactor — Refactored the core application runtime into a pure synchronous state transition function
update(app, event) -> Vec<Effect>and a dedicated asynchronous effect executor (run_effects), isolating tasks, background threads, and foreground terminal suspensions from state updates (#595) — thanks @Luckystrike561, @rcieri. - Per-frame
RenderCtx— Eliminated globalTHEMEandICONSRwLocksingletons in favor ofApp-owned theme and icon sets, passing styling context via a lightweightRenderCtxparameter to all render functions and preserving color overrides during live theme switching (#589, #694) — thanks @Luckystrike561. - Unified browser opener and milestone models — Extracted duplicated
git web--browseexecution into a sharedbackend::browser::open_urlhelper, and refactored backend milestone calls to pass wholeMilestonedomain models instead of rawiids (#729) — thanks @seflue. - E2E test suite hardening and mock verification — Enforced strict CLI mock validation that fails tests when unrecognized or unhandled CLI calls are made, cross-checked mocked calls against
cli-reference.md, replaced brittle fixed sleeps with event-driven emulator state assertions (wait_for_screen_contains), and pinned spawned test subprocesses toCARGO_MANIFEST_DIR(#712, #720, #734, #768, #771) — thanks @seflue. - Developer tooling and release process — Integrated
just checkacross CI workflows and developer guidelines, added test-first requirements to bugfix PR templates, and isolatedAGENTS.mdfrom automated release preparation scripts (#759, #760) — thanks @seflue.
Dependencies
- Bumped
tomlto 1.2.0 (#718),pulldown-cmarkto 0.13.6 (#717), addedtwo-face0.5 andsimilar3.2, and updated CI actionstaiki-e/install-actionto 2.90.2 (#695, #716),docker/login-actionto 4.8.0 (#714), andsoftprops/action-gh-releaseto 3.0.4 (#715) — thanks @dependabot.
Contributors
Full Changelog: v0.9.4...v0.9.5