-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.2 questions and comments #2645
Comments
I want to ask a question related to |
tmux should not truncate it, how are you setting it? |
@nicm my setup is here: https://github.com/hanh090/dotfiles/blob/master/.tmux.conf when I run it in REPL, it always truncate for lower 80 characters. But I was found a workaround solution, I wrap it in a function, then problem solved |
Sounds like a problem with your shell then. |
I don't know what you are asking. If it works when you wrap it in a shell function it must be a shell problem not a tmux one. |
Congrats on the new release! I'm currently trying to build a termux package for it but I'm not able to go past the [...]
checking for strndup... yes
checking for strsep... yes
checking for strtonum... no
checking for working strnlen... yes
checking for working reallocarray... configure: error: in `/home/builder/.termux-build/tmux/src':
configure: error: cannot run test program while cross compiling
See `config.log' for more details Can someone give me a hint? Cross-compiling is hard :) |
Did this work before? ISTR someone complaining that autoconf cannot run some tests while crosscompiling. You may need to patch configure.ac to hardcode this test for your platform and regenerate configure, or just patch configure. |
For 3.1c it worked fine, yes. I'll try to craft a quick patch to disable the check, even though I really don't if it is safe to assume that reallocarray is available (or not?) on Android. |
Not sure if it has it or not but if you assume it is not present it should be OK. |
Thanks for your help. I've submitted my PR to termux-packages. |
Just got this update on Arch, and it seems to have broken my user-key binding for using Ctrl+; to switch panes (i use jkl; instead of hjkl):
|
What happens if you bind |
Unsure how i would test that, as both of my terminals (alacritty ant termite) use it to zoom in and I don't know what escape sequence it would have. I tested |
Oh sorry I meant |
Nope, |
Does this fix it?
|
Actually please try this instead: https://gist.githubusercontent.com/nicm/be4faa3ff53884384695fc271b3428fe/raw/6cfa7f662a61eae060e8878c6230dfceb6879c70/gistfile1.txt |
Unfortunately not. Without that patch, tmux woutld just output |
It works for me, open a new issue with logs please. |
@nicm - thanks for the new release! I want to go back to this discussion we had. 3.2 shows correctly the matched count when searching, however it doesn't show which match I am on while going back through them with Is it possible to bring back the old behavior? |
Sorry, I must have not reloaded my conf properly, it works now! Thanks for the quick fix! |
OK I have applied this and it will be in 3.2a but I will wait for a while to see if there is anything else. |
I encountered a parsing issue in .tmux.conf and I fixed it but could not find any documentation related directly to the issue. This: Now I get a syntax error on this line on startup. If i quote the argument to -t like so Looking at the server log, it appears the lexer was not getting the close brace for top-left. |
I have a similar issue to @cah-justin-pitts02 I've been using the below for some time, in 3.2 it results in a syntax error.
I've not yet puzzled out how to fix this line. I assume it has something to do with the breaking changes to the |
@sschlesier strange - that works unmodified for me. If I were to apply my fix to your line, it would be
|
Edit Problem lay between chair and keyboard (I still had an active session and tmux didn't like that) |
@JonRowe most likely your shell or |
You should be able to use |
Not a lot different. In theory there could be multiple applications using load-buffer and you want a single place to configure whether OSC-52 is used or not. There's an argument that some users would want tmux config to control whether it occurs or not. It's also not ideal to override the neovim config that supports tmux out of the box. I suppose neovim could add a 'g:tmux_clipboard_osc52=1' flag which adds this -w flag instead of having users duplicate the core clipboard config to add the extra flag. If tmux won't add the '-w by default' behaviour this might be an enhancement I raise with neovim. Also I find it a bit odd that there are ways to force OSC-52 behaviour with 'select/mouse copy to tmux buffer' - but then get inconsistent behaviour when 'things' other than mouse/select copy to tmux buffers. |
Question, am I right in thinking a bunch of keyboard shortcuts no longer work in this version? I'm using mac os big sur, I have one laptop with tmux 3.2 running and another with the same OS and tmux 3.1c running. Both using the same On 3.1c I can switch between panes with I can also resize panes by first hitting my modifier key(default Both of these no longer work in 3.2. Just curious if there's anything I need to do to get these working again, from what I understand these were default commands that work without requiring anything in |
Do they work if you build tmux from master? |
Can confirm it does work on a master build. |
In order to make the status bar transparent, the status-bg variable was set to the default background color. However, with tmux 3.2 this no longer has the intended effect, as mentioned in the release post: > status-fg and status-bg are now applied before status-style rather > than instead of; this means that if either is set to default the > status-style colour will be used. To fix, replace status-bg default > with status-style bg=default. This commit fixes the issue by applying the suggestion. See: tmux/tmux#2645
`status-fg` and `status-bg` are now applied before `status-style` rather than instead of; this means that if either is set to `default` the `status-style` colour will be used. To fix, replace `status-bg` default with `status-style bg=default`. - tmux/tmux#2645
Hi @nicm, any update on a 3.2a release? |
@rfrancoise no I have not had time yet. |
we don't really need it (especially if it affects performance or isn't O(1) time), but i find the total number of matches to be an extremely helpful indicator—it immediately orients me and sets my expectations as to the usefulness of my search. i don't really care whether i'm on match 7 of 18, but i care to know there are 18 results and not 18,000 when i start pressing |
The total number of matches is already displayed currently (if it does not time out). Does that address your needs? I might have missed something here. I am planning to bring back the current match counter using a more efficient method which will not search the whole thing every time; just didn't get to it yet. Hopefully soon and then we can see how well it works. |
After upgrading from 3.1c to 3.2, mouse handling seems broken in my use case, which involves nesting (two levels) of tmux. Halp? |
If you do |
In outer tmux session, yes:
|
What does |
in both inner and outer tmux. |
Open a new issue please with logs from the inner tmux. |
Ok - how do I collect relevant logs? |
Thanks, and sorry for being dense and not looking that up myself. Issue raised, #2721 . |
@topcat001 Doh. 🤦♂️ Thank you. That's my bad since I haven't actually used 3.2 yet (I will unpin |
Hi, What is the most effective way to get #{...} expanded in the display-popup command? I'm trying to pass information about the current pane to the popup command, but I get literal Thanks EDIT: Solved with "run -C display-popup" . I just temporarily forgot how to nest all the quotes... |
You can use run -C which will expand formats in its argument.
…On Sat, 5 Jun 2021 at 03:42, David le Blanc ***@***.***> wrote:
Hi,
What is the most effective way to get #{...} expanded in the display-popup
command?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2645 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKI45CDGG5VUYD6WX62W3TRGFHTANCNFSM422ZE5IA>
.
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Ask or discuss any quick questions here about 3.2 please.
Bug reports please open a new issue with full information, see CONTRIBUTING.
The 3.2 CHANGES file is here.
As always, thanks to the many people who contributed to both this and to previous releases.
There are a lot of changes in this release, these are the most notable, for more see the CHANGES file:
How data is sent to control mode clients has been completely revamped to both be more fair with multiple panes and to prevent huge amounts of data being backed up; this feature is used by default when tmux is attached with the latest iTerm2 nightly builds.
Configuration file parsing has changed slightly: the contents of the new {} syntax introduced in 3.1 must now be valid tmux command syntax; and to allow formats to be annotated, strings given with quotes may now contain newlines (leading spaces and comments are stripped).
A new customize mode available with
C-b C
(C-b S-c
) which allows options and key bindings to be browsed and changed interactively.Support for extended keys offered by some terminals (xterm, mintty, iTerm2), see https://github.com/tmux/tmux/wiki/Modifier-Keys#extended-keys.
A
pane-border-lines
option to change the characters used to draw the pane border separators.How UTF-8 data is stored has been rewritten to reduce memory use for characters in the BMP.
The message log (
C-b ~
) has been changed to be per server instead of per client and to have some useful content.Client flags have been extended (
refresh-client -F
becomes-f
and also added forattach-session
andnew-session
), and aread-only
flag added (same as-r
toattach-session
).A new
active-pane
client flag that if given allows a client to have its own active pane for each window rather than being tied to the server's active pane.Improved
command-prompt
completion including showing a menu of completions.All style options can now be formats, for example the default
pane-active-border-style
now changes colour depending onpane_in_mode
andsynchronize-panes
.Search match count has come back in copy mode, as well as performance improvements and additional styles for marking of search terms.
Try
$XDG_CONFIG_HOME/tmux/tmux.conf
as well as~/.config/tmux/tmux.conf
.Window and pane hooks such as
window-layout-changed
andpane-exited
are now window or pane options instead of session options.copy-pipe
and friends can now be given with no arguments in which case they get the command from a newcopy-command
option. The default copy commands all now usecopy-pipe
. This makes it much easier to configurecopy-pipe
for all copy key bindings.Terminal detection and feature code has been rewritten. tmux now collects sets of related terminfo(5) capabilties together with sensible default values into named "terminal features" which makes them easier to configure via a new
terminal-features
option or-T
flag to tmux itself. tmux can detect and will automatically configure a number of common, modern terminal emulators.Support for per-client overlay popups with a new
display-popup
command. A popup is also used for ane
key binding in buffer mode to edit a buffer using the editor given in the neweditor
option (filled in from theEDITOR
orVISUAL
environment variables by default).DoubleClick
andTripleClick
mouse key bindings have changed so that only one is fired. Behaviour similar to the old double-click key binding is now available asSecondClick
. There are now default double- and triple-click bindings to copy a word or line, and a default middle-click binding to paste the top buffer.When a server socket is given with
-S
, it is now created with umask 177 rather than 117.Note the following known potentially-incompatible changes:
The {} syntax added in tmux 3.1 has changed so that the contents must follow the syntax of tmux commands.
The
DoubleClick
key binding is not fired on the way toTripleClick
; only one is fired. The newSecondClick
key binding behaves similarly to the oldDoubleClick
.status-fg
andstatus-bg
are now applied beforestatus-style
rather than instead of; this means that if either is set todefault
thestatus-style
colour will be used. To fix, replacestatus-bg default
withstatus-style bg=default
.The text was updated successfully, but these errors were encountered: