Closed bagnaram closed 11 months ago
They seem to be working fine for me. What does :verbose nmap <c-c><c-c>
(or any of the other mappings) return for you?
:verbose nmap <c-c><c-c>
n <C-C><C-C> *@<Cmd>lua require('neogit.lib.mappings_manager').invoke(12, 5)<CR>
Last set from Lua
Press ENTER or type command to continue```
:verbose nmap s
n s *@<Cmd>lua require('neogit.lib.mappings_manager').invoke(12, 10)<CR>
Last set from Lua
Press ENTER or type command to continue
I will have to check hopefully another plugin is not conflicting somehow. Calling the function directly works though
I narrowed it to a minimal runtime and still experience the same issue. I notice pressing the key bindings does register something but it just moves the cursor down to the next line in the buffer.
Can you copy the exact content of the rebase buffer and post it here?
My pleasure
pick 81a57ef bump ALB version
pick c180b9a up
pick c56e9e7 revert
pick a46b412 update module
pick e3d3f6c add pcor stuff
pick 74816be vpc tags
# Rebase bad9714..74816be onto bad9714 (6 commands)
#
# Commands:
# p pick = use commit
# r reword = use commit, but edit the commit message
# e edit = use commit, but stop for amending
# s squash = use commit, but meld into previous commit
# f fixup = like "squash", but discard this commit's log message
# x exec = run command (the rest of the line) using shell
# d drop = remove commit
# u undo last change
# <c-c><c-c> tell Git to make it happen
# <c-c><c-k> tell Git that you changed your mind, i.e. abort
# gk move the commit up
# gj move the commit down
# <cr> show the commit another buffer
#
# These lines can be re-ordered; they are executed from top to bottom.
#
# If you remove a line here THAT COMMIT WILL BE LOST.
#
# However, if you remove everything, the rebase will be aborted.
#
Thanks! Easy fix. I didn't realize - the length of the hash is variable! So, in my test repo (work) it's 10 chars long. Another user pointed out theirs was 8. And yours is 7!
Anyways, thanks for the report ;)
Thank you for checking out this issue!
I think you can also use the functions tpope
defined in https://github.com/vim/vim/blob/master/runtime/ftplugin/gitrebase.vim#L20 since they provide the same functionality? 🤔 I am just thinking outloud here.
Description
While in the NeogitRebaseTodo buffer the key bindings don't function. However if I call the functions directly from command-line eg.
:Squash
it works.I also try calling
:lua require('neogit.lib.mappings_manager').invoke(11, 10)
directly based on the runtime binding and there is no effect.Neovim version
NVIM v0.9.4 Build type: RelWithDebInfo LuaJIT 2.1.1692716794
Operating system and version
Linux fedora 6.6.4-200.fc39.x86_64
Steps to reproduce
Expected behavior
No response
Actual behavior
It does not register the hotkey
Minimal config