tmux mappings, nvim mappings

This commit is contained in:
thek4n 2024-04-02 15:23:51 +03:00
parent ff697b350b
commit 9ebad0abf1
4 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,7 @@ return {
}
},
keys = {
{ '<Leader>fb', '<cmd>Telescope buffers<CR>' },
{ '<Leader>ff', '<cmd>Telescope find_files<CR>' },
{ '<Leader>fg', '<cmd>Telescope live_grep<CR>' },
{ '<Leader>fc', '<cmd>Telescope git_commits<CR>' },

View File

@ -0,0 +1,4 @@
# vim: ft=tmux
set -g command-alias kill='kill-session -t'

View File

@ -15,8 +15,13 @@ bind -T off F12 \
set -u key-table \;\
set status on
# Switch new named session
bind n command-prompt -p "New session:" "new-session -d -s '%1' \; switch-client -t '%1'"
# Call prompt via Alt+;
bind -n 'M-;' command-prompt
# Zoom pane
bind -n M-f resize-pane -Z

View File

@ -4,6 +4,7 @@ source-file "$HOME/.config/tmux/mappings.conf"
source-file "$HOME/.config/tmux/options.conf"
source-file "$HOME/.config/tmux/style.conf"
source-file "$HOME/.config/tmux/plugins.conf"
source-file "$HOME/.config/tmux/aliases.conf"
if-shell 'test -n "$SSH_CLIENT"' 'source-file "$HOME/.config/tmux/remote.conf"'