Double click for resizing column

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
yuyuki
Junior Member
Junior Member
Posts: 8
Joined: 2010-12-09, 11:00 UTC

Double click for resizing column

Post by *yuyuki »

Hi,

First, hello every body.

Thank for this program, I use it every day.

I've a suggestion. Currently I use Total Commander 8.0.14 ß.

It would be great if we can adjust column's width to data when we double-click on header separator as in explorer in detail view.

Thank you,
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have indeed considered this, but it was causing problems with content plugins - it can take a long time to get all fields in large directories. Currently they are only loaded when shown.
Author of Total Commander
https://www.ghisler.com
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3896
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Well, what about taking just the shown entries in account?
This will be very fast, and I can quickly redo it if I find a not fitting entry later down the list.
#5767 Personal license
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

sqa_wizard wrote:Well, what about taking just the shown entries in account?
This will be very fast, and I can quickly redo it if I find a not fitting entry later down the list.
Big support++.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, that would be unexpected, all other programs which support this function take all items into account.
Author of Total Commander
https://www.ghisler.com
yuyuki
Junior Member
Junior Member
Posts: 8
Joined: 2010-12-09, 11:00 UTC

Post by *yuyuki »

I think you can simply add this feature as option as others that slow the process.

I think at "Show icon to the left"->"All associated + exe/LNK (slow)".

Regards
Phred
Senior Member
Senior Member
Posts: 382
Joined: 2009-06-16, 15:24 UTC
Location: SEAu

Voidtools'

Post by *Phred »

It seems that 'Everything' catalogues all a disk's files exceptionally quickly - by reading the MFT, I understand.
Is/can TC doing/do it too?
Metallator
Junior Member
Junior Member
Posts: 7
Joined: 2007-03-04, 17:05 UTC
Location: Dordrecht

Post by *Metallator »

I found this thread searching for a request to autosize the columns, which would be even better. But a double click would already be a huge improvement. I work a lot on different (remote) computers with different screen sizes and therefore I run into this a lot.

I agree, autosizing columns would save a lot of 'fiddling' with the view. For me, but also new persons I introduce Total Commander to. They're already having a little trouble taking the leap from Explorer to TC and with detailed information being overlapped, it is not helping.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Why not add a checkbox to the custom column entries:
[x] Allow Auto Resize
Add a command cm_ColumnsAutoSize

Optionally:
Add an ini-config to indicate whether the current normal displays should be excluded (allow by default) be auto-sized when the cm_ColumnsAutoSize is used.

The current situation is not so great, especially when you place something like Full path on a column, or even the last column. To get that to fit properly (frequently) you need to drag the divider outside of TC's window to make it wider.

It would seem TC does know whether or not there is enough space for the text to display at the given font size for each column, as ".." gets displayed when the space is too small.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem with auto-size is that TC would have to load the extra fields for ALL files/folders first (as I have already described above). Currently it loads them only on demand (when displayed). The only exception is when you sort by a custom column, then it has to be preloaded. When you do this with a slow field, you can see how much this would slow down the browsing.
Author of Total Commander
https://www.ghisler.com
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

It could be made to only resize for what files are currently visible --- or perhaps one additional screens (page-dn) worth - for calculating the widths.

TC would need to remember the current minimum widths for the columns, so that if you haven't changed directories, but have scrolled significantly away (up/down) from where the initial files were that were used for calculating the widths --- that a further double click on a column separator doesn't reduce the width just because the "now" visible files' data takes up less space than the other files did.

Then TC only needs to load one screen's worth of custom columns data (or 2), would not significantly impact the speed (or be noticeable at all) --- and all TC needs to do is store a handful (or more) of minimum column widths for a given folder or a subdir-branch view.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
Phred
Senior Member
Senior Member
Posts: 382
Joined: 2009-06-16, 15:24 UTC
Location: SEAu

Assisted Column-width Setting

Post by *Phred »

I support Balderstrom's suggestion.
Author Ghisler cites expectedness as a criterion for determining column-size change and associated techniques. I suggest that expectedness is a continuum, and some streamlining of column size setting is better than the essentially primitive method we have always had and have now. IMHO.
A double-click on a local set of files (inc one PgUp, one PgDn) would be extremely useful. (Windows Explorer does the visible.)
This does introduce the tangled web of TC column-width setting, in general. For years I've lived with the mystery of left-referencing right-aligned data columns (e.g. Size, Date) and one-over column predictions.
Setting the size column, for instance, is possible in places only by adjusting the adjacent column and relying on visible overlap. :roll: To me it's counter-intuitive in the extreme.
Therefore - 'assisted column-width setting' would have to include a 'stealing' algorithm:- from where does increased column width come? A double-click on the right Extension column separator, for instance - to achieve a three-character width - would destroy any suitable alignment that already obtains on the Size column.

Perhaps we could have the expectedness quotient raised when a decision to implement assisted column-width setting is made.
Metallator
Junior Member
Junior Member
Posts: 7
Joined: 2007-03-04, 17:05 UTC
Location: Dordrecht

Post by *Metallator »

Hello everyone,

I'd like to re-open the consideration for this one, although an automatic resize of the column would be even better 8)

Every time I start TC in a folder I have to manually change the size of the columns. That is cumbersome and to new users, to which I show TC, it is weird and confusing. I understand that for folders with large amounts of files/folders, it would get slow, and I am glad that performance is on top of mind of the developer(s?).

However, I reckon it would get noticeably slow when exceeding something like 1000+ items or maybe 2000+ items, depending on your hardware? Usually folders don´t have that many items. One could set a hardcoded limit (on 1k or 2k or ...k) and when the number of items exceed that limit, it would not autoset the column width.

For the 99% other folders, it would be a massive improvement. Hope to hear your reaction soon! Cheers! 8)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately it's too troublesome with plugins.
Author of Total Commander
https://www.ghisler.com
Post Reply