Skip to content

Smart Key - Magit Mode

bash
If pressed within a Magit buffer and not on a button:
  ACTION KEY
     (1) on the last line, quit from the magit mode ({q} key binding);
     (2) at the end of a line, scroll up a windowful;
     (3) in a magit-status-mode buffer on a merge conflict
         marker, keep either the upper, both or the lower version of 
         the conflict. See also smerge.
     (4) on a line starting with a ‘+’ char in ‘magit-status-mode’ or
         ‘magit-revision-mode’ go to the worktree file.
     (5) on an initial read-only header line, cycle visibility of diff sections;
     (6) anywhere else, hide/show the thing at point ({TAB} key binding)
         unless that does nothing in the mode, then jump to the thing at point
         ({RET} key binding) but display based on the value of
         hpath:display-where.
  ASSIST KEY
     (1) on the last line, quit from the magit mode ({q} key binding);
     (2) at the end of a line, scroll down a windowful;
     (3) on an initial read-only header line, cycle visibility of all sections;
     (4) anywhere else, jump to the thing at point ({RET} key binding)
         but display based on the value of hpath:display-where."