From c170508a26e723538218244db216a5f43d2f064d Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 3 Apr 2024 10:05:34 +0300 Subject: [PATCH] tmux add mapping --- home/user/.config/nvim/lua/base/options.lua | 2 +- home/user/.config/tmux/mappings.conf | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/home/user/.config/nvim/lua/base/options.lua b/home/user/.config/nvim/lua/base/options.lua index 5a34ee3..85e13a3 100644 --- a/home/user/.config/nvim/lua/base/options.lua +++ b/home/user/.config/nvim/lua/base/options.lua @@ -38,7 +38,7 @@ opt.autoindent = true opt.smartindent = true -- tabline -opt.showtabline = 1 +opt.showtabline = 0 opt.cursorline = true opt.wrap = false diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index 4eb5547..a3e61a5 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -19,6 +19,9 @@ bind -T off F12 \ # Switch new named session bind n command-prompt -p "New session:" "new-session -A -d -s '%1' \; switch-client -t '%1'" +# Kill session and reattach to last session +bind k confirm-before -p "kill current session? (y/n)" "switch-client -l \; kill-session -t '#S'" + # Call prompt via Alt+; bind -n 'M-;' command-prompt