<story><title>Tmux for Mere Mortals</title><url>https://zserge.com/posts/tmux/</url></story><parent_chain><item><author>cozos</author><text>My biggest problem with &amp;quot;mouseless tmux&amp;quot; was copy-paste. How do you deal with that?</text></item><item><author>echelon</author><text>&amp;gt; realizing it was never going to work how I liked.&lt;p&gt;&amp;gt; You can&amp;#x27;t have it all with the mouse no matter your settings&lt;p&gt;&amp;gt; so I went back to just using the cursor to move things around.&lt;p&gt;These tools (vim, tmux, etc.) work great for mouseless setups. If you can get comfortable with a 100% keyboard control paradigm, it might work for you. I realize this might not be what you want, but if the statement &amp;quot;spend less time moving your hand between keyboard and mouse&amp;quot; resonates, it&amp;#x27;s worth revisiting.</text></item><item><author>asdff</author><text>Spent too much time wonking a tmux config only realizing it was never going to work how I liked. You can&amp;#x27;t have it all with the mouse no matter your settings, there will always be a compromise. It also doesn&amp;#x27;t help that no one cites the version of tmux they wrote their configs for, nor that the configs are not backwards compatible with all versions of tmux for all settings.&lt;p&gt;It&amp;#x27;s really clunky, but I went from tmux to just opening new shell windows as needed. I need to be able to resize and scroll, selecting text and copy behavior should be exactly like mac os. Even used a tiling window manager with it for a bit, but it felt pretty restrictive so I went back to just using the cursor to move things around.</text></item></parent_chain><comment><author>loopz</author><text>Make your own cheatsheet for bindings you need. This way you learn faster and optimize for your own needs. Tmux is exceptional mouseless, though personally I prefer combining with mouse.&lt;p&gt;With xclip, mouse and copy&amp;#x2F;paste can work over SSH-forwarded X-sessions with C-y and Enter from copy-mode-vi so:&lt;p&gt;&lt;pre&gt;&lt;code&gt;  # For older versions of tmux:
  #setw -g mode-mouse on
  #set -g mouse-resize-pane on
  #set -g mouse-select-pane on
  #set -g mouse-select-window on
  # For newer versions of tmux:
  set -g mouse on
  bind -n WheelUpPane if-shell -F -t = &amp;quot;#{mouse_any_flag}&amp;quot; &amp;quot;send-keys -M&amp;quot; &amp;quot;if -Ft= &amp;#x27;#{pane_in_mode}&amp;#x27; &amp;#x27;send-keys -M&amp;#x27; &amp;#x27;select-pane -t=; copy-mode -e; #send-keys -M&amp;#x27;&amp;quot;
  bind -n WheelDownPane select-pane -t= \; send-keys -M

  set -g set-clipboard on
  # With xclip
  bind-key -n C-y run &amp;quot;tmux show-buffer | xclip -selection clipboard -i &amp;gt;&amp;#x2F;dev&amp;#x2F;null&amp;quot;
  #bind-key -n C-y run-shell &amp;quot;tmux save-buffer - | xclip -i -selection clipboard &amp;gt;&amp;#x2F;dev&amp;#x2F;null&amp;quot;
  # For tmux 2.4+
  bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel &amp;#x27;xclip -selection clipboard -i&amp;#x27;
&lt;/code&gt;&lt;/pre&gt;
For Windows vcxsrv is the simplest and most fool-proof X-Windows server. Anything else on Windows may result in pain.&lt;p&gt;My preference is to reduce visual clutter in tmux by tweaking config and mostly just follow built-in bindings so workflow mostly works on standard tmux as well.&lt;p&gt;When clipboard fails between environments, sometimes multiple copy-ing, and then pasting into a text-editor helps (not a tmux issue, but clipboard-integrations).</text></comment>
<story><title>Tmux for Mere Mortals</title><url>https://zserge.com/posts/tmux/</url></story><parent_chain><item><author>cozos</author><text>My biggest problem with &amp;quot;mouseless tmux&amp;quot; was copy-paste. How do you deal with that?</text></item><item><author>echelon</author><text>&amp;gt; realizing it was never going to work how I liked.&lt;p&gt;&amp;gt; You can&amp;#x27;t have it all with the mouse no matter your settings&lt;p&gt;&amp;gt; so I went back to just using the cursor to move things around.&lt;p&gt;These tools (vim, tmux, etc.) work great for mouseless setups. If you can get comfortable with a 100% keyboard control paradigm, it might work for you. I realize this might not be what you want, but if the statement &amp;quot;spend less time moving your hand between keyboard and mouse&amp;quot; resonates, it&amp;#x27;s worth revisiting.</text></item><item><author>asdff</author><text>Spent too much time wonking a tmux config only realizing it was never going to work how I liked. You can&amp;#x27;t have it all with the mouse no matter your settings, there will always be a compromise. It also doesn&amp;#x27;t help that no one cites the version of tmux they wrote their configs for, nor that the configs are not backwards compatible with all versions of tmux for all settings.&lt;p&gt;It&amp;#x27;s really clunky, but I went from tmux to just opening new shell windows as needed. I need to be able to resize and scroll, selecting text and copy behavior should be exactly like mac os. Even used a tiling window manager with it for a bit, but it felt pretty restrictive so I went back to just using the cursor to move things around.</text></item></parent_chain><comment><author>mjbrownie</author><text>A typical scrollback cut and paste workflow for me is via this &amp;lt;ctrl-b&amp;gt;P mapping. I&amp;#x27;m lazy I just grab everything.&lt;p&gt;&lt;pre&gt;&lt;code&gt;   bind-key P command-prompt -p &amp;#x27;save history to filename:&amp;#x27; -I &amp;#x27;~&amp;#x2F;tmux.history&amp;#x27; &amp;#x27;capture-pane -S -32768 ; save-buffer %1 ; delete-buffer&amp;#x27;
&lt;/code&gt;&lt;/pre&gt;
then it&amp;#x27;s all in a file you can work with in an editor of your choice</text></comment>