You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In most other shells I've used cursor keys work up and down when inside the multi-line string and only switch history on the first and last lines of that input respectively. Is there a configuration that allows that in rustyline?
The text was updated successfully, but these errors were encountered:
Well, I couldn't implement this in terms of #293 because of a bug (reported there). But also it's harder than needed because I could only move cursor using BackwardChar/ForwardChar. It would be much nicer if we had one of the two:
VisibleLineUp/Down actions
Move the cursor to "offset"
Also, cursor position measuring is non-trivial, so it might need to be exposed somehow.
I propose to proceed this by adding four built-in actions:
VisibleLineUp/Down
ConditionalUp/Down (or find a better name) to move up or switch history
I don't want to change current Next/PrevHistory actions because I'd like to leave Ctrl-P/Ctrl-N to listing history. And vi-mode j/k to always move over visible line (the latter would be a breaking change though).
Later we can discuss what default bindings for Up/Down should be.
In most other shells I've used cursor keys work up and down when inside the multi-line string and only switch history on the first and last lines of that input respectively. Is there a configuration that allows that in rustyline?
The text was updated successfully, but these errors were encountered: