From 6d07c00c2c68810b4ab4aeee47e3e9e1c56f3c7b Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 22 Aug 2019 17:26:33 +0100 Subject: [PATCH] Use xclip instead of xsel for yanking in copy mode Sometimes when yanking large blocks of text from a pane larger than its size in copy mode did not work. Switch to using `xclip` from `xsel` to see if this works better. --- .conduit.yaml | 2 +- tmux.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.conduit.yaml b/.conduit.yaml index 0421f16..ee00e44 100644 --- a/.conduit.yaml +++ b/.conduit.yaml @@ -2,7 +2,7 @@ - location: ~/.config/tmux - apt: - tmux - - xsel + - xclip - urlview - brew: - tmux diff --git a/tmux.conf b/tmux.conf index fb83436..ff21d48 100644 --- a/tmux.conf +++ b/tmux.conf @@ -84,8 +84,8 @@ bind -T copy-mode-vi v send-keys -X begin-selection if -b '[ "`uname`" = "Darwin" ]' \ 'bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel \ "reattach-to-user-namespace pbcopy"' \ - 'bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel \ - "xsel -i -p && xsel -o -p | xsel -i -b"' + 'bind -T copy-mode-vi y send -X copy-pipe-and-cancel \ + "xclip -i -sel p -f | xclip -i -sel c"' # Left status style setw -g status-left " #{session_name}"