Make "name" column automaticall use all space unused by other columns

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

Make "name" column automaticall use all space unused by other columns

Post by rhoelzl »

Is it possible to set XY up in such a way, that all columns except the "Name" column always have autosized width, and all the remaining space is always used by the "Name" column?

I know about the "Adaptive Name Column Width" feature, but as far as I understand that still requires initially setting up the desired widths by hand. (Also, this feature has recently produced odd behaviours on my PC; I keep getting absurdly wide "Name" columns; I have not recognized a patten yet, when this happens; will keep observing).

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Make "name" column automaticall use all space unused by other columns

Post by highend »

Afaik not. At least not if you don't want to let the name column jump two times on each folder change (1. autosize + 2. set to the maximum available width)

@Don
Would it be possible to allow the setcolumns() command to autosize specific columns only?

Something like:
setcolumns("Modified", 4+16);

Which would only autosize "Modified" and not all...
One of my scripts helped you out? Please donate via Paypal

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

Re: Make "name" column automaticall use all space unused by other columns

Post by admin »

1) Interesting idea.

2) setcolumns() ... probably can make it do that. Tomorrow...

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Make "name" column automaticall use all space unused by other columns

Post by highend »

Cool, will use that myself^^
One of my scripts helped you out? Please donate via Paypal

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

Re: Make "name" column automaticall use all space unused by other columns

Post by admin »

highend wrote: 29 Jul 2021 19:50 Cool, will use that myself^^
You mean 2)?

I think it would be clearer to add a new command for it:
autosizecolumn "Modified";

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Make "name" column automaticall use all space unused by other columns

Post by highend »

Yeah, the second part.
I think it would be clearer to add a new command for it
Let it accept multiple columns at once please and maybe rename it to autosizecolumns then
One of my scripts helped you out? Please donate via Paypal

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

Re: Make "name" column automaticall use all space unused by other columns

Post by admin »

Conc 1) ( Make "name" column automatically use all space unused by other columns)

Needs some more thinking. I've put it on my list.

rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

Re: Make "name" column automaticall use all space unused by other columns

Post by rhoelzl »

admin wrote: 30 Jul 2021 09:44 Conc 1) ( Make "name" column automatically use all space unused by other columns)

Needs some more thinking. I've put it on my list.
Awesome, thanks.

I think for me this would be the method I would always use:

Because depending on the folder view, I have different columns enabled. But all of the ones I use contain more or less fixed width content (date, file size, mp3 track #, etc.) that I need to see in full for it to have any informational value. So autosize would be the correct thing for them. And then all the remaining space should be used for name obviously, especially since file names can have VERY different length, unlike the data in the other columns.

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

Re: Make "name" column automaticall use all space unused by other columns

Post by admin »

Questions to answer:

1. What if the remaining space becomes very small or even negative? So I guess a minimum width for the Name column has to be defined.

2. What if the remaining space becomes very large? The result might look funny or hard to read. So maybe also a maximum width for the Name column has to be defined.

3. What if the list is resized? Auto-size the Name column with it in real-time?

rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

Re: Make "name" column automaticall use all space unused by other columns

Post by rhoelzl »

admin wrote: 30 Jul 2021 09:56 Questions to answer:

1. What if the remaining space becomes very small or even negative? So I guess a minimum width for the Name column has to be defined.

2. What if the remaining space becomes very large? The result might look funny or hard to read. So maybe also a maximum width for the Name column has to be defined.

3. What if the list is resized? Auto-size the Name column with it in real-time?
1. Yes, probably useful.

2. Not relevant for me (I don't have such a giant screen, and I actually like it visually if all the meta data always is neatly arranged at the right side of the window) but probably useful for some people.

3. If by "auto-size the Name column" you mean "always update the width of the Name column so that at any given moment it uses whatever space is left" then yes that would be great.

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

Re: Make "name" column automaticall use all space unused by other columns

Post by admin »

I implemented this now as a tweak, and I have to say: Great feature! :tup: Works smooth and feels natural and easy to understand. Next beta...

It's also probably better than "Configuration | Colors and Styles | Styles | Columns | Adaptive name column width" which I might even drop in favor of the new feature.

rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

Re: Make "name" column automaticall use all space unused by other columns

Post by rhoelzl »

Awesome, thank you! Looking forward to it!
admin wrote: 31 Jul 2021 18:02 It's also probably better than "Configuration | Colors and Styles | Styles | Columns | Adaptive name column width" which I might even drop in favor of the new feature.
Yes, I agree. The old version was always just the "second best" solution.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Make "name" column automaticall use all space unused by other columns

Post by highend »

Looking forward to it!
The beta with that tweak is already out...
One of my scripts helped you out? Please donate via Paypal

rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

Re: Make "name" column automaticall use all space unused by other columns

Post by rhoelzl »

Just installed the beta and set "ListAutoMaxNameColumn=1" in the config file.

But nothing happens. What am I doing wrong?

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

Re: Make "name" column automaticall use all space unused by other columns

Post by admin »


Post Reply