Skip to content

Restrict mode prefixes for cmd-history - #1971

Merged
joelim-work merged 1 commit into
gokcehan:masterfrom
joelim-work:cmd-history-mode
Apr 28, 2025
Merged

Restrict mode prefixes for cmd-history#1971
joelim-work merged 1 commit into
gokcehan:masterfrom
joelim-work:cmd-history-mode

Conversation

@joelim-work

@joelim-work joelim-work commented Apr 28, 2025

Copy link
Copy Markdown
Contributor

To reproduce:

  1. rename or delete a file (or trigger any other mode like filter)
  2. In response to seeing the prompt, press <c-p> (cmd-history-prev), which suddenly exits the prompt and goes into command history mode.

This commit changes the behavior so that cmd-history-prev/cmd-history-next only works when the prefix represents command line mode (any of :, $, !, %, &). Additionally cmd-history-prev can be triggered when in normal mode - this is existing behavior.

@joelim-work joelim-work added the fix Pull requests that fix existing behavior label Apr 28, 2025
@joelim-work joelim-work added this to the r36 milestone Apr 28, 2025
@joelim-work
joelim-work merged commit 6616c9c into gokcehan:master Apr 28, 2025
@joelim-work
joelim-work deleted the cmd-history-mode branch April 28, 2025 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Pull requests that fix existing behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant