Page 1 of 3

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

Posted: 21 Jul 2021 10:13
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).

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

Posted: 21 Jul 2021 10:42
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...

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

Posted: 29 Jul 2021 19:38
by admin
1) Interesting idea.

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

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

Posted: 29 Jul 2021 19:50
by highend
Cool, will use that myself^^

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

Posted: 30 Jul 2021 09:41
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";

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

Posted: 30 Jul 2021 09:43
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

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

Posted: 30 Jul 2021 09:44
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.

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

Posted: 30 Jul 2021 09:49
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.

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

Posted: 30 Jul 2021 09:56
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?

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

Posted: 30 Jul 2021 10:52
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.

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

Posted: 31 Jul 2021 18:02
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.

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

Posted: 31 Jul 2021 22:08
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.

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

Posted: 31 Jul 2021 22:19
by highend
Looking forward to it!
The beta with that tweak is already out...

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

Posted: 02 Aug 2021 09:14
by rhoelzl
Just installed the beta and set "ListAutoMaxNameColumn=1" in the config file.

But nothing happens. What am I doing wrong?

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

Posted: 02 Aug 2021 09:21
by admin