Page 1 of 1

List View does not show the complete file name

Posted: 15 Oct 2021 19:53
by Karthik
Hello.

In the "List View" mode (View -> Views -> List), file names are truncated for files with long names.

Here's an example screen shot.
Screenshot of the file name being truncated.
Screenshot of the file name being truncated.
XYplorer-Long-Filename.png (3.19 KiB) Viewed 1350 times
It looks like the width assigned is static & used for all the tabs. Also, the width used is the same width set/specified in the "Details View" mode (View -> Views -> Details).

IMO, for List View, the width should be calculated based on the length of the filename for all the files in that folder, every time you switch to a new folder.

Regards,
Karthik

PS: Thank you for the great app.

Re: List View does not show the complete file name

Posted: 15 Oct 2021 20:05
by highend
And that is done when "Configuration | Colors and Styles | Styles | Columns | Autofit the width of the Name column" is ticked (needs v22.30.0200)

Re: List View does not show the complete file name

Posted: 15 Oct 2021 22:04
by Karthik
Thank you very much for your response highend.

I moved to v22.30.0200, but the issue persists. Screenshot of configuration attached.
Configuration window.
Configuration window.
XYPlorer-Autofit-Name-Width.png (39.63 KiB) Viewed 1332 times
Any suggestions?

Re: List View does not show the complete file name

Posted: 15 Oct 2021 22:11
by highend
Show a full screenshot with that long file (with all column headers)

Re: List View does not show the complete file name

Posted: 16 Oct 2021 00:13
by Karthik
I assume you want the "Details View". Screenshot below.
Details View.
Details View.
XYPlorer-Details-View-1.png (8.85 KiB) Viewed 1297 times
However, after I switch to a different tab & switch back to this tab, it appears to have resized the Name column. But the column width is still not sufficient.
Details View after tab switch.
Details View after tab switch.
XYPlorer-Details-View-2.png (6.59 KiB) Viewed 1297 times
When I am in the "List View", the Name is not resized, even with the Autofit setting enabled.

Looks like there are 2 issues:
(1) Details View not adequately sizing the name column for very long filenames (it does that to some extent but not in all cases).
(2) Autosize setting not applying for the List View.

Hope this makes sense.

Re: List View does not show the complete file name

Posted: 16 Oct 2021 00:19
by highend
I wanted the full screenshot...

The name column is only resized up to that space that can be taken (which is not filled by all other existing columns) and I can't judge if that is what happens in your case because I can't see the right window border^^

Imho nothing else makes sense, columns shouldn't be pushed out of sight just because of an autosizing name column.

Re: List View does not show the complete file name

Posted: 16 Oct 2021 01:12
by Karthik
Ahhhh. That makes sense highend. My XYPlorer window was too narrow. When I made it wider, the autofit worked.

Well... it sort of worked, because it appears that logic used to calculate the column width for "List View" is the as that for the "Details View". ie, even though "List View" essentially has just the "Name" column, the width constraints used are the same is what is used for the "Details View", which is not intuitive.

It would be great if this is treated as a bug & fixed in the future release.

IMO, for List View, width assigned to filename should be calculated based on the length of the filenames for all the files in that specific folder, every time you switch to a new folder. With this implementation, if I navigate to a folder that has files with short filesnames, you can display more files in the visible area, since the width assigned would be smaller.

Thank you for your help. This makes XYPlorer more usable for me.

Re: List View does not show the complete file name

Posted: 16 Oct 2021 01:34
by highend
width assigned to filename should be calculated based on the length of the filenames for all the files in that specific folder, every time you switch to a new folder
That wouldn't make sense. You don't want to enter a folder with 100k files and wait until the longest file name length was calculated^^

Re: List View does not show the complete file name

Posted: 16 Oct 2021 04:16
by Karthik
highend wrote: 16 Oct 2021 01:34
width assigned to filename should be calculated based on the length of the filenames for all the files in that specific folder, every time you switch to a new folder
That wouldn't make sense. You don't want to enter a folder with 100k files and wait until the longest file name length was calculated^^
Fair enough. I will live with the current design. :) Thanks for your time.

Re: List View does not show the complete file name

Posted: 07 May 2023 08:04
by Karthik
The following does what I want.

Bring up XYPlorer Configuration.
Tools | Configuration

Ensure that Scripting is enabled.
Other | Features
Scripting = Checked

Navigate to the Custom Event Actions section.
General | Custom Event Actions

Navigate to the section that handles folder browsing.
Changing Locations | After browsing a folder

Instruct XYPlorer to execute a script when navigating to a new folder.
Action = Run Script
Script = #372

Save the settings.

#372 is the Command ID for View | Columns | Autosize Columns Now.
You can confirm this by enabling Command IDs on menus (Help | Command IDs on Menu = Checked) & then navigating to View | Columns & look for the ID next to "Autosize Columns Now".

Re: List View does not show the complete file name

Posted: 12 May 2023 12:47
by admin
There is no bug.

Re: List View does not show the complete file name

Posted: 12 May 2023 15:16
by Karthik
Agreed that there is no bug. Posting a reply, in case others find ti useful.