-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Description
When a session has been marked down for deletion in the session_list using Ctrl+D and is then unselected - for instance by striking the up or down arrow keys, the viewport in the session_list window unexpectedly moves to some unpredictable position (usually not including the now-selected item).
Once a session has been marked for deletion, the same sort of unexpected viewport jumping occurs after hitting Ctrl+D a second time to confirm deletion. The selection SHOULD simply move to one of the adjacent items in the list without this jarring jumping of the viewport.
This is unintuitive and startling behaviour. If the up or down arrow keys are struck while an item is a marked for deletion, the item SHOULD be unmarked and the selection SHOULD simply be moved upwards or downwards in the session_list without causing the viewport to jump.
The fix SHOLLD NOT affect the initial position of the viewport: the viewport's initial position when the dialog is opened SHOULD be centred on the initially selected item (whether or not that item is in the first page of the list or a later one).
Plugins
None
OpenCode version
HEAD of dev at time of issue submission
Steps to reproduce
- Open the
session_listand mark an item for deletion. - Mark an item for deletion with control+d.
- Observe that the viewport jumps to a position that does not include the current selection.
Screenshot and/or share link
Initial state: item marked for deletion:
After hitting 'up' key once, selected item not in viewport:
After hitting 'up' key twice, viewport returned to correct position:
Operating System
MacOS Sequoia latest.
Terminal
iTerm2