I am using tmux in a number of machines. I have a weird behavior and I cannot find the reason.
I have a laptop running tmux 3.0a and when I do prefix s I get the following:
i.e. a preview of the highlighted session
My desktop machine with tmux 3.0a as well has no preview (I have updated to 3.1b but still nothing):
Both machines have the same tmux.conf
Any ideas?
EDIT: Toggle preview: v is not working on my desktop. If I press it the only thing that happens is that the cursor disappears until I move the mouse again.
Are you sure you are using 3.0a? Check tmux display -p '#{version}'. Remember you need to restart tmux entirely (tmux kill-server) after upgrading.
Related
I'm running into this strange issue with my tmux in iterm where it appears to be rendering on the wrong line, but this causes strange rendering issues to happen
Here is the basic behavior:
You'll notice the menubar is offset by one line. This is fine, for the most part, except when I start entering tmux commands I get behavior like this:
I've also noticed that sometimes the menu bar will entirely disappear and I won't be able to show which sessions i have open. I've also noticed that sometimes if I select the text in my terminal with my mouse, it will select text one-line up from what I expected to select.
I've tried a bunch of things to debug this, including:
re-install tmux
clear tmux-resurrect history
restart my computer
reinstall iterm
resizing the iterm window (both manually, and using cmd+ and cmd, which I have a theory was what triggered this behavior)
I've also noticed that if I run tmux in the default terminal macOS application it behaves normally with no issues.
Does anyone have any ideas of things I could try?
I have unchecked all of these options, and the strange behavior disappears.
When I'm using iterm2+Tmux using
tmux -CC a -t 0
I can drag a tab from a tmux window so it becomes it's own window, but how do I get it to become a tab again? The only way I know of how to do it is through tmux dashboard by hiding/selecting all/reopen as tabs... is there another way to do this?
Also, does X11 forwarding work in iterm2+tmux integration? it looks like if I just do tmux it works but tmux -CC it doesn't?
Turns out this is not an iterm2+tmux integration issue and more like a iterm2 issue... Here is the solution:
In iterm2 Preference>Appearance> Enable Show tab bar even when there is only one tab
You can then drag and drop the tab as usual
For X11 forwarding support, I just restarted (Cmd + Q) iterm2 and it works now.
I tried using tmux with iTerm2 recently and it works perfectly for about one minute after I attach using the command via iTerm:
$ tmux -CC attach
However one minute after attaching, on the very next keystroke it detaches, as if it somehow timed out. This happens whether or not I do anything in the tmux window. The session is still there and I can reattach with no problems, but of course it disconnects again after a minute. I don't have this issue when using screen or when using tmux without the iTerm integration. Has anyone had a similar issue or know why iTerm may be detaching?
Figured it out! iTerm has the following feature:
"When idle, send ASCII code 0" (by default) Since I don't interact with the tmux control window, it sends the null ASCII code after one minute, which appears to cleanly detach the session. It doesn't matter what I do in the tmux windows, whether they are idle or not.
So glad to have worked this out. Not sure why I had this enabled, as I don't think I need it. It explains some other odd issues I have noticed once or twice (randomly pasting in vim, etc)
Goodbye, screen!
Usually I can scroll in vim when I open a file in the mac terminal.
However, recently, all of a sudden sometimes I am not able to.
When I go to scroll, instead the entire terminal scrolls so I see what I had previously typed in the shell.
How can I fix this?
This is new, I've been using vim for months and it has only started to happen now.
You probably messed with the mouse setting.
:help mouse-using
I have 2 monitors: my notebook monitor, and primary big dell monitor. PhpStorm 9.02 and MacOS X 10.10.5.
When I work at PhpStorm, I move my terminal window to secondary notebook display, and when I focus PhpStorm or terminal, terminal jumps to primary monitor. When I work with 1 tab of terminal everything looks fine after switching on Pinned mode and Floating mode at terminal settings. But today I open 3 tabs, and terminal starts jumps again.
It's very annoying when you often switch between browser and PhpStorm.
Do somebody have the same problem and fix for it?
Known bug, please vote for IDEA-116096.
See also the corresponding JDK issue:
http://bugs.openjdk.java.net/browse/JDK-8069154
Please look #lena answer and vote for issue at intellij.
I found solution thats help me to avoid terminal window jumping:
Create new tabs in terminal.
Drag it to secondary display, so they become separate window.
Close main terminal window.
Child tabs don't jumps between displays.
I solved this by changing a setting in mission control.
Just uncheck the 'Displays have separate spaces' option.
Go to System Preferences.
Click on Mission Control.
Uncheck the box marked Displays have separate spaces.
Log out an login in again.