Long Filename Issue

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
steverance
Posts: 30
Joined: 16 Nov 2022 23:52

Long Filename Issue

Post 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?
To see the attached files, you need to log into the forum.

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

Re: Long Filename Issue

Post 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.

steverance
Posts: 30
Joined: 16 Nov 2022 23:52

Re: Long Filename Issue

Post 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"?

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

Re: Long Filename Issue

Post by admin »

Follow up here...

steverance
Posts: 30
Joined: 16 Nov 2022 23:52

Re: Long Filename Issue

Post 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.
To see the attached files, you need to log into the forum.

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

Re: Long Filename Issue

Post 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.

steverance
Posts: 30
Joined: 16 Nov 2022 23:52

Re: Long Filename Issue

Post by steverance »

Understood - The option the operators wanted was the useful "Selection Stats" ... but is only present for folder 03 and up.

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

Re: Long Filename Issue

Post by admin »

To invoke this menu for the current file list selections you can use this script line:

Code: Select all

popupnativecontextmenu;

steverance
Posts: 30
Joined: 16 Nov 2022 23:52

Re: Long Filename Issue

Post 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.

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

Re: Long Filename Issue

Post 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.

steverance
Posts: 30
Joined: 16 Nov 2022 23:52

Re: Long Filename Issue

Post by steverance »

"Hold Ctrl to show the native context menu" - That put a smile on a few faces around here! - Thank you.

steverance
Posts: 30
Joined: 16 Nov 2022 23:52

Re: Long Filename Issue

Post 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.
To see the attached files, you need to log into the forum.

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

Re: Long Filename Issue

Post 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.

steverance
Posts: 30
Joined: 16 Nov 2022 23:52

Re: Long Filename Issue

Post 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.

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

Re: Long Filename Issue

Post 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.

Post Reply