-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix Delete(Sub)Word commands to respect active selection #3987
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,8 +31,8 @@ var bufdefaults = map[string]string{ | |
| "CtrlH": "Backspace", | ||
| "Backspace": "Backspace", | ||
| "OldBackspace": "Backspace", | ||
| "Alt-CtrlH": "DeleteWordLeft", | ||
| "Alt-Backspace": "DeleteWordLeft", | ||
| "Alt-CtrlH": "DeleteSelections|DeleteWordLeft", | ||
| "Alt-Backspace": "DeleteSelections|DeleteWordLeft", | ||
|
JoeKar marked this conversation as resolved.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes the default behavior of these keys inconsistent with the default behavior of I think we shouldn't change these default keybindings, we should just add this ...Also, could you fix huge lines in the commit messages?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
We could add
I am fine with that as well.
Sure. What line limits do you suggest? 50/72?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Both are fine to me. I personally use 72. |
||
| "Tab": "Autocomplete|IndentSelection|InsertTab", | ||
| "Backtab": "CycleAutocompleteBack|OutdentSelection|OutdentLine", | ||
| "Ctrl-o": "OpenFile", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not:
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's more simple. I am gonna change that for
DeleteWordRight,DeleteWordLeft,DeleteSubWordRight,DeleteSubWordLeft.