![]() So far everything I've tried for tmux config ends up breaking some facet of the non-tmux scrolling and text selection UX which I like and to which I've become accustomed. wheel scrolling in vim works fine, but turning on any vim mouse mode also seems to force the use of vim native text selection, which is unwanted my standard workflow uses the OS provided text selection/copy support.wheel scrolling for tmux bash sessions now moves through the scrollback of the iterm window itself, as desired.This will enable mouse integration letting you copy from a pane with your mouse without having to zoom. wheel scrolling in tmux bash sessions now activates copy mode, which is exactly what I don't want 5 Answers Sorted by: 104 Put this block of code in your /.nf.disable "scroll wheel sends arrow keys in alternative screen mode".scrolling the mouse in a tmux bash session unexpectedly cycles through bash command history, instead of scrolling the iterm window itself through the scrollback.enable "scroll wheel sends arrow keys in alternative screen mode".enable "save lines to scrollback when an app status bar is present".seems cool, but I want to be able to control tmux using the traditional ctrl-b two-step inputs.add -CC to all tmux commands to enable full iterm/tmux integration However, the mouse scroll speed really sucks compared to the regular Terminal app.I'm trying to make the UX around scrolling and text selection as similar as I can for non-tmux and tmux sessions, but so far I haven't had any luck. ![]() Is there a way to both disable "scroll wheel sends arrow keys in alternative screen mode" for tmux, but enable the option for "nested" alternative screen mode apps, such as vim running inside of a tmux session? More context (tldr every other option combo I've tried so far has broken something) Text selection: I want to use the OS provided text selection/copying support, and not the vim native version.Scrolling: I want to enable mouse wheel scrolling in vim, less, etc.The solution is to use tmux specific controls to access its own scrollback buffer: Ctrl-b. However, I rely on having the "scroll wheel sends arrow keys in alternative screen mode" enabled for vim, in order to get both the scrolling and text selection UX that I prefer: In practice, if you get used to scroll back using in your iTerm and if you’re going to do the same inside running tmux session, you will control and scroll the outer iTerm’s scrollback buffer, rather than the tmux’s inner scrollback buffer. The "scroll wheel sends arrow keys in alternative screen mode" breaks wheel scrolling in tmux instead of scrolling the iterm window, moving the wheel cycles through command history when in a tmux bash session. Attach ~/Library/Preferences/ here (drag-drop from finder into this window).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |