Add a clickable button to status bar · Issue #3652 · tmux/tmux · GitHub
source link: https://github.com/tmux/tmux/issues/3652
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Comments
How to add a Thanks! |
This is an interesting proposal, mostly because you can create custom user experiences that are more accessible. For example, in a mobile environment such as a phone or tablet, you could in theory create a completely tactile experience with an Application such as Termux. In the aforementioned application, I just touch to navigate between windows in Tmux. |
Member
You could change |
Author
@nicm I know I can't add buttons now, that's why I filed this issue. Please allow us to do it, probably using a plugin. |
@nicm couldn't this be considered a feature request, and something that can be added to https://github.com/tmux/tmux/wiki/Contributing ? There seems to be an instance at least (sixel) where you start with a hard no, and then you soften up to the idea. Is there another preferred channel to discuss suggestions like this one? I was thinking of having a simpel "+" next to the current Window "tab", to adda a new one ( useful when mouse support is on ). By the way, as a fun fact: I see #1613 which had some ongoing conversations and was locked, then unlocked by tmux just to be auto locked again. Shouldn't issues referenced in https://github.com/tmux/tmux/wiki/Contributing remain open for follow-up? Update: What an interesting read: csdvrx#1 |
Member
It could be added to contributing but it isn't much of a feature request. What would it look like in practice? How would the buttons be configured? etc I did not say no to this in any way. |
@nicm thank you for clarifying, to get started here is a suggestion for the "New Window" button, that showing how it looks in unstyled and styled tmux. In terms of configurations, it could be a declaration inside "status-left", similar to how you can add
|
Author
@MarioRicalde This is how I'd imagine this, thanks for the mock-up. @nicm Is it at least possible to get the character under the mouse cursor in the |
@nicm is there anything else I can do to help in terms of visuals? |
Clicking + to add a new window could be achieved if PR #3641 tries to allow |
Member
I could imagine how it would look already :-). I need to think about how it would work... I think we should extend the |
The problem with SIXEL (and to a lesser extent images in general) is that it doesn't always work that well, there aren't that many terminals that support it, and it is a significant amount of work that I don't personally care about very much, so it needs someone who does to move it forward and generate a bit of enthusiasm. So far nobody has taken that on and stuck with it. If you want to get involved, @topcat001 has been working on it recently and the branch works for simple use cases - see https://github.com/orgs/tmux/discussions/3565. I think if we got a slighly nicer placeholder (even just a box with |
Please try this: tmux-new-ranges.diff.txt This adds three new range types: It also adds two new format variables: Here is an example which adds two new status lines, one with a couple of user ranges and one with the sessions:
And an example which adds an
Adding a There are a few bits of further work:
@faustind please review and test also since this will work instead of your |
Contributor
I'll merge a small update with a filled in placeholder soon to the |
Thank you @nicm Screen.Recording.2023-08-17.at.22.52.25.mov |
Member
Great, this has been working for me also, so I have applied it now. It will be in GitHub later on when it syncs. Let me know if you see any problems. Thanks! |
Author
Thanks @nicm! I've appended
UPDATE: I'm using it in my project Carbonyl Terminal: |
I tried cat'ing a sixel image with master tmux branch that enabled sixel support (configured with |
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK