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
It would be a nice enhancement for the title module to allow a format string that allows one to specify what to include in the "title." It has two parts, the file name and the app name. I often have to use long file names, and the app is usually obvious.
If I could set title.format="%f" to just display the file name, that would be great.
Also, when even that is too long, it is best to elide the name in the middle, as the first and last parts of the name are the most significant.
Maybe something like:
%f -- the file basename
%F -- the file full path name
%A -- the app name
Then, I could say
-p title.format="File: %f", or whatever.
Also, possibly:
-p title.elide_at=front|middle|end
to set where text will be replaced with title.placeholder if needed.
Thanks for the wonderful status line program, by the way.
The text was updated successfully, but these errors were encountered:
Unfortunately, I don't know if it's really possible, because the module just displays a single thing: The window title in exactly the way that i3 reports it. As far as I know, there's not a lot of structure to it, and it might differ from application to application.
So when you are saying "the app name" and "the file name", for example, that only exists for some specific applications (a text editor, I would imagine)
Because of that, I am not sure how feasible this request is.
There is a ' - ' separator between the two, I was thinking just a little regex jujitsu to pull the pieces apart. I'm an amateur, and when I'm amateuring I do it in Ruby, so my python skills are minimal, or I would offer to help!
Even if it's only works 99% of the time, it would be a nice feature.
And, yes, bumblebee-status is awesome. I ditched the rust status program for it!
Feature Request
It would be a nice enhancement for the title module to allow a format string that allows one to specify what to include in the "title." It has two parts, the file name and the app name. I often have to use long file names, and the app is usually obvious.
If I could set title.format="%f" to just display the file name, that would be great.
Also, when even that is too long, it is best to elide the name in the middle, as the first and last parts of the name are the most significant.
Maybe something like:
Then, I could say
-p title.format="File: %f", or whatever.
Also, possibly:
-p title.elide_at=front|middle|end
to set where text will be replaced with title.placeholder if needed.
Thanks for the wonderful status line program, by the way.
The text was updated successfully, but these errors were encountered: