Auto Size Name Column When Window Shrinks Smaller

Features wanted...
nuit
Posts: 9
Joined: 06 Mar 2008 01:22

Auto Size Name Column When Window Shrinks Smaller

Post by nuit »

I absolutely love Xyplorer and have it customized to the hilt. Typically, I run Xyplorer full screen with the name column using most of the screen real estate, however, when the Xyplorer window is reduced in size, the name column width doesn't shrink in unison which necessitates lots of scrolling to see the few important columns to the right.

Any chance of auto sizing the Name Column when the Window size is reduced?

Or, allowing a reduced windows size Name Column size to be saved?

FWIW, I played around with the Name Column auto-size setting. Didn't do the trick for my very wide name columns.

Thanks!

itsonlyme
Posts: 3
Joined: 25 Sep 2020 21:41

Re: Auto Size Name Column When Window Shrinks Smaller

Post by itsonlyme »

Hi,

I just registered, just to answer you (and perhaps doing more).
But I dont know if your request is already solved. If yes, just skip.

Your - and you are not the only one - request goes back to 2006: refer: "viewtopic.php?f=2&t=857&p=6559&hilit=autofit#p6559" and scroll to read the posts. You may also search for "autofit" in forum to get posts. It seems that it never has been done, for whatever reason, and no explanation also. I think, it is a mayor disadvantage of XY and a good reason to look elsewhere. If such a simple UI-thing isnt done ...
But anyway, perhaps a workaround may suit you:
1. Create an User-UDC | manage user-definied commands | run script: edit a new (run-)script with string: "while ($i < 80) {$i++; #374;};"
without the quotes(") and for n=80 or whatever you like.
What this does do is just repeating the command: "shrink name column".
2. Your new script gets a unique-number, e.g.: #1401. You'll find the "number" at right-bottom the udc(manage...)-screen. It should start with: "#14" (no-quotes).
3. Now place a User-Button (customize/configuration toolbar) on the toolbar and edit your button and enter for "on left click" string: "#1401" without quotes. #1401 is the number you figured out earlier. Save it.
4. If you now left-click the button in the toolbar the file-name column shrinks. If not, I dont know, scripting error, your version, os, cant help without contact.
5. You may also edit your user-button for right-click and there you can create your menu of actions you like: "grow name" "autosize" and so on. Its all the same at using the "#xxxx" ids.

But nevertheless:
AUTOFIT should be implemented just the way community described their needs.

Hope, this helps a bit, you may leave a reply, and dont be shy to criticize me.
uwe

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

Re: Auto Size Name Column When Window Shrinks Smaller

Post by admin »

Welcome to the club!

Fully agreed, Autofit would be absolutely useful (and I don't know why I did not add it in 2006). I'll give it a shot.

Don

nuit
Posts: 9
Joined: 06 Mar 2008 01:22

Re: Auto Size Name Column When Window Shrinks Smaller

Post by nuit »

itsonlyme, that's super kind of you to take so much time to register, document and reply with your perfect solution! I greatly appreciate your tremendous efforts and spent the evening implementing it. Works great! :-)

I'm an AutoHotKey enthusiast, so of course I had to create a unique mouse click (three right button clicks) to launch the name column shrink shortcut.

Thanks for the exposure to the Xyplorer script feature. I had seen if before but never dived in. Glad to know more about it now.

Thanks again!

I sent you a private message too.

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

Re: Auto Size Name Column When Window Shrinks Smaller

Post by admin »

Done. 8)

Only 14 years after the promise. Always at your service. :biggrin:

nuit
Posts: 9
Joined: 06 Mar 2008 01:22

Re: Auto Size Name Column When Window Shrinks Smaller

Post by nuit »

PERFECT! WONDERFUL! SENSATIONAL!
Ahhhhh, sound of relief! Thank you so much! That was really bugging me.

One observation, in the Styles settings, I think the checkbox description should say Autofit name columns since it only affects the Name column, otherwise, someone like me, may assume it applies to all columns and get frustrated when other wide columns don't automatically shrink. Figuring out exactly what the various settings actually do, and don't do and the implications, can be confusing and require lots of research.

DmFedorov
Posts: 680
Joined: 04 Jan 2011 16:36
Location: Germany

Re: Auto Size Name Column When Window Shrinks Smaller

Post by DmFedorov »

I ask you to think about the name of the new options in v21.10.0018:
Autofit columns
and
Autofit columns minimum width

I can understand it as Auto-shrink Name Column by shrinking file pane
...but autofit..and columns.. it's something else

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

Re: Auto Size Name Column When Window Shrinks Smaller

Post by admin »

How about "Flexible name column width"?

DmFedorov
Posts: 680
Joined: 04 Jan 2011 16:36
Location: Germany

Re: Auto Size Name Column When Window Shrinks Smaller

Post by DmFedorov »

admin wrote: 27 Sep 2020 08:41 How about "Flexible name column width"?
It doesn't fully explain everything, but it doesn't contradict what is being done.
It seems to me that "Resize file pane by resizing column name" more accurately describes what is happening.
But perhaps you will do something like this as a hint to this option.
--------
Perhaps later you will just auto-fit the width of the Name column.
in other words, the column width will change from the minimum to the maximum width of the name column content.
However, you can also limit this maximum width.
Then when you press F10, everything will be very beautiful.

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

Re: Auto Size Name Column When Window Shrinks Smaller

Post by admin »

"Resize file pane by resizing column name" ? :? No idea what you mean. :P

DmFedorov
Posts: 680
Joined: 04 Jan 2011 16:36
Location: Germany

Re: Auto Size Name Column When Window Shrinks Smaller

Post by DmFedorov »

Resize file-pane by means of resizing column name
or
Change the size of the file-pane by means of changing the size of the name column
or
when you change size of file-pane (when you resizing the list), the Name column changes it width so that all other columns keep their width and visibility

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

Re: Auto Size Name Column When Window Shrinks Smaller

Post by admin »

Well, I think "Flexible name column width" is good enough to create a rough idea in the user's mind. Good captions are catchy.

Gandolf

Re: Auto Size Name Column When Window Shrinks Smaller

Post by Gandolf »

No mention of the fact that window width, or navigation panel width, controls the name column width.

Flexible means capable of being changed, un-checking that option means the name column is fixed in width. That is not true since it can still be changed by dragging the column header.

Catchy captions are only good if they are true. Flexible name column width is not true.

Also, I loaded XY 21.10.0020 into a non-network laptop to see what it does.

Fresh install - no settings changed.

BUG:
Reduce name column width to a few pixels, showing three or four characters.
Change window or navigation panel width.
Name column width jumps to the minimum width set in configuration.

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

Re: Auto Size Name Column When Window Shrinks Smaller

Post by admin »

1) Have nothing better.

2) Have seen that. Tricky. I now opted to skip the auto-sizing when the column is smaller than minimal.

Gandolf

Re: Auto Size Name Column When Window Shrinks Smaller

Post by Gandolf »

Off the top of my head:
link name column width to pane width.
re-size name column width to pane width.
sync name column width to pane width.
adjust name column width to pane width.

You must make it clear that the width of the name column is related to the pane width.

Off to a video conference now - oh! the fun coronavirus is causing.

Post Reply