From 6be3337b49867bd86f90fe5ca4beeb6b38afaddb Mon Sep 17 00:00:00 2001 From: Alejandro Blasco Date: Mon, 27 Apr 2026 17:08:34 +0200 Subject: [PATCH] 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 --- modules/editor/evil/+commands.el | 3 ++- modules/editor/evil/README.org | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/editor/evil/+commands.el b/modules/editor/evil/+commands.el index 801595fb0..8c165ff6a 100644 --- a/modules/editor/evil/+commands.el +++ b/modules/editor/evil/+commands.el @@ -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) diff --git a/modules/editor/evil/README.org b/modules/editor/evil/README.org index 8344abfee..41dff765a 100644 --- a/modules/editor/evil/README.org +++ b/modules/editor/evil/README.org @@ -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 |