fix(evil): tab ex commands

`:tablast` was calling +workspace/switch-to-last, which was renamed to
+workspace/switch-to-final back in bc6c4b3.
Also added a Vim-style `:tabfirst` counterpart.

Fix: bc6c4b3
Amend: d4d78b2
This commit is contained in:
Alejandro Blasco 2026-04-27 17:08:34 +02:00 committed by Henrik Lissner
parent 12e35c10da
commit 6be3337b49
2 changed files with 4 additions and 2 deletions

View file

@ -71,7 +71,8 @@
(evil-ex-define-cmd "ss[ave]" #'doom/quicksave-session)
(evil-ex-define-cmd "tabc[lose]" #'+workspace:delete)
(evil-ex-define-cmd "tabclear" #'doom/kill-all-buffers)
(evil-ex-define-cmd "tabl[ast]" #'+workspace/switch-to-last)
(evil-ex-define-cmd "tabf[irst]" #'+workspace/switch-to-0)
(evil-ex-define-cmd "tabl[ast]" #'+workspace/switch-to-final)
(evil-ex-define-cmd "tabload" #'+workspace:load)
(evil-ex-define-cmd "tabn[ew]" #'+workspace:new)
(evil-ex-define-cmd "tabnext" #'+workspace:switch-next)

View file

@ -148,7 +148,8 @@ And these are text objects added by this module:
| ~:ss[ave]~ | ([[doom-module::ui workspaces]]) Save the current session |
| ~:tabc[lose]~ | ([[doom-module::ui workspaces]]) Close the current workspace |
| ~:tabclear~ | ([[doom-module::ui workspaces]]) Kill all buffers in current workspace |
| ~:tabl[ast]~ | ([[doom-module::ui workspaces]]) Switch to last focused workspace |
| ~:tabf[irst]~ | ([[doom-module::ui workspaces]]) Switch to the first workspace |
| ~:tabl[ast]~ | ([[doom-module::ui workspaces]]) Switch to the last workspace |
| ~:tabload [NAME]~ | ([[doom-module::ui workspaces]]) Load a workspace from file |
| ~:tabn[ew][!]~ [NAME] | ([[doom-module::ui workspaces]]) Create a new workspace |
| ~:tabnext~ | ([[doom-module::ui workspaces]]) Switch to next workspace |