gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.73k stars 3.34k forks source link

Paste From System Clipboard Not Working #677

Closed chukssomzzy closed 10 months ago

chukssomzzy commented 10 months ago

I am using ubuntu 20.04 LTS with xclip and xsel installed but paste from system clipboard doesn't work. I have also enabled tmux_conf_copy_to_os_clipboard=true and that the only change I made to the configuration.

gpakosz commented 10 months ago

Hello @chukssomzzy 👋

Did you reload the tmux configuration? With <prefix> + r?

After doing so, can you please paste the output of

$ tmux lsk

?

chukssomzzy commented 10 months ago
bind-key    -T copy-mode    C-Space               send-keys -X begin-selection
bind-key    -T copy-mode    C-a                   send-keys -X start-of-line
bind-key    -T copy-mode    C-b                   send-keys -X cursor-left
bind-key    -T copy-mode    C-c                   send-keys -X cancel
bind-key    -T copy-mode    C-e                   send-keys -X end-of-line
bind-key    -T copy-mode    C-f                   send-keys -X cursor-right
bind-key    -T copy-mode    C-g                   send-keys -X clear-selection
bind-key    -T copy-mode    C-k                   send-keys -X copy-end-of-line
bind-key    -T copy-mode    C-n                   send-keys -X cursor-down
bind-key    -T copy-mode    C-p                   send-keys -X cursor-up
bind-key    -T copy-mode    C-r                   command-prompt -i -I "#{pane_search_string}" -p "(search up)" "send -X search-backward-incremental \"%%%\""
bind-key    -T copy-mode    C-s                   command-prompt -i -I "#{pane_search_string}" -p "(search down)" "send -X search-forward-incremental \"%%%\""
bind-key    -T copy-mode    C-v                   send-keys -X page-down
bind-key    -T copy-mode    C-w                   send-keys -X copy-pipe-and-cancel "xsel -i -b"
bind-key    -T copy-mode    Escape                send-keys -X cancel
bind-key    -T copy-mode    Space                 send-keys -X page-down
bind-key    -T copy-mode    ,                     send-keys -X jump-reverse
bind-key    -T copy-mode    \;                    send-keys -X jump-again
bind-key    -T copy-mode    F                     command-prompt -1 -p "(jump backward)" "send -X jump-backward \"%%%\""
bind-key    -T copy-mode    N                     send-keys -X search-reverse
bind-key    -T copy-mode    R                     send-keys -X rectangle-toggle
bind-key    -T copy-mode    T                     command-prompt -1 -p "(jump to backward)" "send -X jump-to-backward \"%%%\""
bind-key    -T copy-mode    f                     command-prompt -1 -p "(jump forward)" "send -X jump-forward \"%%%\""
bind-key    -T copy-mode    g                     command-prompt -p "(goto line)" "send -X goto-line \"%%%\""
bind-key    -T copy-mode    n                     send-keys -X search-again
bind-key    -T copy-mode    q                     send-keys -X cancel
bind-key    -T copy-mode    t                     command-prompt -1 -p "(jump to forward)" "send -X jump-to-forward \"%%%\""
bind-key    -T copy-mode    MouseDown1Pane        select-pane
bind-key    -T copy-mode    MouseDrag1Pane        select-pane \; send-keys -X begin-selection
bind-key    -T copy-mode    MouseDragEnd1Pane     send-keys -X copy-pipe-and-cancel "xsel -i -b"
bind-key    -T copy-mode    WheelUpPane           select-pane \; send-keys -X -N 5 scroll-up
bind-key    -T copy-mode    WheelDownPane         select-pane \; send-keys -X -N 5 scroll-down
bind-key    -T copy-mode    DoubleClick1Pane      select-pane \; send-keys -X select-word
bind-key    -T copy-mode    TripleClick1Pane      select-pane \; send-keys -X select-line
bind-key    -T copy-mode    Home                  send-keys -X start-of-line
bind-key    -T copy-mode    End                   send-keys -X end-of-line
bind-key    -T copy-mode    NPage                 send-keys -X page-down
bind-key    -T copy-mode    PPage                 send-keys -X page-up
bind-key    -T copy-mode    Up                    send-keys -X cursor-up
bind-key    -T copy-mode    Down                  send-keys -X cursor-down
bind-key    -T copy-mode    Left                  send-keys -X cursor-left
bind-key    -T copy-mode    Right                 send-keys -X cursor-right
bind-key    -T copy-mode    M-C-b                 send-keys -X previous-matching-bracket
bind-key    -T copy-mode    M-C-f                 send-keys -X next-matching-bracket
bind-key    -T copy-mode    M-1                   command-prompt -N -I 1 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode    M-2                   command-prompt -N -I 2 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode    M-3                   command-prompt -N -I 3 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode    M-4                   command-prompt -N -I 4 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode    M-5                   command-prompt -N -I 5 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode    M-6                   command-prompt -N -I 6 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode    M-7                   command-prompt -N -I 7 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode    M-8                   command-prompt -N -I 8 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode    M-9                   command-prompt -N -I 9 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode    M-<                   send-keys -X history-top
bind-key    -T copy-mode    M->                   send-keys -X history-bottom
bind-key    -T copy-mode    M-R                   send-keys -X top-line
bind-key    -T copy-mode    M-b                   send-keys -X previous-word
bind-key    -T copy-mode    M-f                   send-keys -X next-word-end
bind-key    -T copy-mode    M-m                   send-keys -X back-to-indentation
bind-key    -T copy-mode    M-r                   send-keys -X middle-line
bind-key    -T copy-mode    M-v                   send-keys -X page-up
bind-key    -T copy-mode    M-w                   send-keys -X copy-pipe-and-cancel "xsel -i -b"
bind-key    -T copy-mode    "M-{"                 send-keys -X previous-paragraph
bind-key    -T copy-mode    "M-}"                 send-keys -X next-paragraph
bind-key    -T copy-mode    M-Up                  send-keys -X halfpage-up
bind-key    -T copy-mode    M-Down                send-keys -X halfpage-down
bind-key    -T copy-mode    C-Up                  send-keys -X scroll-up
bind-key    -T copy-mode    C-Down                send-keys -X scroll-down
bind-key    -T copy-mode-vi C-b                   send-keys -X page-up
bind-key    -T copy-mode-vi C-c                   send-keys -X cancel
bind-key    -T copy-mode-vi C-d                   send-keys -X halfpage-down
bind-key    -T copy-mode-vi C-e                   send-keys -X scroll-down
bind-key    -T copy-mode-vi C-f                   send-keys -X page-down
bind-key    -T copy-mode-vi C-h                   send-keys -X cursor-left
bind-key    -T copy-mode-vi C-j                   send-keys -X copy-pipe-and-cancel "xsel -i -b"
bind-key    -T copy-mode-vi Enter                 send-keys -X copy-pipe-and-cancel "xsel -i -b"
bind-key    -T copy-mode-vi C-u                   send-keys -X halfpage-up
bind-key    -T copy-mode-vi C-v                   send-keys -X rectangle-toggle
bind-key    -T copy-mode-vi C-y                   send-keys -X scroll-up
bind-key    -T copy-mode-vi Escape                send-keys -X cancel
bind-key    -T copy-mode-vi Space                 send-keys -X begin-selection
bind-key    -T copy-mode-vi \$                    send-keys -X end-of-line
bind-key    -T copy-mode-vi %                     send-keys -X next-matching-bracket
bind-key    -T copy-mode-vi ,                     send-keys -X jump-reverse
bind-key    -T copy-mode-vi /                     command-prompt -p "(search down)" "send -X search-forward \"%%%\""
bind-key    -T copy-mode-vi 0                     send-keys -X start-of-line
bind-key    -T copy-mode-vi 1                     command-prompt -N -I 1 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode-vi 2                     command-prompt -N -I 2 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode-vi 3                     command-prompt -N -I 3 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode-vi 4                     command-prompt -N -I 4 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode-vi 5                     command-prompt -N -I 5 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode-vi 6                     command-prompt -N -I 6 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode-vi 7                     command-prompt -N -I 7 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode-vi 8                     command-prompt -N -I 8 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode-vi 9                     command-prompt -N -I 9 -p (repeat) "send -N \"%%%\""
bind-key    -T copy-mode-vi :                     command-prompt -p "(goto line)" "send -X goto-line \"%%%\""
bind-key    -T copy-mode-vi \;                    send-keys -X jump-again
bind-key    -T copy-mode-vi ?                     command-prompt -p "(search up)" "send -X search-backward \"%%%\""
bind-key    -T copy-mode-vi A                     send-keys -X append-selection-and-cancel
bind-key    -T copy-mode-vi B                     send-keys -X previous-space
bind-key    -T copy-mode-vi D                     send-keys -X copy-end-of-line
bind-key    -T copy-mode-vi E                     send-keys -X next-space-end
bind-key    -T copy-mode-vi F                     command-prompt -1 -p "(jump backward)" "send -X jump-backward \"%%%\""
bind-key    -T copy-mode-vi G                     send-keys -X history-bottom
bind-key    -T copy-mode-vi H                     send-keys -X start-of-line
bind-key    -T copy-mode-vi J                     send-keys -X scroll-down
bind-key    -T copy-mode-vi K                     send-keys -X scroll-up
bind-key    -T copy-mode-vi L                     send-keys -X end-of-line
bind-key    -T copy-mode-vi M                     send-keys -X middle-line
bind-key    -T copy-mode-vi N                     send-keys -X search-reverse
bind-key    -T copy-mode-vi T                     command-prompt -1 -p "(jump to backward)" "send -X jump-to-backward \"%%%\""
bind-key    -T copy-mode-vi V                     send-keys -X select-line
bind-key    -T copy-mode-vi W                     send-keys -X next-space
bind-key    -T copy-mode-vi ^                     send-keys -X back-to-indentation
bind-key    -T copy-mode-vi b                     send-keys -X previous-word
bind-key    -T copy-mode-vi e                     send-keys -X next-word-end
bind-key    -T copy-mode-vi f                     command-prompt -1 -p "(jump forward)" "send -X jump-forward \"%%%\""
bind-key    -T copy-mode-vi g                     send-keys -X history-top
bind-key    -T copy-mode-vi h                     send-keys -X cursor-left
bind-key    -T copy-mode-vi j                     send-keys -X cursor-down
bind-key    -T copy-mode-vi k                     send-keys -X cursor-up
bind-key    -T copy-mode-vi l                     send-keys -X cursor-right
bind-key    -T copy-mode-vi n                     send-keys -X search-again
bind-key    -T copy-mode-vi o                     send-keys -X other-end
bind-key    -T copy-mode-vi q                     send-keys -X cancel
bind-key    -T copy-mode-vi t                     command-prompt -1 -p "(jump to forward)" "send -X jump-to-forward \"%%%\""
bind-key    -T copy-mode-vi v                     send-keys -X begin-selection
bind-key    -T copy-mode-vi w                     send-keys -X next-word
bind-key    -T copy-mode-vi y                     send-keys -X copy-pipe-and-cancel "xsel -i -b"
bind-key    -T copy-mode-vi \{                    send-keys -X previous-paragraph
bind-key    -T copy-mode-vi \}                    send-keys -X next-paragraph
bind-key    -T copy-mode-vi MouseDown1Pane        select-pane
bind-key    -T copy-mode-vi MouseDrag1Pane        select-pane \; send-keys -X begin-selection
bind-key    -T copy-mode-vi MouseDragEnd1Pane     send-keys -X copy-pipe-and-cancel "xsel -i -b"
bind-key    -T copy-mode-vi WheelUpPane           select-pane \; send-keys -X -N 5 scroll-up
bind-key    -T copy-mode-vi WheelDownPane         select-pane \; send-keys -X -N 5 scroll-down
bind-key    -T copy-mode-vi DoubleClick1Pane      select-pane \; send-keys -X select-word
bind-key    -T copy-mode-vi TripleClick1Pane      select-pane \; send-keys -X select-line
bind-key    -T copy-mode-vi BSpace                send-keys -X cursor-left
bind-key    -T copy-mode-vi NPage                 send-keys -X page-down
bind-key    -T copy-mode-vi PPage                 send-keys -X page-up
bind-key    -T copy-mode-vi Up                    send-keys -X cursor-up
bind-key    -T copy-mode-vi Down                  send-keys -X cursor-down
bind-key    -T copy-mode-vi Left                  send-keys -X cursor-left
bind-key    -T copy-mode-vi Right                 send-keys -X cursor-right
bind-key    -T copy-mode-vi C-Up                  send-keys -X scroll-up
bind-key    -T copy-mode-vi C-Down                send-keys -X scroll-down
bind-key    -T prefix       C-b                   send-prefix
bind-key    -T prefix       C-c                   new-session
bind-key    -T prefix       C-f                   command-prompt -p find-session "switch-client -t %%"
bind-key -r -T prefix       C-h                   previous-window
bind-key    -T prefix       Tab                   last-window
bind-key -r -T prefix       C-l                   next-window
bind-key    -T prefix       Enter                 copy-mode
bind-key    -T prefix       C-o                   rotate-window
bind-key    -T prefix       C-z                   suspend-client
bind-key    -T prefix       Space                 next-layout
bind-key    -T prefix       !                     break-pane
bind-key    -T prefix       \"                    split-window -c "#{pane_current_path}"
bind-key    -T prefix       \#                    list-buffers
bind-key    -T prefix       \$                    command-prompt -I "#S" "rename-session -- '%%'"
bind-key    -T prefix       %                     split-window -h -c "#{pane_current_path}"
bind-key    -T prefix       &                     confirm-before -p "kill-window #W? (y/n)" kill-window
bind-key    -T prefix       \'                    command-prompt -p index "select-window -t ':%%'"
bind-key    -T prefix       (                     switch-client -p
bind-key    -T prefix       )                     switch-client -n
bind-key    -T prefix       +                     run-shell "cut -c3- '#{TMUX_CONF}' | sh -s _maximize_pane '#{session_name}' '#D'"
bind-key    -T prefix       ,                     command-prompt -I "#W" "rename-window -- '%%'"
bind-key    -T prefix       -                     split-window -v -c "#{pane_current_path}"
bind-key    -T prefix       .                     command-prompt "move-window -t '%%'"
bind-key    -T prefix       0                     select-window -t :=0
bind-key    -T prefix       1                     select-window -t :=1
bind-key    -T prefix       2                     select-window -t :=2
bind-key    -T prefix       3                     select-window -t :=3
bind-key    -T prefix       4                     select-window -t :=4
bind-key    -T prefix       5                     select-window -t :=5
bind-key    -T prefix       6                     select-window -t :=6
bind-key    -T prefix       7                     select-window -t :=7
bind-key    -T prefix       8                     select-window -t :=8
bind-key    -T prefix       9                     select-window -t :=9
bind-key    -T prefix       :                     command-prompt
bind-key    -T prefix       \;                    last-pane
bind-key    -T prefix       <                     swap-pane -U
bind-key    -T prefix       =                     choose-buffer -Z
bind-key    -T prefix       >                     swap-pane -D
bind-key    -T prefix       ?                     list-keys
bind-key    -T prefix       D                     choose-client -Z
bind-key    -T prefix       E                     select-layout -E
bind-key    -T prefix       F                     run-shell "cut -c3- '#{TMUX_CONF}' | sh -s _fpp '#{pane_id}' '#{pane_current_path}'"
bind-key -r -T prefix       H                     resize-pane -L 2
bind-key -r -T prefix       J                     resize-pane -D 2
bind-key -r -T prefix       K                     resize-pane -U 2
bind-key -r -T prefix       L                     resize-pane -R 2
bind-key    -T prefix       M                     select-pane -M
bind-key    -T prefix       P                     choose-buffer
bind-key    -T prefix       U                     run-shell "cut -c3- '#{TMUX_CONF}' | sh -s _urlview '#{pane_id}'"
bind-key    -T prefix       [                     copy-mode
bind-key    -T prefix       ]                     paste-buffer
bind-key    -T prefix       _                     split-window -h -c "#{pane_current_path}"
bind-key    -T prefix       b                     list-buffers
bind-key    -T prefix       c                     new-window
bind-key    -T prefix       d                     detach-client
bind-key    -T prefix       e                     new-window -n "#{TMUX_CONF_LOCAL}" sh -c "\${EDITOR:-vim} \"\$TMUX_CONF_LOCAL\" && \"\$TMUX_PROGRAM\" \${TMUX_SOCKET:+-S \"\$TMUX_SOCKET\"} source \"\$TMUX_CONF\" \\; display \"\$TMUX_CONF_LOCAL sourced\""
bind-key    -T prefix       f                     command-prompt "find-window -Z -- '%%'"
bind-key -r -T prefix       h                     select-pane -L
bind-key    -T prefix       i                     display-message
bind-key -r -T prefix       j                     select-pane -D
bind-key -r -T prefix       k                     select-pane -U
bind-key -r -T prefix       l                     select-pane -R
bind-key    -T prefix       m                     run-shell "cut -c3- '#{TMUX_CONF}' | sh -s _toggle_mouse"
bind-key    -T prefix       o                     select-pane -t :.+
bind-key    -T prefix       p                     paste-buffer -p
bind-key    -T prefix       q                     display-panes
bind-key    -T prefix       r                     run-shell "\"\$TMUX_PROGRAM\" \${TMUX_SOCKET:+-S \"\$TMUX_SOCKET\"} source \"\$TMUX_CONF\"" \; display-message "#{TMUX_CONF} sourced"
bind-key    -T prefix       s                     choose-tree -Zs
bind-key    -T prefix       t                     clock-mode
bind-key    -T prefix       w                     choose-tree -Zw
bind-key    -T prefix       x                     confirm-before -p "kill-pane #P? (y/n)" kill-pane
bind-key    -T prefix       y                     run-shell -b "\"\$TMUX_PROGRAM\" \${TMUX_SOCKET:+-S \"\$TMUX_SOCKET\"} save-buffer - | xsel -i -b"
bind-key    -T prefix       z                     resize-pane -Z
bind-key    -T prefix       \{                    swap-pane -U
bind-key    -T prefix       \}                    swap-pane -D
bind-key    -T prefix       \~                    show-messages
bind-key -r -T prefix       DC                    refresh-client -c
bind-key    -T prefix       PPage                 copy-mode -u
bind-key    -T prefix       BTab                  switch-client -l
bind-key -r -T prefix       Up                    select-pane -U
bind-key -r -T prefix       Down                  select-pane -D
bind-key -r -T prefix       Left                  select-pane -L
bind-key -r -T prefix       Right                 select-pane -R
bind-key    -T prefix       M-1                   select-layout even-horizontal
bind-key    -T prefix       M-2                   select-layout even-vertical
bind-key    -T prefix       M-3                   select-layout main-horizontal
bind-key    -T prefix       M-4                   select-layout main-vertical
bind-key    -T prefix       M-5                   select-layout tiled
bind-key    -T prefix       M-n                   next-window -a
bind-key    -T prefix       M-o                   rotate-window -D
bind-key    -T prefix       M-p                   previous-window -a
bind-key -r -T prefix       M-Up                  resize-pane -U 5
bind-key -r -T prefix       M-Down                resize-pane -D 5
bind-key -r -T prefix       M-Left                resize-pane -L 5
bind-key -r -T prefix       M-Right               resize-pane -R 5
bind-key -r -T prefix       C-Up                  resize-pane -U
bind-key -r -T prefix       C-Down                resize-pane -D
bind-key -r -T prefix       C-Left                resize-pane -L
bind-key -r -T prefix       C-Right               resize-pane -R
bind-key -r -T prefix       S-Up                  refresh-client -U 10
bind-key -r -T prefix       S-Down                refresh-client -D 10
bind-key -r -T prefix       S-Left                refresh-client -L 10
bind-key -r -T prefix       S-Right               refresh-client -R 10
bind-key    -T root         C-l                   send-keys C-l \; run-shell "sleep 0.2" \; clear-history
bind-key    -T root         MouseDown1Pane        select-pane -t = \; send-keys -M
bind-key    -T root         MouseDown1Status      select-window -t =
bind-key    -T root         MouseDown3Pane        if-shell -F -t = "#{||:#{mouse_any_flag},#{pane_in_mode}}" "select-pane -t=; send-keys -M" "display-menu -t= -xM -yM -T \"#[align=centre]#{pane_index} (#{pane_id})\"  '#{?mouse_word,Search For #[underscore]#{=/9/...:mouse_word},}' 'C-r' {copy-mode -t=; send -Xt= search-backward \"#{q:mouse_word}\"} '#{?mouse_word,Type #[underscore]#{=/9/...:mouse_word},}' 'C-y' {send-keys -l -- \"#{q:mouse_word}\"} '#{?mouse_word,Copy #[underscore]#{=/9/...:mouse_word},}' 'c' {set-buffer -- \"#{q:mouse_word}\"} '#{?mouse_line,Copy Line,}' 'l' {set-buffer -- \"#{q:mouse_line}\"} '' 'Horizontal Split' 'h' {split-window -c '#{pane_current_path}' -h} 'Vertical Split' 'v' {split-window -c '#{pane_current_path}' -v} '' 'Swap Up' 'u' {swap-pane -U} 'Swap Down' 'd' {swap-pane -D} '#{?pane_marked_set,,-}Swap Marked' 's' {swap-pane} '' 'Kill' 'X' {kill-pane} 'Respawn' 'R' {respawn-pane -k} '#{?pane_marked,Unmark,Mark}' 'm' {select-pane -m} '#{?window_zoomed_flag,Unzoom,Zoom}' 'z' {resize-pane -Z}"
bind-key    -T root         MouseDown3Status      display-menu -T "#[align=centre]#{window_index}:#{window_name}" -t = -x W -y S "Swap Left" l "swap-window -t:-1" "Swap Right" r "swap-window -t:+1" "#{?pane_marked_set,,-}Swap Marked" s swap-window Kill X kill-window Respawn R "respawn-window -k" "#{?pane_marked,Unmark,Mark}" m "select-pane -m" Rename n "command-prompt -I \"#W\" \"rename-window -- '%%'\"" "New After" w "new-window -a" "New At End" W new-window
bind-key    -T root         MouseDown3StatusLeft  display-menu -T "#[align=centre]#{session_name}" -t = -x M -y S Next n "switch-client -n" Previous p "switch-client -p" Renumber N "move-window -r" Rename n "command-prompt -I \"#S\" \"rename-session -- '%%'\"" "New Session" s new-session "New Window" w new-window
bind-key    -T root         MouseDown3StatusRight display-menu -T "#[align=centre]#{client_name}" -t = -x M -y S Detach d detach-client "Detach & Kill" X "detach-client -P" "Detach Others" o "detach-client -a"  Lock l lock-client
bind-key    -T root         MouseDrag1Pane        if-shell -F -t = "#{mouse_any_flag}" "if -Ft= \"#{pane_in_mode}\" \"copy-mode -M\" \"send-keys -M\"" "copy-mode -M"
bind-key    -T root         MouseDrag1Border      resize-pane -M
bind-key    -T root         WheelUpPane           if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= \"#{pane_in_mode}\" \"send-keys -M\" \"copy-mode -et=\""
bind-key    -T root         WheelUpStatus         previous-window
bind-key    -T root         WheelDownStatus       next-window
bind-key    -T root         M-MouseDown3Pane      display-menu -T "#[align=centre]#{pane_index} (#{pane_id})" -t = -x M -y M "#{?mouse_word,Search For #[underscore]#{=/9/...:mouse_word},}" C-r "copy-mode -t=; send -Xt= search-backward \"#{q:mouse_word}\"" "#{?mouse_word,Type #[underscore]#{=/9/...:mouse_word},}" C-y "send-keys -l -- \"#{q:mouse_word}\"" "#{?mouse_word,Copy #[underscore]#{=/9/...:mouse_word},}" c "set-buffer -- \"#{q:mouse_word}\"" "#{?mouse_line,Copy Line,}" l "set-buffer -- \"#{q:mouse_line}\"" "Horizontal Split" h "split-window -c '#{pane_current_path}' -h" "Vertical Split" v "split-window -c '#{pane_current_path}' -v" "Swap Up" u "swap-pane -U" "Swap Down" d "swap-pane -D" "#{?pane_marked_set,,-}Swap Marked" s swap-pane Kill X kill-pane Respawn R "respawn-pane -k" "#{?pane_marked,Unmark,Mark}" m "select-pane -m" "#{?window_zoomed_flag,Unzoom,Zoom}" z "resize-pane -Z"
chukssomzzy commented 10 months ago

After changing the config, I sourced with <prefix> r

gpakosz commented 10 months ago

Why key sequence are you using to paste from system clipboard?

chukssomzzy commented 10 months ago

<prefix> p

gpakosz commented 10 months ago

Right so <prefix> + p only pastes from tmux's own buffer.

The tmux_conf_copy_to_os_clipboard=true setting only achieves the following: when using <prefix> + y it copies to both tmux's own buffer and the OS clipboard.

But most terminal emulators have their own short cut to paste from the OS clipboard, e.g. CTRL + v so my reasoning is that there's really no reason to add a binding to ask xclip or xsel to paste from the OS clipboard.

chukssomzzy commented 10 months ago

Oh!, okay thank you. I was thinking something was wrong because I thought that <prefix> + p should have capability to paste from OS clipboard and tmux's own buffer, since <prefix> + y could copy to both.

I really appreciate the information I would close the issue now :bowing_man: .