Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wezterm move tabs left or right #8

Closed
jdhao opened this issue Jul 28, 2023 · 0 comments
Closed

wezterm move tabs left or right #8

jdhao opened this issue Jul 28, 2023 · 0 comments

Comments

@jdhao
Copy link
Owner

jdhao commented Jul 28, 2023

diff --git i/.config/wezterm/wezterm.lua w/.config/wezterm/wezterm.lua
index 2b2ac4f..272ffca 100644
--- i/.config/wezterm/wezterm.lua
+++ w/.config/wezterm/wezterm.lua
@@ -35,10 +35,9 @@ wezterm.on(
end
)

-return {
+local wez_conf = {
font = wezterm.font_with_fallback({

  • "IBM Plex Mono",
  • "IBM Plex Mono",
    
    -- "Azeret Mono",
    -- "Iosevka Nerd Font",
    -- "Noto Sans SC",
    @@ -72,3 +71,13 @@ return {
    term = "xterm-256color",
    automatically_reload_config = false,
    }

+-- move current tab left or right, modified from https://wezfurlong.org/wezterm/config/lua/keyassignment/MoveTabRelative.html.
+-- For the key notation, check https://wezfurlong.org/wezterm/config/keys.html#configuring-key-assignments
+local action = wezterm.action
+wez_conf.keys = {

  • { key = 'LeftArrow', mods = 'SHIFT|ALT', action = action.MoveTabRelative(-1) },
  • { key = 'RightArrow', mods = 'SHIFT|ALT', action = action.MoveTabRelative(1) },
    +}

+return wez_conf

@jdhao jdhao closed this as completed Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant