sorin-ionescu / prezto

The configuration framework for Zsh
MIT License
13.98k stars 4.49k forks source link

Searching using command prefix on up array #2039

Closed amokfa closed 1 year ago

amokfa commented 1 year ago

Description

If I have following commands in my history:

echo hello
grep echo

And I type echo and press up arrow, I want the prompt to jump to the first command. But in prezto it jumps to the second grep command. How do I get the behavior I need?

brainsik commented 1 year ago

This is supported in the current version of zsh-history-substring-search, by setting HISTORY_SUBSTRING_SEARCH_PREFIXED (see configuration docs).

1957 would add support for this in prezto.

indrajitr commented 1 year ago

This is now supported via zstyle :prezto:module:history-substring-search.

danilokleber commented 8 months ago

Hi. This is not working for me. I have the new setting enabled in the .zpreztorc file but the behavior doesn't change.