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

Disallow exiting from rename: mode with backspace #1060

Merged
merged 1 commit into from Feb 11, 2023

Conversation

ilyagr
Copy link
Collaborator

@ilyagr ilyagr commented Dec 28, 2022

After looking at the list of possibilities for app.ui.cmdPrefix by searching through the code, renaming looks to be the only remaining mode where exiting via backspace doesn't make sense.

In particular, I don't think any commands other than rename commonly start out with some editable text in the prompt. The other dangerous mode is the > mode, but there exit-on-backspace was already disabled.

If I missed something, please let me know. I can fix it here or in a subsequent PR, depending on when we find out.

Fixes #1052, #1059

@ilyagr ilyagr force-pushed the no_bkspace branch 2 times, most recently from 74a564d to 13dff26 Compare December 28, 2022 05:31
After looking at the list of possibilities for `app.ui.cmdPrefix` by searching
through the code, renaming looks to be the only remaining mode where exiting
via backspace doesn't make sense.

In particular, I don't think any commands other than `rename` commonly start
out with some editable text in the prompt. The other dangerous mode is the `>`
mode, but there exit-on-backspace was already disabled.

Fixes gokcehan#1052, gokcehan#1059
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

Successfully merging this pull request may close these issues.

Backspace to normal mode should not apply to command arguments
2 participants