diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml index e4b6f03..97b3300 100644 --- a/alacritty/alacritty.toml +++ b/alacritty/alacritty.toml @@ -59,13 +59,15 @@ blink_timeout = 5 hide_when_typing = false bindings = [ { mouse = "Middle", action = "PasteSelection" }, + # Shift+左键点击扩展选择(从当前选择位置到点击位置) + { mouse = "Left", mods = "Shift", action = "ExpandSelection" }, ] [hints] alphabet = "jfkdls;ahgurieowpq" [[hints.enabled]] -regex = '''(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|http(s?)://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001f\u007f-\u009f<>"\\^⟨⟩`]+''' +regex = '''(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|http(s?)://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001f\u007f-\u009f<>"\s\\^⟨⟩`]+''' command = "open" post_processing = true @@ -81,5 +83,5 @@ mods = "Control|Shift" bindings = [ # Window/Tab switching { key = "Tab", mods = "Control", action = "SelectNextTab" }, - { key = "Tab", mods = "Control|Shift", action = "SelectPreviousTab" }, -] \ No newline at end of file + { key = "V", mods = "Command|Control", action = "ToggleViMode" } +] diff --git a/ghostty/config b/ghostty/config index a6e36b0..54abaa0 100644 --- a/ghostty/config +++ b/ghostty/config @@ -1,20 +1,3 @@ -foreground = "#c0caf5" -background = "#24283b" -cursor_bg = "#c0caf5" -cursor_border = "#c0caf5" -cursor_fg = "#24283b" -selection_bg = "#364A82" -selection_fg = "#c0caf5" - -# Normal colors -black = "#15161e" -red = "#f7768e" -green = "#9ece6a" -yellow = "#e0af68" -blue = "#7aa2f7" -magenta = "#bb9af7" -cyan = "#7dcfff" -white = "#a9b1d6" - font-family = "JetBrainsMono Nerd Font Mono" +theme = "tokyonight" diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua index 756b148..f52bb7f 100644 --- a/wezterm/wezterm.lua +++ b/wezterm/wezterm.lua @@ -1,5 +1,13 @@ local wezterm = require("wezterm") +local tmux = {} +if wezterm.target_triple == "aarch64-apple-darwin" then + tmux = { "/opt/homebrew/bin/tmux", "new", "-As0" } +else + tmux = { "tmux", "new", "-As0" } +end + return { + -- default_prog = tmux, default_cwd = wezterm.home_dir .. "/Workbench", font_size = 14, font = wezterm.font_with_fallback({ @@ -16,7 +24,7 @@ return { }, selection_word_boundary = " \t\n{}[]()\"'`=,.", use_fancy_tab_bar = true, - -- hide_tab_bar_if_only_one_tab = true, + hide_tab_bar_if_only_one_tab = false, color_scheme = "tokyonight", window_decorations = "INTEGRATED_BUTTONS | RESIZE", window_frame = { @@ -39,14 +47,7 @@ return { "zsh", "fzf", }, - ssh_domains = { - { - name = "debian", - remote_address = "debian01", - username = "d0zingcat", - multiplexing = "None", - }, - }, + ssh_domains = {}, keys = { --{ key = 'l', mods = 'CMD', action = wezterm.action({ ShowLauncherArgs = { flags = 'FUZZY|DOMAINS' } }) }, --{ key = 's', mods = 'CMD', action = wezterm.action({ ShowLauncherArgs = { flags = 'FUZZY|WORKSPACES' } }) },