Add Columns : Shortcut Target variants & a normal path variant

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

Add Columns : Shortcut Target variants & a normal path variant

Post by meteorquake »

Along with the column "Shortcut Target" that can be added, it would be very handy to have readily available -

Shortcut Target (File Name) - just the final file name (which may be a folder) - e.g. Underwater Basket Weaving for Mermaids.pdf

Shortcut Target (Parent Name & File Name) - e.g. Atlantis\Underwater Basket Weaving for Mermaids.pdf

Shortcut Target (Parent) - e.g. Atlantis\

I think there's a need for Parent Name & File Name for the ordinary path too.

Hopefully the utility of these should be obvious :)

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

Re: Add Columns : Shortcut Target variants & a normal path variant

Post by void »

Shortcut Target (File Name):

*.lnk addcolumn:a a-label:"Shortcut Target (File Name)" a:=BASENAME($shortcut-target:)


Shortcut Target (Parent Name & File Name):

*.lnk addcolumn:a a-label:"Shortcut Target (Parent & File Name)" a:=BASENAME(PATH_PART($shortcut-target:)).."\"..BASENAME($shortcut-target:)


Shortcut Target (Parent) - e.g. Atlantis\

*.lnk addcolumn:a a-label:"Shortcut Target (Parent)" a:=BASENAME(PATH_PART($shortcut-target:)).."\"




Formulas
meteorquake
Posts: 495
Joined: Thu Dec 15, 2016 9:44 pm

Re: Add Columns : Shortcut Target variants & a normal path variant

Post by meteorquake »

It can be calculated with a bit of thought (I'll use what you just gave!)

I'm thinking it will be useful generally to users to have it available to add. One of the problems everywhere with paths is that they are left-aligned and long and the critical part is often the right-hand end.

Perhaps another solution to all these path problems is to provide right-align ability, so you click a column title and choose a menu "Right-Align".

David
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add Columns : Shortcut Target variants & a normal path variant

Post by void »

I will consider various built-in shortcut-target properties.
Thank you for the suggestion.



To right align custom columns, include the following in your search:

a-align:right
meteorquake
Posts: 495
Joined: Thu Dec 15, 2016 9:44 pm

Re: Add Columns : Shortcut Target variants & a normal path variant

Post by meteorquake »

a-align:right
I see has a critical shortcoming in that when the column width is too small, it truncates with ... on the right but for text items to be useful I would want it to truncated on the left, so that it can be used to always see the end of a name or path.

* Is there a way of doing left-truncation (to column width, that may be resized)?

Many thanks :) D
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add Columns : Shortcut Target variants & a normal path variant

Post by void »

* Is there a way of doing left-truncation (to column width, that may be resized)?
Currently, no.

I will consider such an option.
Thank you for the suggestion.
Post Reply