-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove the q map #1221
Comments
The status window comes and goes enough that I think shaving a couple of keystrokes off of closing it is not a ridiculous endeavor, but as the status window gets more functionality I increasingly agree it's a poor trade-off. For now, I will add a |
@tpope q is a commonly hot key to close window. And I rarely saw someone use gq to quit. |
TL;DR: I advocate for keeping This is interesting as the command line window is something I avoid at all costs, especially with Vim's, uh, completion-based-on-what's-already-been-typed (I either forget or never know what this was called... but That said, If you do decide to change, I do agree with @SolaWing that overriding a Vim default would be best. The whole thing about using I actually don't hate |
It is indeed common for read-only plugin buffers (which is why I did it), but overrides a built-in that has valid uses in read-only plugin buffers (which is I why I will ultimately remove it). |
|
@tpope, since I am so used to |
See conversation at a510b3a#commitcomment-35424504. |
It's already deprecated[1], but I want to disable it earlier than the official schedule because it interferes with macro recording. This should be reverted after fugitive removes the mapping completely. [1]: tpope/vim-fugitive#1221.
For those who misses the old fashion
|
I added this file in my Lua config with the following content but I got the same error: -- ftplugin/fugitiveblame.lua
vim.keymap.set('n', 'q', [[gq]], { buffer = 0, nowait = true, noremap=true }) ![]() Did you happen to got that fixed? @bangedorrunt |
@bangedorrunt @alexventuraio My version:
|
It is very intrusive. I keep accidentally closing
:Gstatus
(and often Vim since I often$ vim .git/index
these days) when trying to q:? for reverse commands search – which I do very often in this context to recall long:Git
commands.For
:Gblame
I don't care so much but it provides no value over CTRL-W q. I see the usefulness of:bdelete
over CTRL-W q when:Gstatus
is the last window, but that seems like a general not fugitive's problem. Am I missing something else? Alternatively it can be remapped to gq.The text was updated successfully, but these errors were encountered: