From 7047ffe785c42a99799d3d11815c104a77e16cb7 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:18:49 +0200 Subject: [PATCH] Update --- docs/TODO.md | 3 +++ home/programs/kitty/default.nix | 8 ++++++++ home/programs/shell/tmux.nix | 16 ++++++++++++++++ home/programs/shell/zsh.nix | 2 +- 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/docs/TODO.md b/docs/TODO.md index c0e7a6c..c8ad265 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -7,6 +7,9 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md)) - [ ] Hyprland - [ ] Fix screenshots (screenshot region's border shows up in the screenshot, hyprshot jq error?) and add in the scripts doc - [ ] Nixvim + - [ ] Harpoon + - [ ] UFO for folding + - [ ] neotest golang - [ ] Keymaps: - Trouble - Tagbar (actually not working) diff --git a/home/programs/kitty/default.nix b/home/programs/kitty/default.nix index e2088cc..aa46eca 100644 --- a/home/programs/kitty/default.nix +++ b/home/programs/kitty/default.nix @@ -1,6 +1,14 @@ { config, pkgs, ... }: { programs.kitty = { enable = true; + # Reset existing mappings + keybindings = { + "ctrl+alt+tab" = "next_tab"; + "ctrl+alt+shift+tab" = "previous_tab"; + # Send Ctrl Tab and Ctrl + Shift + Tab for Tmux navigation + "ctrl+tab" = "send_text all \\x1b[27;5;9~"; + "ctrl+shift+tab" = "send_text all \\x1b[27;6;9~"; + }; settings = { scrollback_lines = 10000; initial_window_width = 1200; diff --git a/home/programs/shell/tmux.nix b/home/programs/shell/tmux.nix index 64a6319..79b2b79 100644 --- a/home/programs/shell/tmux.nix +++ b/home/programs/shell/tmux.nix @@ -13,6 +13,22 @@ bind-key k select-pane -U bind-key l select-pane -R set -gq allow-passthrough on + + bind-key -n C-Tab select-window -n + bind-key -n C-S-Tab previous-window + + bind-key "t" run-shell "sesh connect \"$( + sesh list -t | fzf-tmux -p 65%,70% \ + --no-sort --ansi --border-label ' sesh ' --prompt '⚡ ' \ + --header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \ + --bind 'tab:down,btab:up' \ + --bind 'ctrl-a:change-prompt(⚡ )+reload(sesh list)' \ + --bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t)' \ + --bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c)' \ + --bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z)' \ + --bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' \ + --bind 'ctrl-d:execute(tmux kill-session -t {})+change-prompt(⚡ )+reload(sesh list)' + )\"" ''; plugins = with pkgs; [ diff --git a/home/programs/shell/zsh.nix b/home/programs/shell/zsh.nix index d014c99..9d3593b 100644 --- a/home/programs/shell/zsh.nix +++ b/home/programs/shell/zsh.nix @@ -1,6 +1,6 @@ { pkgs, lib, config, ... }: { - home.packages = with pkgs; [ bat ripgrep tldr ]; + home.packages = with pkgs; [ bat ripgrep tldr sesh ]; home.sessionPath = [ "$HOME/go/bin" ];