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
So after diving into the source for a bit, i found that one can not only set the custom config, but also custom hooks, and so I came up with this little snippet to set the window title to what the shell desires.
customCreateTermHook::TMState->Terminal->IO()
customCreateTermHook tmState vteTerm =do
void $ onTerminalWindowTitleChanged vteTerm $do
maybeTitle <- terminalGetWindowTitle vteTerm
let title = fromMaybe "shell" maybeTitle
tmState <- readMVar tmState
let win = tmState ^. lensTMStateAppWin
windowSetTitle win title
What I couldn't figure out yet is what callback to use to also set the window title to the current tab title when you change tabs. I'd be very thankful for any ideas regarding that.
Also I think the above config might be a good default. I think most other other terminal emulators behave this way.
The text was updated successfully, but these errors were encountered:
So after diving into the source for a bit, i found that one can not only set the custom config, but also custom hooks, and so I came up with this little snippet to set the window title to what the shell desires.
What I couldn't figure out yet is what callback to use to also set the window title to the current tab title when you change tabs. I'd be very thankful for any ideas regarding that.
Also I think the above config might be a good default. I think most other other terminal emulators behave this way.
The text was updated successfully, but these errors were encountered: