summaryrefslogtreecommitdiffstats
path: root/tmux.conf
diff options
context:
space:
mode:
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