Skip to content

feat(picker_ui): add forward query history cycling (cycle_forward_query)#435

Merged
dmtrKovalenko merged 1 commit intodmtrKovalenko:mainfrom
thuan1412:feat/add-cycle-forward-query
May 2, 2026
Merged

feat(picker_ui): add forward query history cycling (cycle_forward_query)#435
dmtrKovalenko merged 1 commit intodmtrKovalenko:mainfrom
thuan1412:feat/add-cycle-forward-query

Conversation

@thuan1412
Copy link
Copy Markdown
Contributor

@thuan1412 thuan1412 commented May 2, 2026

Close #433

Add a new keymap cycle_forward_query (default <C-Down>) that allows navigating forward through the query history toward more recent queries. This complements the existing cycle_previous_query (<C-Up>) which cycles backward, enabling full bidirectional navigation of query history without losing your place.

Changes

  • conf.lua: Added keymaps.cycle_forward_query config (default: '<C-Down>')
  • picker_ui.lua: Added M.cycle_forward_query() function that decrements history_offset to walk forward through recent entries
  • The function shares the history_offset state with recall_query_from_history for seamless bidirectional traversal

Demo

Screen.Recording.2026-05-02.at.17.41.38.mov

Add a new keymap 'cycle_forward_query' (default <C-Down>) that allows
navigating forward through the query history toward more recent queries.
This complements the existing 'cycle_previous_query' (<C-Up>) which
cycles backward, enabling full bidirectional navigation of query history
without losing your place.

- New config key: keymaps.cycle_forward_query (default: '<C-Down>')
- New function M.cycle_forward_query() that decrements history_offset
  to walk forward through recent entries
- Shares the history_offset state with recall_query_from_history for
  seamless bidirectional traversal
@dmtrKovalenko dmtrKovalenko merged commit 573a783 into dmtrKovalenko:main May 2, 2026
41 checks passed
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.

Feature Request: Add "cycle_forward_query" method

2 participants