Helm/EXWM: Write draft for extensible filtering

master
Pierre Neidhardt 2017-11-02 18:21:17 +01:00
parent c5d78a4bcd
commit 37f76d3065
1 changed files with 6 additions and 0 deletions

View File

@ -129,6 +129,12 @@ If CLASS is nil, then list all EXWM buffers."
:keymap helm-exwm-map)
:buffer "*helm-exwm*"))
;; TODO: Allow for several classes, and allow for class exclusion.
;; Or pass lambda taking window as parameter? This is more flexible and allows
;; for comparing anything. Lambda return value must be the program name.
;; (defun helm-exwm-browser-filter (buffer)
;; (when (string= (downcase exwm-class-name) (file-name-nondirectory browse-url-generic-program))
;; browse-url-generic-program))
(defun helm-exwm-switch (class &optional program other-window)
"Switch to some EXWM windows belonging to CLASS.