Here is how I tuned the behavior of zooming in Mogan STEM:

Patch 1 tune the behavior for macOS, Patch 2 tunes the behavior for Linux and 
Windows.


Patch 1:



diff --git a/TeXmacs/progs/generic/generic-kbd.scm 
b/TeXmacs/progs/generic/generic-kbd.scm 

index 0dae4e723..018b8a335 100644

--- a/TeXmacs/progs/generic/generic-kbd.scm

+++ b/TeXmacs/progs/generic/generic-kbd.scm

@@ -620,7 +620,12 @@

   ("macos r" (interactive-replace))

   ("macos F" (toggle-full-screen-mode))

   ("macos C-f" (toggle-full-screen-edit-mode))

+

+  ("macos =" (zoom-in (sqrt (sqrt 2.0))))

   ("macos S-=" (zoom-in (sqrt (sqrt 2.0))))

+  ("macos S-+" (zoom-in (sqrt (sqrt 2.0))))

+  ("macos S--" (zoom-out (sqrt (sqrt 2.0))))

+  ("macos S-_" (zoom-out (sqrt (sqrt 2.0))))



   ("altcmd x" (interactive footer-eval))

   ("A-x" (interactive exec-interactive-command))



Patch 2:

diff --git a/TeXmacs/progs/generic/generic-kbd.scm 
b/TeXmacs/progs/generic/generic-kbd.scm 

index 9aef1b045..a5dcc96a4 100644

--- a/TeXmacs/progs/generic/generic-kbd.scm

+++ b/TeXmacs/progs/generic/generic-kbd.scm

@@ -621,7 +621,6 @@

   ("macos F" (toggle-full-screen-mode))

   ("macos C-f" (toggle-full-screen-edit-mode))



-  ("macos =" (zoom-in (sqrt (sqrt 2.0))))

   ("macos S-=" (zoom-in (sqrt (sqrt 2.0))))

   ("macos S-+" (zoom-in (sqrt (sqrt 2.0))))

   ("macos S--" (zoom-out (sqrt (sqrt 2.0))))

@@ -807,6 +806,7 @@

   ("std z" (undo 0))

   ("std Z" (redo 0))

   ("std +" (zoom-in (sqrt (sqrt 2.0))))

+  ("std =" (zoom-in (sqrt (sqrt 2.0))))

   ("std -" (zoom-out (sqrt (sqrt 2.0))))

   ("std 0" (change-zoom-factor 1.0))









---- On Mon, 05 May 2025 05:34:27 +0800 Albin Ahlbäck <albin.ahlb...@gmail.com> 
wrote ---



Dear all,

When zooming in macOS, it is typically allowed to do cmd+= instead of 
cmd++, but this is not recognized by default in Texmacs (at least in the 
brew-version).

Perhaps this could be fixed?

Best,
Albin

_______________________________________________
Texmacs-dev mailing list
mailto:Texmacs-dev@gnu.org 
https://lists.gnu.org/mailman/listinfo/texmacs-dev
_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to