akinomyoga / ble.sh

Bash Line Editor―a line editor written in pure Bash with syntax highlighting, auto suggestions, vim modes, etc. for Bash interactive sessions.
BSD 3-Clause "New" or "Revised" License
2.33k stars 77 forks source link

Moving down through history gets stuck in multiline #443

Closed mcarans closed 2 months ago

mcarans commented 2 months ago

I can move up through history ok, but if I hit a multiline command and press down, I will end up editing that command rather than going down in the history. Is there a shortcut for going down in the history?

akinomyoga commented 2 months ago

I can move up through history ok, but if I hit a multiline command and press down, I will end up editing that command rather than going down in the history. Is there a shortcut for going down in the history?

You can continue pressing down to go to the last line in the multiline command. Then, you can press another down on the last line. When down is pressed on the last line, it goes to the next history entry.

If you want to move to the next history entry regardless of the cursor position in the multiline command, you can check the answer to #440.

mcarans commented 2 months ago

Thanks! I can see from that answer that I can use page up and page down.