Shortening Paths in "Path" column

Features wanted...
Post Reply
ColdNose
Posts: 36
Joined: 16 Jun 2017 09:21
Location: Win11, 3 monitors: (1) 1920x1200 @ 125%, (2) 3840x2160 @ 175%

Shortening Paths in "Path" column

Post by ColdNose »

In Paper Folders, Hot Lists, etc., where paths or the "Path" column are displayed, when XYplorer needs to truncate the path, it shows the lowest ("containing") folder name and then removes characters from the end of the path until the necessary width is met.

It would be nice (maybe as an option?) to just remove characters from the beginning of the path instead. The reason is that the characters at the start of the path ("c:\users\username...") are often useless/redundant information whereas characters/folders at the end of the path are more valuable.

For example, given the path:
c:\users\myname\documents\2024\budgets\july\client xyz

If I only want a Path column width of 40 characters, this is currently displayed:
c:\users\myname\documents\...\client xyz --> but valuable information is lost! :(

whereas this would provide more information: :)
...documents\2024\budgets\july\client xyz

admin
Site Admin
Posts: 65244
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Shortening Paths in "Path" column

Post by admin »

It's an idea. :tup: I'll add a tweak.

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Shortening Paths in "Path" column

Post by highend »

Can this be a gui option instead please?

I'd like to have this option as well but it's something that I need to switch depending on the current context...

For example in a search result that spans only a single folder I want to display only the right part of paths but once I do a search over multiple folders I need the left and right parts
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 65244
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Shortening Paths in "Path" column

Post by admin »

Okidoki.

autocart
Posts: 1356
Joined: 26 Sep 2013 15:22

Re: Shortening Paths in "Path" column

Post by autocart »

release log wrote:v26.20.0303 - 2024-07-22 11:31
+ List | Details view | Path column: Added the option to truncate displayed paths from
the beginning instead of the middle. To toggle it, hold down CTRL while right-clicking
on the Path column header and click "Truncate Paths from Beginning". Rocker-click
works as well.
viewtopic.php?p=222705&sid=96b2f901bf93 ... a8#p222705

I am not sure what I am doing wrong but the option "Truncate Paths from Beginning" does not appear in my context menu.
And yes, I did hold down Ctrl.
Attachments
path column menu.jpg
path column menu.jpg (51.17 KiB) Viewed 2667 times

admin
Site Admin
Posts: 65244
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Shortening Paths in "Path" column

Post by admin »

Impossible.

autocart
Posts: 1356
Joined: 26 Sep 2013 15:22

Re: Shortening Paths in "Path" column

Post by autocart »

I even tried it with a fresh instance.
Could you share a picture if how it should look like?

admin
Site Admin
Posts: 65244
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Shortening Paths in "Path" column

Post by admin »

Here:
Attachments
TruncatePathsMenu.png
TruncatePathsMenu.png (19.58 KiB) Viewed 2654 times

autocart
Posts: 1356
Joined: 26 Sep 2013 15:22

Re: Shortening Paths in "Path" column

Post by autocart »

Ok, it works as you stated.
The problem was that one of my AutoHotkey-Shortcuts somehow interfered with the Ctrl-Right-Click.
Thanks for helping me clear things up.

ColdNose
Posts: 36
Joined: 16 Jun 2017 09:21
Location: Win11, 3 monitors: (1) 1920x1200 @ 125%, (2) 3840x2160 @ 175%

Re: Shortening Paths in "Path" column

Post by ColdNose »

Thank you! This works perfect :party: Amazingly fast response also!! :appl:

Post Reply