Skip to content

Pressing UP arrow key should scroll through entire history #788

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

Open
Mastermind-sap opened this issue Mar 12, 2025 · 2 comments
Open

Pressing UP arrow key should scroll through entire history #788

Mastermind-sap opened this issue Mar 12, 2025 · 2 comments

Comments

@Mastermind-sap
Copy link

What do you want?

Currently when we press UP arrow key it starts selecting the previous commands that match the cureent inputed string. This is very helpful but when there is nothing inserted it only goes upto only the lst 11 records in history although there are more stored. It would be nice if this scroll was infinite.

Why do you want this?

I ask Why stop at the last 11 records of history?

Who else would benefit from this?

Everyone who has a bad memory and can't even remember the start of the command.

How should it work?

It should just keep showing the previous command entered on pressing up arrow key.

Given the following situation:
I know I have entered some command which i don't remember but it was beyond the previous 11 commands and I don't want to open .zsh_history to check what the command was.

When I perform the following steps:

  1. Press UP button

Then I expect the following to happen:

  • It to list and select the previous commands.
@joyjwlee
Copy link

joyjwlee commented Apr 2, 2025

+1 on this, we should have an option to make this configurable -- either set it to the previous n lines or disable it completely.

@vguo2037
Copy link

vguo2037 commented Apr 23, 2025

Try setting zstyle ':autocomplete:history-search-backward:*' list-lines -1 for unlimited lines. (If it works it'd be nice to have that documented in README.)

EDIT: fix typo in the command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants