Repository navigation
Setting Tab Title and lua global variables #2983
sboesebeck
started this conversation in
General
Replies: 1 comment 2 replies
|
What's happening here is that So when you do: wezterm.GLOBAL.tab_titles["T0"]="Test"it's conceptually equivalent to: temp = copy(wezterm.GLOBAL.tab_titles)
temp["T0"] = "Test"and doesn't update the global. Using distinct read, modify and then write steps should work, like shown in #1598 (comment): local current_titles = wezterm.GLOBAL.tab_titles
current_titles[tab_id] = title
wezterm.GLOBAL.tab_titles = current_titlesIt is possible to do some work to make that referencing work, but it's a bit tricky because |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am trying to get the different workarounds mentioned here running somehow - but how can I change a value in the GLOBAL-Table called
tab_titlesat runtime?it seems like, when doing it via the debug overlay, it won't be written?
This is the code in my wezterm.lua:
when opening the debug overlay, this happens:
EDIT: the function
set_tab_titlefrom @wez did not work for me at all. This method at least changed the namesif there is a better solution to rename tabs, this is of course obsolete...
Also: can we call those methods from "extern" - like when opening a new Tab run that lua to change the tab name?
All reactions