Page 1 of 1

Shortening Paths in "Path" column

Posted: 22 Jul 2024 03:43
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

Re: Shortening Paths in "Path" column

Posted: 22 Jul 2024 10:36
by admin
It's an idea. :tup: I'll add a tweak.

Re: Shortening Paths in "Path" column

Posted: 22 Jul 2024 10:53
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

Re: Shortening Paths in "Path" column

Posted: 22 Jul 2024 11:22
by admin
Okidoki.

Re: Shortening Paths in "Path" column

Posted: 23 Jul 2024 20:18
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.

Re: Shortening Paths in "Path" column

Posted: 23 Jul 2024 20:47
by admin
Impossible.

Re: Shortening Paths in "Path" column

Posted: 23 Jul 2024 20:50
by autocart
I even tried it with a fresh instance.
Could you share a picture if how it should look like?

Re: Shortening Paths in "Path" column

Posted: 23 Jul 2024 21:03
by admin
Here:

Re: Shortening Paths in "Path" column

Posted: 24 Jul 2024 08:54
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.

Re: Shortening Paths in "Path" column

Posted: 24 Jul 2024 15:59
by ColdNose
Thank you! This works perfect :party: Amazingly fast response also!! :appl: