-
Notifications
You must be signed in to change notification settings - Fork 158
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
No operations in until
will be handled after an EditCommand
#644
Comments
On both of your keybindings you're using Here's how you might change the first one.
You can do something similar with your other one too. |
I think this is indeed what I would like to do. Unless you can conditionally sequence commands in other ways. In essence, inside until commands take precedence by their order. In my example that would translate, if there is a suggestion take it, otherwise movetolineend and if that fails as well, which should when you're at the end already, then you may open the editor. Not sure what the proposed solution does exactly, I would assume executing the commands, one after the other, but I don't think I've ever seen that being done outside of an until. At least, that is the case in the default config. |
ok, I guess the problem is that |
Yes, pretty much. I think its more reasonable for the other way around besides being more practical. |
Yes our Here all roads lead to Lines 1148 to 1190 in b1344f6
To allow more Moving this over to reedline as the changes would need to happen here. |
until
will be handled after an EditCommand
Describe the bug
This has showed up in a couple of occasions already, if I understand correctly this is incorrect behavior, please correct me if I'm wrong.
For instance, it should reach the third case when pressing ctrl+e on an empty buffer but it does not.
Or, similar case:
When editing a multi-line command, hitting ctrl+a brings you to the beginning of the line, but all consequent invocations return true as well even if there is no actual action performed.
How to reproduce
Try any of the aforementioned keybindings.
Expected behavior
Upon reaching the beginning or end of the line, subsequent calls should return false instead of true.
Screenshots
No response
Configuration
Additional context
I've considered opening the issue on the reedline repo instead but I wasn't sure. If that's a duplicate or its more appropriate to post it elsewhere, please let me know.
The text was updated successfully, but these errors were encountered: