You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a keybind to rename active tab title as described in here and am trying to make the plugin pick the custom renamed title.
Then, made a change in the format-tab-title event handler to get the custom title using tab:get_title() instead of tab.active_pane.title. I am getting this unexpected output.
lmk if you have inputs on what I might be doing wrong. Thanks!
After change: ("nani" was set using the keybind that uses tab:set_title(line))
Original:
The text was updated successfully, but these errors were encountered:
I wanted to have the abiltiy to hide or show inactive tabs and I found your proposal, so I decided to combine them 😄
You can include it in your PR if the author thinks it's a good idea.
localfunctionhide_or_display_inactive(tabtitle)
ifnottab.is_activeandC.tabs.hide_inactive.enabledthenreturn""endreturntabtitleendlocaltabtitle=tab.tab_titleif#tabtitle>0thenifnotC.tabs.hide_inactive.ignore_renamedthentabtitle=hide_or_display_inactive(tabtitle)
endelsetabtitle=hide_or_display_inactive(tab.active_pane.title)
end
I have the following config structure in mind, but we can change it to something else if it makes more sense:
I added a keybind to rename active tab title as described in here and am trying to make the plugin pick the custom renamed title.
Then, made a change in the
format-tab-title
event handler to get the custom title usingtab:get_title()
instead oftab.active_pane.title
. I am getting this unexpected output.lmk if you have inputs on what I might be doing wrong. Thanks!
After change: ("nani" was set using the keybind that uses
tab:set_title(line)
)Original:
The text was updated successfully, but these errors were encountered: