7

When I press ll in Magit's status buffer, then it shows a log buffer listing commits. Then I want to show details about the commit at point in another window, but at the same time I want to stay in the log buffer/window. If I press RET, then it shows another buffer with details about the commit, but it also jumps into the new buffer. How to keep the log buffer selected?

2 Answers 2

10

SPC calls magit-diff-show-or-scroll-up

8

Instead of RET use SPC.

The first time you do that it will show the commit in a new buffer and display that buffer in another window, but it does not select that window/buffer.

Pressing SPC again will scroll in the window which displays the commit buffer, so you don't even have to go to that buffer if some of its content is initially hidden because the window is to small.

3
  • 1
    I am using spacemacs, the newest version. SPC + SPC will pop up a window to select all possible functions.
    – Daniel Wu
    Oct 15, 2016 at 1:27
  • it works now. Just use the answer from phils
    – Daniel Wu
    Oct 15, 2016 at 1:32
  • how about binding (magit-diff-show-or-scroll-up) to UP and DOWN keys
    – rho
    Jul 18, 2021 at 0:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.