folderbar-path

Have a suggestion for "Everything"? Please post it here.
Post Reply
meteorquake
Posts: 523
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: 5517
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: 523
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: 17153
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: 5517
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: 523
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
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: folderbar-path

Post by void »

Everything 1.5.0.1384a adds the $foldersidebarselection: and $directory: variables.

Multiple selected items are separated with a semicolon (;)
meteorquake
Posts: 523
Joined: Thu Dec 15, 2016 9:44 pm

Re: folderbar-path

Post by meteorquake »

I didn't have any luck using this in a custom column, I tried a few permutations - how would one use it in the format of -

addcolumn:a a:=.........

Many thanks! David
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: folderbar-path

Post by void »

$foldersidebarselection: and $directory: are statusbar and title format variables. Not custom column variables.

I will consider custom column variables.
Thank you for the suggestion.
Post Reply