-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Key bindings for moving lines up/down on Git rebase don't work #6971
Comments
I cannot reproduce this on develop with updated packages. |
I tried with the Thanks. |
I have a similar issue: K is System Info 💻
((auto-completion :variables auto-completion-enable-help-tooltip t)
clojure
(colors :variables colors-colorize-identifiers 'all)
emacs-lisp git gtags html ibuffer javascript markdown
(python :variables python-test-runner 'pytest)
sql syntax-checking version-control yaml) |
A tedious but functioning workaround is to call the commands directly using |
The same happens to me
|
I'm still unable to reproduce the original issue. @mbertheau You have the correct bindings for
Rightfully? Common consensus is to keep window manager keys on super. I don't accept that it's a Spacemacs bug to have bindings on the meta key. It's also easy to modify: (with-eval-after-load 'git-rebase
(evil-magit-define-key evil-magit-state 'git-rebase-mode-map "K" 'git-rebase-move-line-up)
(evil-magit-define-key evil-magit-state 'git-rebase-mode-map "J" 'git-rebase-move-line-down)) |
@TheBB Alright about Meta/Super. Thanks for the snippet. It feels great! :) Since evil-smart-doc-lookup and evil-join are so much less useful in a rebase buffer than move-line-up/down, it'd make more sense to have the latter on J/K by default. |
I just want to give my thanks for your remapping tip, @TheBB! |
On current develop this code works: (with-eval-after-load 'git-rebase
(define-key git-rebase-mode-map "K" 'git-rebase-move-line-up)
(define-key git-rebase-mode-map "J" 'git-rebase-move-line-down)) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Description
Key bindings for moving lines up/down on Git rebase don't work.
Reproduction guide
SPC g s
r i
to rebase interactivelyC-c
in a comit to start the rebaseK
orJ
to try to move the commit line up or down, respectively.M-k
orM-j
as the message in the rebase window show also do not do what is expected (move lines up/down).M-p
also does not move the line upObserved behaviour:
If
K
is pressed: the commandspacemacs/evil-smart-doc-lookup
is executed.If
J
is pressed: the commandevil-join
is executed.If
M-k
is pressed: the commandkill-this-buffer
is executed.If
M-j
is pressed: the commandexchange-point-and-mark
is executed.If
M-p
is pressed: the commandns-print-buffer
is executed.Expected behaviour:
Move commit line up or down.
System Info
Thank you.
The text was updated successfully, but these errors were encountered: