aboutsummaryrefslogtreecommitdiff
path: root/evil-commands.el
diff options
context:
space:
mode:
Diffstat (limited to 'evil-commands.el')
-rw-r--r--evil-commands.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/evil-commands.el b/evil-commands.el
index 3d625a7..2198a0c 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -4782,6 +4782,18 @@ and redisplay the current buffer there."
:repeat nil
(evil-move-window 'below))
+;;; Tab commands
+
+(evil-define-command evil-tab-next (arg)
+ "Switch to the next tab.
+If ARG is non-nil, parse ARG as an index and go to the tab at that
+index."
+ :repeat nil
+ (interactive "<c>")
+ (if arg
+ (tab-bar-select-tab arg)
+ (tab-bar-switch-to-next-tab)))
+
;;; Mouse handling
;; Large parts of this code are taken from mouse.el which is