Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

up-line-or-beginning-search and down-line-or-beginning-search support #128

Open
dereckson opened this issue Feb 23, 2022 · 0 comments
Open

Comments

@dereckson
Copy link

Zle, the line editor from zsh offers two main modes to browse history:

  • the one emulated in histdb-interactive.zsh, inspired of bash CTRL + R interactive search
  • a more concise syntax from tcsh world "up-line-or-beginning-search" and "down-line-or-beginning-search" where you can search by writing the first letters of your query, then [up] key (or down to scroll back)

Reference: https://github.com/zsh-users/zsh/blob/master/Functions/Zle/up-line-or-beginning-search

Could zsh-histdb support that mode?

To emulate that we would need a function allowing to open the query buffer through _histdb_isearch_query then directly do the _histdb-isearch-up without ofering any special interactive mode.

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

No branches or pull requests

1 participant