Bug 434661 - Font size/zoom level is not synced between open documents
Summary: Font size/zoom level is not synced between open documents
Status: REPORTED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-20 12:28 UTC by Noah Davis
Modified: 2023-10-07 06:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Noah Davis 2021-03-20 12:28:16 UTC
SUMMARY
When I temporarily change the font size by zooming with Ctrl++ or Ctrl+-, I have to do it for every document instead of just once. I mainly use the zoom feature when moving Kate from my 15.6 inch FHD laptop screen to my 27 inch 4K screen (1x scaling for both).

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210311
KDE Plasma Version: 5.21.80
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.4-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 30.8 GiB of RAM
Graphics Processor: AMD RENOIR
Comment 1 Christoph Cullmann 2021-03-20 12:42:38 UTC
In principle I understand that this would make sense.

On the other side at the moment all settings one does on one view are local (and e.g. unlike global settings in the config dialog non-persistent).
Comment 2 Noah Davis 2021-03-20 12:52:58 UTC
(In reply to Christoph Cullmann from comment #1)
> In principle I understand that this would make sense.
> 
> On the other side at the moment all settings one does on one view are local
> (and e.g. unlike global settings in the config dialog non-persistent).

If Kate was more like a web browser or word processor where multiple font sizes and layouts with different proportions can be used in different open documents, then I think the current behavior would make more sense. As it is, I think it gets in the way.
Comment 3 Christoph Cullmann 2021-03-20 12:56:10 UTC
(In reply to Noah Davis from comment #2)
> (In reply to Christoph Cullmann from comment #1)
> > In principle I understand that this would make sense.
> > 
> > On the other side at the moment all settings one does on one view are local
> > (and e.g. unlike global settings in the config dialog non-persistent).
> 
> If Kate was more like a web browser or word processor where multiple font
> sizes and layouts with different proportions can be used in different open
> documents, then I think the current behavior would make more sense. As it
> is, I think it gets in the way.

The question is: should we then e.g. make all View-> stuff global?
I guess it would make sense.
I rarely want e.g. line numbers for one view but not for others.
Comment 4 Christoph Cullmann 2022-08-27 18:43:18 UTC
I have no real idea if we should really alter it.
ATM all stuff is there view/document specific.
Which IMHO isn't that strange, given you want to set e.g. the highlighting mode for sure per document.
On the other side, perhaps some things might be better global, but then it again is rather inconsistent, too.
e.g. font size will be global, highlighting local, what with other options?
Comment 5 Waqar Ahmed 2022-08-27 18:56:25 UTC
I think per document zooming is useful, I have seen a lot of users do it for 1 document temporarily for e.g if they are showing something to someone on the screen. But it also makes sense if it is available as a global option. Maybe we should ask about it in reddit or something and try to see what users expect. It would also make sense to check what other editors do.
Comment 6 Christoph Cullmann 2022-08-27 19:01:10 UTC
At least VS Code just zooms the whole window (including the full UI), which IMHO is very strange, but I guess a side effect of that it is just a web browser :)
Comment 7 Waqar Ahmed 2022-08-28 07:58:33 UTC
Vscode has a different zoom action for zooming only the editor. You can find it via their command bar. Just checked it, it seems to zoom in all open tabs and not just one.
Comment 8 Henri K 2023-10-07 06:27:02 UTC
(In reply to Noah Davis from comment #2)
> (In reply to Christoph Cullmann from comment #1)
> > In principle I understand that this would make sense.
> > 
> > On the other side at the moment all settings one does on one view are local
> > (and e.g. unlike global settings in the config dialog non-persistent).
> 
> If Kate was more like a web browser or word processor where multiple font
> sizes and layouts with different proportions can be used in different open
> documents, then I think the current behavior would make more sense. As it
> is, I think it gets in the way.

New user opinion: 100% agree.  With a text editor I'd expect it to zoom all documents if they are in same application window. I often have so many documents open that current behavior make functionality not really useful. However, different application windows having own zoom level is great to have and makes more sense since they can be in different monitors with different DPI.