From 5961e859154568358a9a4039cae2e6f0f55a1239 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 13 Mar 2023 22:05:15 +0300 Subject: [PATCH] Move dlpane's tmux-related command outside --- cmd/dlpane | 1 - cmd/tmux.conf | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dlpane b/cmd/dlpane index cadbf4f..e924841 100755 --- a/cmd/dlpane +++ b/cmd/dlpane @@ -5,7 +5,6 @@ fileId=$(tmux show-buffer | fzf | cut -d" " -f1) [ -n "$fileId" ] -tmux delete-buffer cmd="$(dirname "$(realpath -- "$0")")" state="$PWD" cd /tmp diff --git a/cmd/tmux.conf b/cmd/tmux.conf index 2a19c28..5750dc9 100644 --- a/cmd/tmux.conf +++ b/cmd/tmux.conf @@ -24,6 +24,7 @@ bind-key S new-window CATFILE bind-key D { capture-pane -t 0 new-window DLPANE + delete-buffer } bind-key -n C-PgUp previous-window -- 2.44.0