Tags: rdeaton/jjui
Tags
feat(lua): install Lua meta types (idursun#617) * feat(lua): generate types.lua meta file * feat(lua): create .luarc.json file if doesn't exist * refactor(lua): simplify Lua type generation
fix(rebase): use source prefix for insert between fixes idursun#598
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. idursun#535
fix(preview): update preview window after squash operation (idursun#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 idursun#516
ui,preview: fix preview pane ctrl-u/d scrolling (idursun#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.
status: fix exec command history not applied (idursun#458) Previously, in `exec jj` mode, typing triggers fuzzy/regex suggestions from command history. However, when selecting a suggestion and pressing Enter, the command executed was still the original typed input instead of the selected history command. The issue was that, the input field's value isn't updated upon entry selection in command history. This fix checks if there's a selected match in the fuzzy suggestions list before executing. If there is one, it: 1. Gets the selected match string 2. Strips the single quotes that SelectedMatch wraps around the value 3. Updates the input value with so it also gets saved to history correctly
describe: catch cursor blinking to avoid unnecessary rendering (idurs… …un#404) Currently, cursor.Blink msg is not being filtered out and it causes describe view to re-render unnecessarily and height is being calculated on every blinking. This change adds a filter to catch and ignore blinking messages.
PreviousNext