mirror of
https://github.com/vale981/ement.el
synced 2025-03-05 09:21:37 -05:00
Add/Change: (ement-taxy-define-key space-p)
Group spaces separately, for clarity. The UI isn't ideal yet, but it's an improvement.
This commit is contained in:
parent
255ffbf052
commit
65ead54698
1 changed files with 9 additions and 1 deletions
|
@ -134,6 +134,13 @@
|
|||
(string-join (mapcar #'format-space parents) ", "))))))
|
||||
(propertize key 'face 'ement-room-list-space)))))
|
||||
|
||||
(ement-taxy-define-key space-p ()
|
||||
"Groups rooms that are themselves spaces."
|
||||
(pcase-let* ((`[,room ,_session] item)
|
||||
((cl-struct ement-room type) room))
|
||||
(when (equal "m.space" type)
|
||||
"Spaces")))
|
||||
|
||||
(ement-taxy-define-key name (&key name regexp)
|
||||
(pcase-let* ((`[,room ,_session] item)
|
||||
(display-name (ement-room--room-display-name room)))
|
||||
|
@ -205,7 +212,8 @@
|
|||
"Low-priority")))
|
||||
|
||||
(defcustom ement-taxy-default-keys
|
||||
'(((membership :status 'invite))
|
||||
'((space-p space)
|
||||
((membership :status 'invite))
|
||||
(favourite)
|
||||
((membership :status 'leave))
|
||||
(low-priority)
|
||||
|
|
Loading…
Add table
Reference in a new issue