-
Notifications
You must be signed in to change notification settings - Fork 71
Add Feature: Exception Keymaps in NOP Mode #245
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
Conversation
jyscao
commented
Nov 15, 2019
- provide API for adding reasonable keymappings in Nop Mode as exceptions
- added keymappings will only work in the explicitly excepted modes
- added 3 sets of exceptions (2 for Buffer, 1 for File) as examples
* provide API for adding reasonable keymappings in Nop Mode as exceptions * added keymappings will only work in the explicitly excepted modes * added 3 sets of exceptions (2 for Buffer, 1 for File) as examples
|
A few more notes:
|
|
Thanks for taking on this issue! These changes indeed fix my problem in #226. Now my thoughts on the code: “Exception” is a pretty generic term. Something more specific would probably be better. Cannot think of something more fitting of the top of my head though. Whether you find a better term or not, I think you should add some comments in the code to better explain what this new mechanism does. I see you have also added something to the help. First I thought it did not work, because I did not see it. Turns out it is only visible when you press What do you think? |
* generate help descriptions only in the applicable combined modes * ex. help for 'r' key only visible in FILE + NOP mode
* instead of "Exception", use "Dbmdex" for DouBle MoDe EXception
b116d2c to
a63e021
Compare
|
@bodograumann thanks for the detailed feedback, I updated the PR to account for your suggestions
I had the same hesitation with the name to be frank, but the generic meaning of the word indeed described the feature in this case. So now I've opted to use an unsightly but memorable acronym instead, with a header that spells out the meaning behind it.
This is an excellent idea. I had thought it'd be best to have this as well, but disappointingly for whatever reason completely missed that I could just do a simple And lastly, it's my pleasure to help with this, since for one this is an awesome plugin, and two, this also solves the problem I'd occasionally run into with BUFFER+NOP modes. Aside from the logging buffer case that I briefly mentioned, |
|
Very nice. Just one more thing: |
|
I added a clarification for that section |
* upstream/master: Add Feature: Exception Keymaps in NOP Mode (vim-ctrlspace#245) encourage custom set-up of Go engine (vim-ctrlspace#250) Add wrap-around for moving/copying buffers/tabs (vim-ctrlspace#242)
* Add Feature: Exception Keymaps in NOP Mode * provide API for adding reasonable keymappings in Nop Mode as exceptions * added keymappings will only work in the explicitly excepted modes * added 3 sets of exceptions (2 for Buffer, 1 for File) as examples * Minor tidying up + more concise help description * Shorten help description for excepted keymappings * Improve: help descriptions for NOP + <Mode> * generate help descriptions only in the applicable combined modes * ex. help for 'r' key only visible in FILE + NOP mode * Change feature name (less ambiguity) * instead of "Exception", use "Dbmdex" for DouBle MoDe EXception * Add: code comments for new feature * Elaborate on code comment