Page 1 of 1
Long Filename Issue
Posted: 15 Dec 2022 20:01
by steverance
I'm trying to make XYPlorer autofit the "name" column for some files I have with long file names.
Long-File-Names-Column-Width.jpg
In the top pane the name column is autofitted (also tried with Control numpad +)
The bottom pane is a manual column adjustment which is how I would like it displayed.
I have tried changing the relevant options in configuration->Styles->Columns.
One flaw I think I have found is changing the "Autosize name column minimum width (0=unlimited)" field from 200 (the default) to any value will not highlight the "Apply" button (all other fields do) ... so I'm thinking this particular parameter is being ignored?
Can you please confirm?
Re: Long Filename Issue
Posted: 15 Dec 2022 20:11
by admin
1. Flaw confirmed (but it doesn't mean the parameter is being ignored). Fix comes.
2. The setting is called "Configuration | Colors and Styles | Styles | Columns | Autosize columns maximum width (0 = unlimited)" and this is another flaw, because it not unlimited but limited to 1000 pixels. Fix comes.
3. To have columns wider than 1000 you have to enter a value larger than 1000.
Re: Long Filename Issue
Posted: 15 Dec 2022 20:22
by steverance
Thank you - This will keep our operators happy.
I have seen some other issues with long file names - Would you prefer I follow up here or create a "New Topic"?
Re: Long Filename Issue
Posted: 15 Dec 2022 20:45
by admin
Follow up here...
Re: Long Filename Issue
Posted: 15 Dec 2022 21:56
by steverance
Let's start with this one ... Here is the layout of my test folders ... The right click menu issue appears wrong in both in the Tree or the Lists and has happened in a "real" environment with different folder names.
Right-Click-Folder-Tree.jpg
Right clicking on the folder starting with "02" will produce the menu shown below ...
Right-Click-On-02.jpg
Right clicking on the folder starting with "03" will produce a different menu.
Right-Click-On-03.jpg
You will also notice we use a custom folder icon ... this is not displayed in the breadcrumbs in the last image above, it shows the default icon. This may be a coincidence.
Re: Long Filename Issue
Posted: 15 Dec 2022 22:01
by admin
The shell context menu and shell custom folder icons are provided by the Windows shell, and this is limited to 259 characters for the full path. Can't do anything about it.
But XY allows you to define your own custom icons and gives you all the commands you could ever want. So you don't really need the Windows shell, but can use the open space of possibilities that is offered by NTFS.
Re: Long Filename Issue
Posted: 15 Dec 2022 22:11
by steverance
Understood - The option the operators wanted was the useful "Selection Stats" ... but is only present for folder 03 and up.
Re: Long Filename Issue
Posted: 16 Dec 2022 11:31
by admin
To invoke this menu for the current file list selections you can use this script line:
Re: Long Filename Issue
Posted: 16 Dec 2022 19:00
by steverance
Many thanks - I'm just learning the scripting features now ...
I see the original issue in this topic (long file name auto column width) has been fixed in 23.80.301 - Thank you.
Re: Long Filename Issue
Posted: 16 Dec 2022 19:14
by admin
Inspired by your question, today's beta has a new way without scripting:
Code: Select all
v23.80.0301 - 2022-12-16 17:25
+ Configuration | General | Menus, Mouse, Usability | Context Menus: Added option
"Hold Ctrl to show the native context menu". Tick it to replace the shell context
menu by a lightning fast native one when you hold the Ctrl key down while
right-clicking an item. Works in tree and list.
In the list, this setting overrides "Hold Ctrl to show cell context menu" for the
Name column (which is pretty much the only reason this is optional and not hardcoded
out of the box).
By the way, this has worked in the tree by default already since v21.50.0137 -
2021-03-10 12:02. Now the new option needs to be checked.
Re: Long Filename Issue
Posted: 16 Dec 2022 20:33
by steverance
"Hold Ctrl to show the native context menu" - That put a smile on a few faces around here! - Thank you.
Re: Long Filename Issue
Posted: 16 Dec 2022 22:06
by steverance
Another long path/file name observation.
This image shows a few long folder names and some long file names.
Empty-Zip-No-Error.jpg
The top pane shows a folder, the bottom pane shoes the contents of the folder.
If I right click and "Send to | Compressed (zipped) folder" - No error message and no zip file. (may be to be expected due to Windows)
If I right click and "Zip | Add to Zip ..." - an empty Zip file is created without any error message.
My only point here is it would be nice for XYP to give some kind of warning/error for its own internal Zips. I'm not expecting a fix.
Re: Long Filename Issue
Posted: 17 Dec 2022 09:45
by admin
That "Send to | Compressed (zipped) folder" command is completely owned by the shell, I cannot intercept it to show any messages.
I suggest you stop zipping with the shell and instead use an app like 7Zip or WinRAR (both of which integrate with XYplorer's zip commands). These apps have no problem with paths longer than 259 characters.
Re: Long Filename Issue
Posted: 21 Dec 2022 17:49
by steverance
That's fine, I thought the "Zip | Add to Zip" context menu was owned by YXP and would therefore would be able to inform the user that this feature was not available due to the path/file length.
Re: Long Filename Issue
Posted: 21 Dec 2022 18:06
by admin
Indeed, the "Zip | Add to Zip" route is owned by XY, and in the meantime I added a warning message here about overlong filenames.
BTW, I was a bit optimistic about the integration of WinRAR and 7Zip. You currently can integrate the extraction part (Zip | Extract Here), but not the adding to a zip.