folderbar-path

Have a suggestion for "Everything"? Please post it here.
Post Reply
meteorquake
Posts: 495
Joined: Thu Dec 15, 2016 9:44 pm

folderbar-path

Post by meteorquake »

I couldn't spot it, I wonder if there could be a variable representing the folder bar path, zero-length when not active?
It would be useful to show the path of files relative to the folderbar. Perhaps other uses people will think of.
Ideally there could be an in-built column called Rel Path that did this, since it would be of general use - the left hand part of path is always redundant for the section that matches the selected folder bar path, which can be considerable. I'd probably have it in use permanently.
I'm not sure what would be easiest to implement.
Many thanks! David
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: folderbar-path

Post by NotNull »

meteorquake wrote: Thu Jul 04, 2024 9:06 pm I'm not sure what would be easiest to implement.
Easiest would be to use the existing ways to format either tab,statusbar or window caption format (you didn't mention which one).

Based on all your contributions in title formatting topics, I guess you can get it completely or largely working with the following hints:

From the Window Title Format thread:
Take a closer look at $directory:

That thread also contains a link to the Everything Preprocessor.
From these functions, [stem:] should get the job done.

If that isn't enough, report back how far you got.


@void:
Window Title Format Title Formatting does not yet mention Tabs and Statusbar.
meteorquake
Posts: 495
Joined: Thu Dec 15, 2016 9:44 pm

Re: folderbar-path

Post by meteorquake »

I think the equivalent there would be $directory:
However it doesn't work as a column variable. But maybe a column variable could be named the same for consistency.
The idea is to have relative paths showing as a column rather than in the status bar, so I can see them against all the files, otherwise you just see part of the folderbar path, which you know anyway, and not the relative bit.
Ideally as a view-column, because I can't imagine a time I wouldn't want it on :)
David
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: folderbar-path

Post by void »

Do you mean a variable representing the folder sidebar selection?

I will consider a variable to do this.
Thank you for the suggestion.


@void:
Window Title Format Title Formatting does not yet mention Tabs and Statusbar.
I have added the following notes to 'Window Title Format':
Tabs share the same title format with the advanced setting: tabs_title_format
Status Bar Format

There are some shared variables between the two, for example: window/tab states.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: folderbar-path

Post by NotNull »

Yes, sorry, I meant $directory: .. (changed it in the post above)

Ok .. that is something completely different from what I got from you message ..
meteorquake
Posts: 495
Joined: Thu Dec 15, 2016 9:44 pm

Re: folderbar-path

Post by meteorquake »

Many thanks void!
In the case of multiple folders selected in the sidebar, the variable would need to either be the longest common folder path (ideally) or zero length. (I'm sure you'll have envisaged that scenario and just need to pick up on the existing calculation.)
David
Post Reply