Skip to content
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

Renaming window titles #430

Open
Fan-iX opened this issue Sep 25, 2023 · 12 comments
Open

Renaming window titles #430

Fan-iX opened this issue Sep 25, 2023 · 12 comments
Labels
enhancement New feature or request keyboard UX User Experience

Comments

@Fan-iX
Copy link

Fan-iX commented Sep 25, 2023

I can change the title of a terminal window by setting the xterm title using echo -ne "\e]0;some title\007", so that I can distinguish between different terminal windows.
Is it possible to rename (preferably edit) other windows like Tile Manager? Now all tiling windows are shown as "Tiling Window Manager" so that I cannot distinguish them clearly before I activate them.

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Sep 25, 2023

Indeed, we need to add the ability to edit window titles in the list of windows in the taskbar or in the window itself.

o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 8, 2023
o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Oct 8, 2023
@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Oct 18, 2023

I implemented renaming the tile manager title using the window menu button. By clicking on this button, the window title changes using the clipboard:

Terminal.Dev.2023-10-18.21-37-45.mp4

@o-sdn-o o-sdn-o added enhancement New feature or request UX User Experience keyboard labels Jan 14, 2024
@mlopezgva
Copy link

mlopezgva commented Dec 13, 2024

Hi!

Doesn't work for me. Edit: tried with primary and secondary (aka ‘*’ and ‘+’).

Using vtm on wezterm on Linux Mint Cinnamon. that would be most interesting.

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Dec 13, 2024

Hi! On Unix-like systems there is no direct access to the system clipboard yet, and you may need to copy text inside vtm first to get the text into vtm's internal clipboard.

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Dec 13, 2024

If this approach doesn't work, then maybe I broke something and I'll fix it.

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Dec 13, 2024

In the upcoming release, it will be possible to do this using a keyboard shortcut. The keyboard shortcut can be specified in the settings.

@mlopezgva
Copy link

Hi! On Unix-like systems there is no direct access to the system clipboard yet, and you may need to copy text inside vtm first to get the text into vtm's internal clipboard.

This one works. Just type what I want on the shell and copy it directly. Thanks.

Any way to rename "Site" 'apps'? Right now they're not very useful if I do not know what they "contain". 😉

I gather it's not possible to launch, say, btop, htop or mc directly in their own "window", since they do not create the tty..?

Launching them (like I'd do with tmux -n TOP btop), even in a tile app, would be most interesting. But that's out of the scope of this issue... 👼

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Dec 16, 2024

Any way to rename "Site" 'apps'? Right now they're not very useful if I do not know what they "contain". 😉

Right clicking on 'Site' (click by the frame itself) will set its title using the internal clipboard.

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Dec 16, 2024

I gather it's not possible to launch, say, btop, htop or mc directly in their own "window", since they do not create the tty..?

Launching them (like I'd do with tmux -n TOP btop), even in a tile app, would be most interesting. But that's out of the scope of this issue... 👼

Oh, I see now that the script engine has been broken for some time now and it is impossible to launch anything through it. I will fix it in upcoming release v0.9.99.56.

With vtm v0.9.99.56 you can do the following:

Run a CUI application inside the running vtm desktop:

  • bash:
    printf "vtm.run(title='MC' cmd='mc')" | vtm
    

Run the tile app with three terminals attached:

  • bash:
    printf "vtm.run(type=tile title=Terminals cmd='v(h(Term,Term),Term)')" | vtm
    

Run mc and htop inside the tile app:

  • bash:
    printf "vtm.set(id=mc title='MC' cmd='mc')" | vtm
    printf "vtm.set(id=htop title='HTop' cmd='htop')" | vtm
    printf "vtm.run(type=tile title=Windows cmd='v(h(mc,htop),mc)')" | vtm
    
    or
    printf "vtm.set(id=mc title='MC' cmd='mc'); vtm.set(id=htop title='HTop' cmd='htop'); vtm.run(type=tile title=Windows cmd='v(h(mc,htop),mc)')" | vtm
    

image

@o-sdn-o o-sdn-o mentioned this issue Dec 16, 2024
@Fan-iX
Copy link
Author

Fan-iX commented Dec 18, 2024

Hi, I can't get the script engine to work correctly in my Ubuntu-22.04 WSL system. vtm.run(type=term cmd=...), vtm.run(type=dtvt cmd=...) and vtm.run(type=term, cmd=...) all create a blank window on the vtm desktop, no matter what cmd I give.
image
However, vtm.run(type=tile) work as expected.

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Dec 18, 2024

Apparently type=term is broken somewhere. I'll fix it. As a workaround you can try using type=terminal instead. Thanks for the feedback.

o-sdn-o added a commit to o-sdn-o/vtm that referenced this issue Dec 19, 2024
@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Dec 19, 2024

This issue affected all cases where the cwd= parameter was used (including implicitly, as in the case of vtm.run(...)). The message about a successful change of the current directory was written in plain text to the dtvt binary stream, thus breaking communication.

Fixed in v0.9.99.58.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request keyboard UX User Experience
Projects
None yet
Development

No branches or pull requests

3 participants