Add ibuffer bindings for updating and filter-group motion
The `ibuffer-update` command is originally on `g` but is evilified to the inconvenient `C-S-g`, so bind it to `gr`.
This commit is contained in:
parent
2c4cd4dd42
commit
f90dd37e4f
|
@ -6,10 +6,12 @@
|
|||
- [[#layer][Layer]]
|
||||
- [[#grouping-buffers][Grouping buffers]]
|
||||
- [[#key-bindings][Key bindings]]
|
||||
- [[#global][Global]]
|
||||
- [[#ibuffer][IBuffer]]
|
||||
|
||||
* Description
|
||||
|
||||
This layer configures Emacs ibuffer for Spacemacs.
|
||||
This layer configures Emacs IBuffer for Spacemacs.
|
||||
|
||||
* Install
|
||||
** Layer
|
||||
|
@ -36,9 +38,18 @@ Example:
|
|||
#+END_SRC
|
||||
|
||||
* Key bindings
|
||||
** Global
|
||||
|
||||
| Key Binding | Description |
|
||||
|-------------+-------------------|
|
||||
| ~SPC b B~ | open ibuffer menu |
|
||||
| Key Binding | Description |
|
||||
|-------------+-------------------------------|
|
||||
| ~SPC b B~ | open IBuffer menu (global) |
|
||||
|
||||
*Note:* The layer will also replace regular ~C-x C-b~ by ibuffer.
|
||||
*Note:* The layer will also replace regular ~C-x C-b~ with =ibuffer=.
|
||||
|
||||
** IBuffer
|
||||
|
||||
| Key Binding | Description |
|
||||
|-------------+-------------------------------|
|
||||
| ~g r~ | update IBuffer ("refresh") |
|
||||
| ~g j~ | move to next filter group |
|
||||
| ~g k~ | move to previous filter group |
|
||||
|
|
|
@ -32,7 +32,11 @@
|
|||
(evil-ex-define-cmd "buffers" 'ibuffer))
|
||||
:config
|
||||
(evilified-state-evilify-map ibuffer-mode-map
|
||||
:mode ibuffer-mode)))
|
||||
:mode ibuffer-mode
|
||||
:bindings
|
||||
"gr" 'ibuffer-update
|
||||
"gj" 'ibuffer-forward-filter-group
|
||||
"gk" 'ibuffer-backward-filter-group)))
|
||||
|
||||
(defun ibuffer/init-ibuffer-projectile()
|
||||
(use-package ibuffer-projectile
|
||||
|
|
Loading…
Reference in New Issue