Tags: idursun/jjui
Tags
fix(bookmarks): match bookmark names exactly (#650) Updated to use `exact:"string"` to match strings exactly equal to string. details see [Revset: String Pattern - Jujutsu docs](https://docs.jj-vcs.dev/latest/revsets/#string-patterns) Fixes #632
fix: update list rendering in git, bookmarks and custom commands modals Previous rendering code relied on rendering full string (including the bg style) over the modal window box but the new system is only rendering to the relevant areas while leaving some gaps. Fixed using AddFill for the whole area and calling AddDraw on skip lines. #535
fix(preview): update preview window after squash operation (#518) Root cause: startSquash() called SetCursor() to move to the parent revision but never emitted a SelectionChangedMsg. The preview panel only refreshes when it receives that message, so it stayed stale until the user pressed j/k which does emit the message via updateSelection(). Fix: batch updateSelection() alongside the operation init command in startSquash(), matching the pattern used by all other cursor-moving operations. Closes #516
ui,preview: fix preview pane ctrl-u/d scrolling (#472) Commit 8481b92 broke ctrl-u/d scrolling in the preview pane, see below code: ``` if common.IsInputMessage(msg) { if m.oplog != nil { cmds = append(cmds, m.oplog.Update(msg)) } else { cmds = append(cmds, m.revisions.Update(msg)) } return tea.Batch(cmds...) } ``` This causes unhandled key messages to be routed only to oplog or revisions, and then returns early, so they never reach the preview model's Update() call which happens later in the function. This fix groups preview related commands and make sure they are always handled. Also, added a YOffset() method to internal/ui/preview/preview.go to expose the viewport's Y offset for testing purposes.
PreviousNext