ibuffer uses / as a prefix key for filter commands, like ibuffer-filter-by-name (/n).
As an evil user, I wanted to use a different prefix, since evil uses / for searching.
I use space as a leader-key, so I decided to put the filter commands behind space/.
The ibuffer / prefix is an anonymous keymap, so I had to bind my new key to the result of a lookup-key call:
(bind-map-for-mode-inherit ivan/ibuffer-leader-map ivan/leader-map
:major-modes (ibuffer-mode)
:bindings
("/" (lookup-key ibuffer-mode-map "/"))) ; <= here
It works, but is there a cleaner way to do it?
I say it's an anonymous keymap because I wasn't able to find any variable bound to it. Running (lookup-key ibuffer-mode-map "/")
just prints out the keymap body:
(keymap
(92 . ibuffer-clear-filter-groups)
...
(109 . ibuffer-filter-by-used-mode))