feat(workspaces): add count arg to switch-{left,right} commands

This commit is contained in:
Kyuvi
2025-01-09 02:46:08 +02:00
committed by GitHub
parent c1f5d6111f
commit 8f57069dd5

View File

@ -413,10 +413,10 @@ end of the workspace list."
('error (+workspace-error ex t)))))) ('error (+workspace-error ex t))))))
;;;###autoload ;;;###autoload
(defun +workspace/switch-left () (interactive) (+workspace/cycle -1)) (defun +workspace/switch-left (&optional n) (interactive "p") (+workspace/cycle (- n)))
;;;###autoload ;;;###autoload
(defun +workspace/switch-right () (interactive) (+workspace/cycle +1)) (defun +workspace/switch-right (&optional n) (interactive "p") (+workspace/cycle n))
;;;###autoload ;;;###autoload
(defun +workspace/close-window-or-workspace () (defun +workspace/close-window-or-workspace ()