Add ibuffer square brackets filter group motion

Match the magit buffer section/sibling navigation keys (bound in evil-magit) and
the evil-collections motion section also suggests using [ and ] for navigation
between sections.

And list the default ibuffer filter group motion bindings:
Forward: TAB and M-n
Backward: S-TAB and M-p
This commit is contained in:
duianto 2019-01-07 12:25:45 +01:00 committed by smile13241324
parent a76dc11a5b
commit eebc238803
2 changed files with 8 additions and 6 deletions

View File

@ -49,8 +49,8 @@ Example:
** IBuffer
| Key binding | Description |
|-------------+-------------------------------|
| ~g r~ | update IBuffer (“refresh”) |
| ~g j~ | move to next filter group |
| ~g k~ | move to previous filter group |
| Key binding | Description |
|-------------------------------+-------------------------------|
| ~g r~ | update IBuffer (“refresh”) |
| ~g j~ / ~]~ / ~TAB~ / ~M-n~ | move to next filter group |
| ~g k~ / ~[~ / ~S-TAB~ / ~M-p~ | move to previous filter group |

View File

@ -36,7 +36,9 @@
:bindings
"gr" 'ibuffer-update
"gj" 'ibuffer-forward-filter-group
"gk" 'ibuffer-backward-filter-group)))
"]" 'ibuffer-forward-filter-group
"gk" 'ibuffer-backward-filter-group
"[" 'ibuffer-backward-filter-group)))
(defun ibuffer/init-ibuffer-projectile()
(use-package ibuffer-projectile