top | item 43272887

(no title)

philo_sophia | 1 year ago

Tmux allows reverse search of the text on the screen and add the tmux-yank plugin to directly copy highlighted text onto your system clipboard

https://github.com/tmux-plugins/tmux-yank

discuss

order

PhilipRoman|1 year ago

As far as I know tmux already copies things straight to X11 clipboard by default (at least in version 3.5a) and no configuration aside from enabling mouse is necessary.

For me, customized Vim search is just miles ahead of everything else so I prefer that (not just for the search, but also to open files with gF, etc.).

I also have a couple binds in Vim to deal with tmux:

    vnoremap <leader>ty "ty:call system('tmux loadb -', getreg("@t"))<cr>
    nnoremap <leader>ty "tyiw:call system('tmux loadb -', getreg("@t"))<cr>
    nnoremap <leader>tp :let @t=system('tmux showb')<cr>"tP