Add +helm/workspace-mini command & bind to SPC b b
+ Rename +helm/persp-buffer-list to +helm/workspace-buffer-list + Silence compiler warnings when feature/workspaces is disabled + Throw error if feature/workspaces is disabled and these commands are called.
This commit is contained in:
parent
d692718ab4
commit
b0c71c2492
2 changed files with 17 additions and 4 deletions
|
@ -19,11 +19,24 @@
|
||||||
#'helm-projectile-find-file)))
|
#'helm-projectile-find-file)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +helm/persp-buffer-list ()
|
(defun +helm/workspace-buffer-list ()
|
||||||
"A version of `helm-buffers-list', but with its buffer list restricted to the
|
"A version of `helm-buffers-list' with its buffer list restricted to the
|
||||||
current workspace."
|
current workspace."
|
||||||
(interactive)
|
(interactive)
|
||||||
(with-persp-buffer-list nil (helm-buffers-list)))
|
(unless (featurep! :feature workspaces)
|
||||||
|
(user-error "This command requires the :feature workspaces module"))
|
||||||
|
(with-no-warnings
|
||||||
|
(with-persp-buffer-list nil (helm-buffers-list))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun +helm/workspace-mini ()
|
||||||
|
"A version of `helm-mini' with its buffer list restricted to the current
|
||||||
|
workspace."
|
||||||
|
(interactive)
|
||||||
|
(unless (featurep! :feature workspaces)
|
||||||
|
(user-error "This command requires the :feature workspaces module"))
|
||||||
|
(with-no-warnings
|
||||||
|
(with-persp-buffer-list nil (helm-mini))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -49,7 +49,7 @@ be negative.")
|
||||||
[remap imenu-anywhere] #'helm-imenu-anywhere
|
[remap imenu-anywhere] #'helm-imenu-anywhere
|
||||||
[remap imenu] #'helm-semantic-or-imenu
|
[remap imenu] #'helm-semantic-or-imenu
|
||||||
[remap noop-show-kill-ring] #'helm-show-kill-ring
|
[remap noop-show-kill-ring] #'helm-show-kill-ring
|
||||||
[remap persp-switch-to-buffer] #'+helm/persp-buffer-list
|
[remap persp-switch-to-buffer] #'+helm/workspace-mini
|
||||||
[remap switch-to-buffer] #'helm-buffers-list
|
[remap switch-to-buffer] #'helm-buffers-list
|
||||||
[remap projectile-find-file] #'+helm/projectile-find-file
|
[remap projectile-find-file] #'+helm/projectile-find-file
|
||||||
[remap projectile-recentf] #'helm-projectile-recentf
|
[remap projectile-recentf] #'helm-projectile-recentf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue