Option to display file path in title bar
Is your feature request related to a problem? Please describe. Option to enable displaying the currently opened file path in the title bar. I know about #1346 but it is not clear to me, why such a feature is not implemented. A lot of other text editors provide this feature, and it is in fact essential when comparing files with the same name.
I think I will make a PR to implement this. Just let me know if it would be accepted.
Describe the solution you'd like Display the path in the title bar.
Describe alternatives you've considered I know about the path in the info sidebar. But I don't want to have a side bar open which uses a lot of space just for that small info.
An issue is that the window title space with the toolbar is not wide enough to put the long file path. Likewise, the title space for tabbed windows. In addition, I want to avoid adding a new option to the settings as much as possible to keep the settings simple enough. On the other side, I understand your issue. Let me think...
How about something like Finder is doing: Expand on hover.
https://user-images.githubusercontent.com/12819635/215540673-730402c5-49f6-4b7a-b70f-9db4b1e2a130.mov
How about something like Finder is doing: Expand on hover.
That is exactly the standard behavior on the unified type toolbar presentation when the title is long. The issue there is the tail of the title text is truncated and it makes distinguishing between documents more difficult. It would be good if there were APIs to control the title string on expanded and truncated but not.
I currently think the way to display the document title in the Open Recent menu (without icons) is smart. It shows the parent folder only when there are multiple documents with the same name. I don't know if there is an easy way to implement it. Let me research.
A simpler solution would be to just hardcode clipping the path on the left side. So we always end up with something like this in the title bar: ...\path\to\file.txt
That should be easy to implement by just getting the available size in the title bar.
Let me know when you found something :)