summaryrefslogtreecommitdiffstats
path: root/tmux.conf
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-05-20 02:38:04 -0400
committerJesse Luehrs <doy@tozt.net>2018-05-20 02:38:22 -0400
commit23a3336c0d2c65306a9cb1aeb386bbe24f8b38a5 (patch)
tree0211b5d94168f89b83a2c77aba638d4b54f0686b /tmux.conf
parent6105354d5d2038a835613eb22c2c14eb187669e8 (diff)
downloadconf-23a3336c0d2c65306a9cb1aeb386bbe24f8b38a5.tar.gz
conf-23a3336c0d2c65306a9cb1aeb386bbe24f8b38a5.zip
allow using either the primary or clipboard selections on linux
Diffstat (limited to 'tmux.conf')
-rw-r--r--tmux.conf10
1 files changed, 6 insertions, 4 deletions
diff --git a/tmux.conf b/tmux.conf
index a9ae155..4ef6dea 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -39,13 +39,15 @@ bind { copy-mode
bind Enter run 'tmux capture-pane -p | perl -MURL::Search -E"say for URL::Search::extract_urls(do { local \$/; <> })" | tail -n1 | xargs xdg-open'
bind -T copy-mode-vi v send-keys -X begin-selection
-bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind -T copy-mode-vi ) send-keys -X start-of-line
bind -T copy-mode-vi _ send-keys -X back-to-indentation
-bind -T copy-mode-vi ^C run "tmux send-keys -X copy-selection-and-cancel; tmux-clipboard copy"
-bind ^C run "tmux-clipboard copy"
-bind ^V run "tmux-clipboard paste"
+bind -T copy-mode-vi y run "tmux send-keys -X copy-selection-and-cancel; tmux-clipboard copy primary"
+bind -T copy-mode-vi ^C run "tmux send-keys -X copy-selection-and-cancel; tmux-clipboard copy clipboard"
+bind y run "tmux-clipboard copy primary"
+bind ^C run "tmux-clipboard copy clipboard"
+bind IC run "tmux-clipboard paste primary"
+bind ^V run "tmux-clipboard paste clipboard"
unbind ^B