Skip to content

Releases

v0.73.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 11:46
d3c2fef

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

Choose a tag to compare

@github-actions github-actions released this 01 Dec 21:40
9814daf

Changed

  • Deleting a local branch (d on 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 = true skips only the first, so
    the one that protects unmerged commits stays.
    skip_confirm.delete_branch = true skips 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.

  • A local branch that another worktree has checked out can now be deleted
    from the Branches panel. d offers 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 = true to 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 as git branch -d, without the branch name.
  • wrap_diff = true in the config file now takes effect, so the diff panels
    can start with long lines wrapped. The setting was documented but never read,
    which left ctrl+w on 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 = false and switch_tabs_with_panel_keys = false. All
    three are now listed in docs/configuration.md. When you switch to a
    repository whose config sets a different wrap_diff, the diff panels follow
    it; otherwise a ctrl+w choice carries over.

Full Changelog: v0.71.0...v0.72.0

v0.71.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 18:52
716d291

Changed

  • The per repo config file moved from <repo>/.ziggity.ini to
    <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.instructions or ai.pr.instructions path in the file now
    resolves next to its new location, so ./x.md becomes .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 (a diff=<driver> attribute with diff.<driver>.textconv set, 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, so d there 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.ini that 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.command and editor_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

Choose a tag to compare

@github-actions github-actions released this 29 Nov 12:39
a01ac1c

Added

  • Untracked files can be staged line by line. enter on 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 for git 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 set diff.noprefix, diff.mnemonicPrefix, or a custom
    diff.srcPrefix in their git config. ziggity now always reads diffs with the
    standard a/ and b/ prefixes; before, git apply stripped part of the
    real path and failed with "does not exist in index".

Full Changelog: v0.69.0...v0.70.0

v0.69.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 11:59
029a2d3

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 = false asks before d discards
    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 = false asks before d drops stash entries
    (applying, popping, and creating a stash never ask); and
    skip_confirm.reset_hard = false asks 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 named file[1] also staged file1, and
    discarding it also threw away the changes in file1 (or deleted file1 if 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

Choose a tag to compare

@github-actions github-actions released this 29 Nov 10:44
5073448

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

Choose a tag to compare

@github-actions github-actions released this 26 Nov 16:41
727cca9

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 new portrait_mode setting (auto default, or always /
    never) controls this; auto stacks when the width is 84 or less and the
    height is 46 or more. In the stacked layout side_panel_width_percent sets the
    side section's share of the height.

Full Changelog: v0.66.0...v0.67.0

v0.66.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 14:58
ef4dd3c

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 new ai.commit.instructions and ai.pr.instructions path 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.md sits
    next to your .ziggity.ini, or next to a global ZIGGITY_CONFIG); an absolute
    path is used as-is. The previous automatic loading of
    .ziggity/commit-instructions.md / .ziggity/pr-instructions.md and the
    ~/.config/ziggity/ fallback are removed: set ai.commit.instructions /
    ai.pr.instructions to 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 typing di
    keeps diff but no longer android-support. Matching stays smart case:
    lowercase matches any case, and an uppercase letter makes that term
    case-sensitive. A new filter_mode setting (substring default, or fuzzy)
    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; enter or n jump to the next match and N to 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.
  • e now 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 custom editor_command can 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 with enter and / 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

Full Changelog: v0.65.0...v0.66.0

v0.65.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 12:00
62a4c7b

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

Choose a tag to compare

@github-actions github-actions released this 20 Nov 11:34
3bc2371

Added

  • Nix flake: nix run github:simoarpe/ziggity runs Ziggity without installing
    it, and nix develop gives 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

Full Changelog: v0.63.0...v0.64.0

⌂ 换网址