I'm trying to group my buffers by tramp connections (like ibuffer-tramp does) but inside the tramp filters it keep my custom filter groups that I defined via
(setq ibuffer-saved-filter-groups
'(("Default"
("Unsaved" (modified)) ; All unsaved buffers
("Stars" (starred-name)) ; Group *starred*
("Start" (name . "\\*scratch\\*")) ; By regexp
("Dired" (mode . dired-mode)) ; Filter by mode
("Org" (filename . ".org")) ; By filename
("Scheme" (directory . "~/scheme*")) ; By directory
("Gnus" (or ; Or multiple!
(saved . "gnus")
(derived-mode . bbdb-mode))))))
My current issue is that ibuffer-tramp overwrites by ibuffer-saved-filter-groups
. Sadly i'm super new to lisp and I'm not finding a way to put the two together. In the ibuffer-tramp documentation it says :
;; Alternatively, use `ibuffer-tramp-generate-filter-groups-by-tramp-connection'
;; to programmatically obtain a list of filter groups that you can
;; combine with your own custom groups.
I was hoping this can help me manage to create subgroups or similar but I couldn't find a solution.
At the very least it could be nice if all tramp similar connections (same hostname) are grouped together in separate filters. Like I would get the [ host1 ] at the top of ibuffer list then [ host 2 ] and then [ Unsaved ] etc...
How can I do that?