Repository navigation
Releases
v0.73.0
Fixed
- Moving through a list no longer does word highlighting work for every line
of the preview that opens in the main panel. Each time the selection moved,
ziggity copied every line of the new preview to look for changed words, even
in a branch log, which has none. Now only removed and added lines are
examined. On a large repository, scrolling the branch list takes less than
half the CPU it did, and a debug build, which pays heavily for each of those
copies, no longer falls seconds behind the keyboard there.
Full Changelog: v0.72.0...v0.73.0
v0.72.0
Changed
-
Deleting a local branch (
don the Local tab) is now a single action that
always asks first. The menu that made you choose between "Delete branch" and
"Force delete branch" is gone, and ziggity checks the branch itself:- If all its commits are also on the current branch, on its upstream, or on
main/master, no work is lost and it asks "Delete branch x?". - Otherwise it asks "x is not fully merged. Delete it anyway?", under a
"Force delete branch" title. - A range selection asks once for the whole range.
Two settings turn the questions off.
skip_confirm.delete_fully_merged_branch = trueskips only the first, so
the one that protects unmerged commits stays.
skip_confirm.delete_branch = trueskips both.Before, the plain delete failed with git's error on every branch git calls
unmerged, which includes every squash merged branch and every merged pull
request whose remote branch was deleted. The force delete removed any branch
with no question at all. - If all its commits are also on the current branch, on its upstream, or on
-
A local branch that another worktree has checked out can now be deleted
from the Branches panel.doffers to remove that worktree, or to detach it
and keep its files, and then asks and deletes the branch. Before, both
delete items failed with git's error. These branches are now marked
(worktree)in the list. -
Removing a worktree that has modified or untracked files, or submodules, now
asks whether to remove it anyway instead of failing with git's error. This
applies on the Worktrees tab too. Set
skip_confirm.force_remove_worktree = trueto skip the question.
Fixed
- A deleted branch can be found again: the status line and the command log
(@) now show the commit it pointed at ("Deleted branch x (was abc1234)").
The command log also shows the command that really ran. A forced delete used
to be listed asgit branch -d, without the branch name. wrap_diff = truein the config file now takes effect, so the diff panels
can start with long lines wrapped. The setting was documented but never read,
which leftctrl+won every launch as the only way to turn wrapping on. Two
more documented settings had the same problem and now work too:
highlight_word_diff = falseandswitch_tabs_with_panel_keys = false. All
three are now listed indocs/configuration.md. When you switch to a
repository whose config sets a differentwrap_diff, the diff panels follow
it; otherwise actrl+wchoice carries over.
Full Changelog: v0.71.0...v0.72.0
v0.71.0
Changed
- The per repo config file moved from
<repo>/.ziggity.inito
<repo>/.git/ziggity.ini. If you have one, move it:
mv .ziggity.ini .git/ziggity.ini. The old file is no longer read, and
ziggity reminds you once at startup while it is still there. A relative
ai.commit.instructionsorai.pr.instructionspath in the file now
resolves next to its new location, so./x.mdbecomes.git/x.md. All
worktrees of a repository share the one file. - An AI instructions file (
ai.commit.instructions,ai.pr.instructions) can
now be up to 64 KB, up from 16 KB.
Fixed
- Selecting text with the mouse in a scrolling dialog no longer loses the
selection when you scroll. Hold the button and turn the wheel: the selection
stays on its text and grows with the view, so you can select more than one
screen, and releasing copies all of it, including the lines that scrolled
out of sight. This applies to the PR description preview, the operation
result, the command log, and the keybindings help. Before, the wheel reset
the selection, and a copy could never be longer than what was on screen. - In the PR description preview, a selection that included the "From ..." line
(or the failure message) could copy garbled text for that line. - Text copied from a dialog with the mouse no longer picks up a line break
wherever the dialog wrapped a long line to fit its width. The copy now reads
as the original text does: a wrapped line comes out as one line, with its
spaces, and real line breaks and blank lines stay as they are. This applies
to the PR description preview (title and body), the operation result, the
command log, the keybindings help, and the confirmation prompts. - Switching to another repository inside ziggity (the recent repositories list,
entering or leaving a submodule) now loads that repository's config. Before,
the settings of the repository ziggity was started in stayed in effect, its
custom commands included. - An instructions file that is set but cannot be used no longer goes unnoticed.
Before, a file that was missing, unreadable, or over the size limit was
skipped without a word and the text was generated without your instructions.
Now the generation stops before the AI command runs and tells you why, for
example "pr-instructions.md is over 64 KB (70.4 KB)". - A failed PR description generation now shows the reason in the preview (the
first line of the AI command's error output), as commit message generation
already did. - Line staging and custom patches now work for files that use a textconv diff
driver (adiff=<driver>attribute withdiff.<driver>.textconvset, as for
a document converter or a pretty-printer). The staging view and the patch
builder showed the driver's converted text, so staging a line or applying the
patch failed with "patch does not apply". They now show the file's own lines.
A binary file with such a driver shows as binary there, since it cannot be
staged line by line. The Diff panel and the review's whole-file view still
show the converted text for reading. - Discarding a hunk in the side-by-side review of a file shown through a
textconv driver could write the driver's converted text into the file
instead of the original lines. The review opened from the Diff panel shows
the converted text, sodthere is now refused for such files with a note
to discard from the staging view (which shows the real lines) or the Files
panel.
Security
- A repository can no longer configure the ziggity of whoever opens it. The per
repo config was read from the working tree, so a.ziggity.inithat came
with a clone or a checked out branch could bind any key, including the ones
you navigate with, to a shell command (command.<key>), or replace
ai.commandandeditor_command. It is now read from the git directory
only, which nothing git transfers can write to.
Full Changelog: v0.70.0...v0.71.0
v0.70.0
Added
- Untracked files can be staged line by line.
enteron a new file opens the
staging view with every line shown as an addition; staging some of them adds
the file to the index with just those lines (the rest stay unstaged), and
from then on it stages like any other file. git's line ending rules and
filters apply exactly as they would forgit add. Staging every line, or the
@@header, simply adds the whole file. Discarding the whole hunk of an
untracked file is refused in the staging view and the side-by-side review,
since it would delete a file git has no copy of; the Files panel's discard
menu still does that.
Fixed
- Unstaging some lines of a newly added file no longer fails with "new file
depends on old contents". Unstaging every line of it now makes the file
untracked again (and the staging view stays open on it) instead of leaving
an empty file in the index. - Line staging, discarding, and the side-by-side review's discard now work for
people who setdiff.noprefix,diff.mnemonicPrefix, or a custom
diff.srcPrefixin their git config. ziggity now always reads diffs with the
standarda/andb/prefixes; before,git applystripped part of the
real path and failed with "does not exist in index".
Full Changelog: v0.69.0...v0.70.0
v0.69.0
Added
- Optional confirmations for three destructive actions that have always run
without asking. They stay off by default, so nothing changes unless you turn
them on:skip_confirm.discard_selection = falseasks beforeddiscards
lines or a hunk in the staging view or the side-by-side review (the prompt
opens over the review, so the hunk stays in view);
skip_confirm.drop_stash = falseasks beforeddrops stash entries
(applying, popping, and creating a stash never ask); and
skip_confirm.reset_hard = falseasks before a hard reset from the reset
menu, but only when there are tracked changes it would throw away.
Fixed
- File names containing
*,?, or[are now treated literally. git read
them as patterns, so staging a file namedfile[1]also stagedfile1, and
discarding it also threw away the changes infile1(or deletedfile1if it
was untracked). Staging, unstaging, discarding, resolving a conflict, and the
per-file diffs now all name exactly the selected file. - Dropping or renaming a stash no longer hits the wrong entry when the stash
list changed after you selected it (for example, a stash made or dropped in
another terminal). ziggity checks that each selected position still holds the
same stash first, and if not, drops nothing and asks you to look again. - Fixed a few memory errors that could only happen when the system runs out of
memory, one of which could crash ziggity by freeing the same message twice.
Full Changelog: v0.68.0...v0.69.0
v0.68.0
Fixed
- ziggity no longer aborts with an integer overflow when the terminal is resized
to a very narrow width. A short window between 10 and 19 columns wide tried to
reserve a side column wider than the whole terminal, which underflowed the main
panel's width. The side column is now capped to the terminal width, so the side
panels fill it and the main panel is hidden until there is room for both.
Full Changelog: v0.67.0...v0.68.0
v0.67.0
Added
- Small and mobile terminals are now supported. ziggity renders down to a 10x9
terminal, squashing unfocused side panels to their title bars when the window
is short. On a narrow, tall terminal (a phone, for example) it switches to a
stacked "portrait" layout: the side panels sit above the main panel instead of
beside it. A newportrait_modesetting (autodefault, oralways/
never) controls this;autostacks when the width is 84 or less and the
height is 46 or more. In the stacked layoutside_panel_width_percentsets the
side section's share of the height.
Full Changelog: v0.66.0...v0.67.0
v0.66.0
Changed
- AI settings are now grouped under an
ai.*namespace (ai.command,
ai.commit.auto_title,ai.commit.auto_description,ai.commit.style_defaults,
plus the newai.commit.instructionsandai.pr.instructionspath settings).
The old flat keys still work as aliases. The commit and PR instruction files
are now opt-in and located by the config path: with the setting unset nothing
is loaded (no implicit default location). A relative path resolves against the
directory of the config file that set it (so./commit-instructions.mdsits
next to your.ziggity.ini, or next to a globalZIGGITY_CONFIG); an absolute
path is used as-is. The previous automatic loading of
.ziggity/commit-instructions.md/.ziggity/pr-instructions.mdand the
~/.config/ziggity/fallback are removed: setai.commit.instructions/
ai.pr.instructionsto the file's path to use one. - The
/filter (Files, branches, commits, remotes, tags) now matches by
substring by default, instead of a scattered subsequence. Each
whitespace-separated term must appear as a run of characters, so typingdi
keepsdiffbut no longerandroid-support. Matching stays smart case:
lowercase matches any case, and an uppercase letter makes that term
case-sensitive. A newfilter_modesetting (substringdefault, orfuzzy)
restores the old scattered-subsequence matching.
Added
- The Status panel's about screen now shows a support link
(https://ko-fi.com/simoarpe) above the animation. It is clickable, as is the
repository link next to it. - The keybindings help overlay (
?) now has a/search that highlights
matches in place instead of hiding the rest. A footer shows the/prompt;
type at least two characters to highlight every occurrence and jump to the
first;enterornjump to the next match andNto the previous (the
current match is highlighted distinctly and briefly pops when you land on it);
esc clears the search, and a second esc closes the overlay. enow opens your editor at the line you are looking at: the cursor line in
the staging or patch view, or the top line of a focused Diff panel. All editor
presets support it, and a customeditor_commandcan use a new{{line}}
placeholder.- The
/name filter now works on the Tags tab and inside a remote's branches,
not just on the Local tab. Press/and type to narrow the Tags list, or drill
into a remote withenterand/to narrow its branches; enter accepts and
esc clears, the same as for local branches. On the remotes list itself/
reminds you to pick a remote first.
What's Changed
- Open the editor at the current line by @abuibrahim in #63
Full Changelog: v0.65.0...v0.66.0
v0.65.0
Fixed
- Clicking the Status panel no longer traps the mouse on it. Focusing the Status
panel shows the about splash, and while it was up a click anywhere was
swallowed, so you could select panel 1 with the mouse but never click to
another panel. Clicks outside the Status panel now focus the panel they land
on, as before.
Full Changelog: v0.64.0...v0.65.0
v0.64.0
Added
- Nix flake:
nix run github:simoarpe/ziggityruns Ziggity without installing
it, andnix developgives contributors a shell with the pinned Zig version. - Terminals that support the Program Status Protocol (OSC 7501), such as Rex,
now show what Ziggity is doing on an unfocused tab: busy during a fetch, pull,
push, rebase or AI generation, waiting when it needs credentials or a
force-push confirmation, and failed while an error dialog is open.
What's Changed
- Report program status to the terminal (OSC 7501) by @abuibrahim in #61
- Add Nix flake by @abuibrahim in #60
Full Changelog: v0.63.0...v0.64.0