diff --git a/home/user/.config/nvim/lua/base/plugins/telescope.lua b/home/user/.config/nvim/lua/base/plugins/telescope.lua index 0234b57..64466e4 100644 --- a/home/user/.config/nvim/lua/base/plugins/telescope.lua +++ b/home/user/.config/nvim/lua/base/plugins/telescope.lua @@ -10,6 +10,7 @@ return { } }, keys = { + { 'fb', 'Telescope buffers' }, { 'ff', 'Telescope find_files' }, { 'fg', 'Telescope live_grep' }, { 'fc', 'Telescope git_commits' }, diff --git a/home/user/.config/tmux/aliases.conf b/home/user/.config/tmux/aliases.conf new file mode 100644 index 0000000..5933b94 --- /dev/null +++ b/home/user/.config/tmux/aliases.conf @@ -0,0 +1,4 @@ +# vim: ft=tmux + + +set -g command-alias kill='kill-session -t' \ No newline at end of file diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index 59293da..b03b13b 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -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 diff --git a/home/user/.config/tmux/tmux.conf b/home/user/.config/tmux/tmux.conf index 0d392f4..5f4c350 100644 --- a/home/user/.config/tmux/tmux.conf +++ b/home/user/.config/tmux/tmux.conf @@ -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"'