mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-27 14:23:43 -05:00
Fix narf/get-buffers (to only return current-wg buffers)
This commit is contained in:
@@ -41,7 +41,8 @@ Inspired from http://demonastery.org/2013/04/emacs-evil-narrow-region/"
|
||||
|
||||
If PROJECT-P is non-nil, get all buffers in current workgroup
|
||||
If both are non-nil, get all project buffers across all workgroups"
|
||||
(let ((buffers (buffer-list))
|
||||
(let* ((assocbuf (wg-workgroup-associated-buffers nil))
|
||||
(buffers (--filter (memq it assocbuf) (buffer-list)))
|
||||
project-root)
|
||||
(if (and project-p (setq project-root (narf/project-root t)))
|
||||
(funcall (if (eq project-p 'not) '-remove '-filter)
|
||||
|
Reference in New Issue
Block a user