News for hackers. Stuff that matters.
Re:Tmux – The Essentials (2019) by PhilipRoman on Wednesday March 05, 2025 @01:44AM (#43263600)
Regarding scrolling, I just have a keybind which dumps the scrollback buffer into vim in a new window. Works great for copying or searching things.
Re:Tmux – The Essentials (2019) by philo_sophia on Wednesday March 05, 2025 @04:37PM (#43272887)
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

Re:Tmux – The Essentials (2019) by PhilipRoman on Thursday March 06, 2025 @02:55AM (#43277611)
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