Implement text zooming in the lister

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

nibbler
Junior Member
Junior Member
Posts: 3
Joined: 2020-01-09, 09:55 UTC

Implement text zooming in the lister

Post by *nibbler »

Hi,

It would be great if you were able to zoom the text in and out in the lister. For instance in Notepad++ has this feature (... and in my opinion very good keyboard shortcuts and mouse functionality for it). :wink:
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Implement text zooming in the lister

Post by *ghisler(Author) »

The problem is that the default fonts used (system fixed font) are bitmap fonts, and there aren't any good looking truetype or opentype fixed fonts I could set as a default instead.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Implement text zooming in the lister

Post by *DrShark »

ghisler(Author) wrote: 2020-01-09, 11:18 UTCThe problem is that the default fonts used (system fixed font) are bitmap fonts, and there aren't any good looking truetype or opentype fixed fonts I could set as a default instead.
Since RichEdit control used by Lister e.g. for RTF files supports text zooming, maybe it's worth letting user to use it also for other files, for example by introducing RichEditAdditionalTypes= similar to existing IviewAdditionalTypes=, or by adding RichEdit as additional view mode similar to new ExplorerPreview.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Implement text zooming in the lister

Post by *Fla$her »

13.08.24 Added: wincmd.ini [Lister] ZoomFont=1 controls font zoom with mouse wheel: 0=off, 1=Ctrl+Wheel, -1=Ctrl+Alt+Wheel. The unused one is used for fast scrolling (32/64)
12.08.24 Added: Lister: Ctrl+Mouse wheel now also zooms in all text modes. Fast scrolling has been changed to Ctrl+Alt+Mouse wheel (32/64)
12.08.24 Added: Lister: Ctrl+'+'/'-' now also zooms in all text modes (32/64)
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Implement text zooming in the lister

Post by *ghisler(Author) »

Please note that this only works when using a Truetype or Opentype font, not when using a bitmap font like FIXEDSYS which is the default.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Implement text zooming in the lister

Post by *Fla$her »

It's bad that this happens in spurts, and not as smoothly as in text editors like AkelPad.
Overquoting is evil! 👎
User avatar
wanderer
Power Member
Power Member
Posts: 1640
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Implement text zooming in the lister

Post by *wanderer »

It's a welcome addition but when lister is closed and reopened, the "zoom" is remembered. OK with that, but there is no way to "reset" the font to its original size, you have to close and reopen the whole TC instance.

- Perhaps a new keystroke could be used for "reset to default zoom" ( CTRL + numpad '/' maybe? ).
- Another way could be to add a new "Reset zoom" menu item in the lister window (like the one at the right that shows in what percentage of the file the scrollbar is). It could be added at the left of the percentage and appear only when the zoom is something different than the default.
- Perhaps both of the above could be implemented?
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
browny
Senior Member
Senior Member
Posts: 359
Joined: 2007-09-10, 13:19 UTC

Re: Implement text zooming in the lister

Post by *browny »

wanderer wrote: 2024-10-09, 18:20 UTC - Perhaps a new keystroke could be used for "reset to default zoom" ( CTRL + numpad '/' maybe? ).
Ctrl+0 in Firefox and some other programs.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Implement text zooming in the lister

Post by *ghisler(Author) »

That's a good idea, I will check whether I can add Ctrl+0.
Author of Total Commander
https://www.ghisler.com
browny
Senior Member
Senior Member
Posts: 359
Joined: 2007-09-10, 13:19 UTC

Re: Implement text zooming in the lister

Post by *browny »

ghisler(Author) wrote: 2024-10-09, 14:39 UTC Please note that this only works when using a Truetype or Opentype font, not when using a bitmap font like FIXEDSYS which is the default.
The above mentioned akelpad editor can zoom even with Fixedsys font, though not very smoothly (it uses rich edit control).
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Implement text zooming in the lister

Post by *AntonyD »

- Perhaps both of the above could be implemented?
+++Support++++

+ in a help we see:
ZoomFont=1 Controls font zoom with mouse wheel: 0=off, 1=Ctrl+Wheel, -1=Ctrl+Alt+Wheel. The other combination is used for fast scrolling
But WHAT exactly "other combination" means? Another digits? 2/3/7? -5/-8?
And about "fast scrolling" - Didn't it work before? Or has it started working differently now?
Why is this mode highlighted as a separate state?
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Implement text zooming in the lister

Post by *ghisler(Author) »

The two combinations are Ctrl+Wheel and Ctrl+Alt+Wheel.
In older Total Commander versions, Ctrl+Wheel was scrolling page by page. This is now changed to Ctrl+Alt+Wheel.
With ZoomFont=-1, the two are reversed: Ctrl+Wheel again scrolls page by page, and Ctrl+Alt+Wheel zooms the font.
I changed the default for consistency reasons, because Ctrl+Wheel already zooms images.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Implement text zooming in the lister

Post by *petermad »

I would like if Lister would show the zoom fator - either in the title bar or in a tooltip like in the thumbnail view.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
wanderer
Power Member
Power Member
Posts: 1640
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Implement text zooming in the lister

Post by *wanderer »

petermad wrote: 2024-10-10, 14:32 UTC I would like if Lister would show the zoom fator - either in the title bar or in a tooltip like in the thumbnail view.
wanderer wrote: 2024-10-09, 18:20 UTC- Another way could be to add a new "Reset zoom" menu item in the lister window (like the one at the right that shows in what percentage of the file the scrollbar is). It could be added at the left of the percentage and appear only when the zoom is something different than the default.
That's one of the reasons i proposed this. Some programs (i.e. browsers) show the zoom factor and when you click on it, you are returned to 100%. If implemented like this in TC too (as a menu item), it would certainly feel familiar.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
browny
Senior Member
Senior Member
Posts: 359
Joined: 2007-09-10, 13:19 UTC

Re: Implement text zooming in the lister

Post by *browny »

ghisler(Author) wrote: 2024-10-10, 07:48 UTC That's a good idea, I will check whether I can add Ctrl+0.
This used to work for numeric pad 0 too, but TC beta 2 ignores the key.

Additionally, it might be nice to see the image size in the caption (similar to IrfanView, though it shows zoomed size in the caption and original in status bar).
Post Reply