Update tmux keybinds

This commit is contained in:
Akemi Izuko 2023-12-23 20:13:58 -07:00
parent 23a9f5227f
commit 6e3afc33b8
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC
5 changed files with 15 additions and 5 deletions

View file

@ -56,8 +56,10 @@ case "$(echo "$1" | awk '{print tolower($0)}')" in
echo "Switching to standard layout :: SUPER | ALT | SPACE" echo "Switching to standard layout :: SUPER | ALT | SPACE"
;; ;;
*) *)
if [[ -n "$1" ]]; then
print_help print_help
exit 0 exit 0
fi
;; ;;
esac esac

View file

@ -77,7 +77,8 @@ You can list your remotes and add new ones
```bash ```bash
git remote -v git remote -v
git remote add berg ssh://codeberg.org:22/akemi/dotfiles.git git remote add ice 'ssh://git@codeberg.org:22/akemi/dotfiles.git'
git remote set-url ice 'ssh://git@codeberg.org:22/akemi/dotfiles.git'
git remote rename berg ice git remote rename berg ice
``` ```

View file

@ -374,7 +374,7 @@ mode "mpv_global" {
bindsym return mode "default" bindsym return mode "default"
bindsym Ctrl+k mode "default" bindsym Ctrl+k mode "default"
bindsym Shift+End mode "default" # In Browsers bindsym Shift+End mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
} }

View file

@ -72,7 +72,7 @@ bind-key H swap-pane -s '{left-of}'
# Split panes like vim # Split panes like vim
bind v split-window -h -c '#{pane_current_path}' bind v split-window -h -c '#{pane_current_path}'
bind s split-window -v -c '#{pane_current_path}' bind s split-window -v -c '#{pane_current_path}'
bind T new-window -c "#{pane_current_path}" bind t new-window -c "#{pane_current_path}"
# Move current pane between windows # Move current pane between windows
bind-key g command-prompt -p "grab pane from:" "join-pane -s '%%'" bind-key g command-prompt -p "grab pane from:" "join-pane -s '%%'"
@ -84,6 +84,9 @@ bind-key p break-pane -t :
# Toggle pane synchronization # Toggle pane synchronization
bind-key C-s setw synchronize-panes bind-key C-s setw synchronize-panes
# Show the time
bind T clock-mode
# Switch sessions with ( ) # Switch sessions with ( )
bind-key -n M-0 switch-client -n bind-key -n M-0 switch-client -n
bind-key -n M-9 switch-client -p bind-key -n M-9 switch-client -p

View file

@ -155,6 +155,7 @@ nmap <leader>wz <Plug>(zoom-toggle)
let g:catppuccin_flavour = "mocha" let g:catppuccin_flavour = "mocha"
" Slime ================================================== " Slime ==================================================
function! SlimeStudio()
let g:slime_target = "tmux" let g:slime_target = "tmux"
let g:slime_paste_file = "$HOME/.slime_paste" let g:slime_paste_file = "$HOME/.slime_paste"
let g:slime_python_ipython = 1 let g:slime_python_ipython = 1
@ -184,6 +185,9 @@ nnoremap <leader>f :exe "SlimeSend1 " . g:slime_studio_command3<CR>
nnoremap <leader><leader>f nnoremap <leader><leader>f
\ :let g:slime_studio_command3 = \ :let g:slime_studio_command3 =
\ input("Slime Studio (3): ", g:slime_studio_command3)<CR> \ input("Slime Studio (3): ", g:slime_studio_command3)<CR>
endfunction
call SlimeStudio()
" Gitgutter ============================================== " Gitgutter ==============================================
" Disables git diff by default " Disables git diff by default