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
Persist custom tab title #225
Conversation
We might also want to consider setting it in a custom profile. For example, if I open a profile that automatically ssh's to a host, I might want that hostname in the tab title.
|
I like that idea @skipmeister123 (I remember seeing it before |
I think we should also provide a way to go back to shell controlled titles. Right now if you don't put in anything you see no title at all. We should handle empty strings by setting Title to Terminal.FallbackTitle and set _customTitlte to false. |
I'm going to try to articulate a less than fully formed thought, so bear with me.
I would prefer to set my *tab* title with `precmd() {print -Pn "\e]0;%(4~|%-1~/…/%2~|%4~)\a"}`... but I would also like to have my *window* title be the full command that's running. (I have my tabs on the bottom for this exact reason.) Currently, there's no way to do that, as the window title is always equal to the tab title. I recall having the ability to do this in iTerm2.
So, that'd be a feature request.
But building on that thought, if the *window* title and the *tab* title were separate entities, if the tab title was empty, you could simply use a truncated version of the window title. Make sense?
|
In light of @skipmeister123's comment I did this a little bit different, but when you set the title to
So basically what you want is that the application title is/can be different from the tab title? I tried to add something like that to this PR. However, I think this should be configurable in some sense, here are the different options I can think of:
Thoughts? I'm willing to implement this (including configuration) but I think it is out of scope for this PR. 1: I tested it from before #220 and rebased to |
Okay @skipmeister123, then I understood correctly and that should be the current behaviour. But I still think it should be configurable. |
Fixed some minor issue where ApplicationView.Title (displayed in Windows Taskbar) was not in line with the tab title. From what I understand we would need to to the following to make @skipmeister123 happy:
|
Ah, I figured the ApplicationView.Title was the WindowTitle
Does that also mean that ApplicationView.Title is synced with TabTitle or ShellTitle? Other than that that seems right to me For me this PR is ready to merge @felixse, although I cannot use it myself due to #220 |
There is an issue where the title reverts back to default right after I enter any command even after I have set it to be 'xyz' |
@danilocode are you talking about the ApplicationView.Title (what you see in the Windows taskbar) or the tab title in FluentTerminal itself. And in case of the latter, do you have a single tab or multiple tabs. Also, do you have "Always show tabs" enabled? |
@danilocode Are you using the released version or did you build from current master? |
Thanks for the prompt reply, I was out for a few weeks and could not follow up @felixse I am using released version besides great job guys, I really like using this terminal. And I really hope UWP can support administrative tasks as well in future |
No problem. Are you currently running the latest version ( |
As I described in this comment some processes would overwrite the custom tab title set by the user. Should be fixed with these small changes😃
Implementing and testing this made me think that we may consider adding a feature to unset the custom title? Not sure how useful that would be though🤔