Skip to content

Change the query history popup layout to nvim style split layout from the stacked layout - #334

Open
amankhandelia wants to merge 3 commits into
Maxteabag:mainfrom
amankhandelia:feat/alt-history-ui
Open

Change the query history popup layout to nvim style split layout from the stacked layout#334
amankhandelia wants to merge 3 commits into
Maxteabag:mainfrom
amankhandelia:feat/alt-history-ui

Conversation

@amankhandelia

@amankhandelia amankhandelia commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Hi @Maxteabag

I am proposing this change to improve the ui/ux of historical search, which in my experience improves navigating large queries (I am been using this for the past week since I have added this code to repo in my dev flow), specially with keyboard-only workflow, I have attached the video and screenshots my new ui, let me know your feedback on this how do you feel about it.

Proposed Change:

  • Instead of using a stacked layout for query history dialog box let's use a side by side one, as often happens that the query might only differ slightly and you want to check which one is that you want to select and hence the scroll the preview pane,
  • previously, preview pane was very small before which does not allows for proper walkthrough of the old queries

Evidence:
before
00-before-history
after

01-history-split-list

for long queries
02-history-preview-long-query

here is a video demo (key press can be seen at the bottom)
https://github.com/user-attachments/assets/ee87b07e-d2ba-459a-a627-e20dedd677e6

Caveats:

  • This is my first time making ui/ux changes to TUI app, so any feedback, critical or otherwise is appreciated
  • This work was done completely with the assistance of Coding Agent (Codex: GPT-6-Astra), I have read the code, and made minor cleanups

Tab pane switching: Added a priority tab binding (action_toggle_pane)
that jumps focus between the list and preview panes. The footer now
advertises Pane <tab>. works during search

Pane-aware j/k navigation: j/k now navigate the active pane — moving the
OptionList highlight in the list pane and scrolling the preview
VerticalScroll line-by-line in the preview pane

Filter editing bound to the list pane. / switches panes before opening
the filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant