Emacs Asked by orion on December 5, 2020
Pressing TAB on a single unstaged file shows or hides details pertaining to that file.
How do I show & hide (toggle) details of all unstaged files at once?
I did come across outline-hide-sublevels via M-x
. But I would like to know a key combination to do this in a toggle fashion.
I also typed ? to check the keybinding shortcuts for the magit-status area but could not find an answer.
I think you want M-TAB magit-section-cycle-diffs
Cycle the visibility of diff-related sections in the current buffer.
Correct answer by Jack on December 5, 2020
The following works as an replacement to M-tab
.
(define-key magit-mode-map [(control >)] 'magit-section-cycle-diffs)
M-tab
doesn't work on most MS Windows systems
Answered by David on December 5, 2020
You can use S-TAB (that's shift
) to invoke magit-section-cycle-global
for a coarse-granularity full-expand and -collapse.
Answered by Micah Elliott on December 5, 2020
Another method (if you do not want to change key bindings for the M-TAB solution) is to position your cursor on the line with the section heading, e.g. "Unstaged changes", and press 2 to collapse all changes in that section, or 4 to expand them.
It also works for collapsing/expanding changes per subsection/file.
Answered by Elardus Erasmus on December 5, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP