Re: Zooming in, macOS
Darcy Shen via Texmacs-dev <[email protected]> Mon, 21 Jul 2025 00:41:08 +0800
| Newsgroups | gmane.editors.texmacs.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============4046827199312108915==
Content-Type: multipart/alternative;
boundary="----=_Part_383386_123378596.1753029668461"
------=_Part_383386_123378596.1753029668461
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
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 a=
nd Windows.
Patch 1:
diff --git a/TeXmacs/progs/generic/generic-kbd.scm b/TeXmacs/progs/generic/=
generic-kbd.scm=20
index 0dae4e723..018b8a335 100644
--- a/TeXmacs/progs/generic/generic-kbd.scm
+++ b/TeXmacs/progs/generic/generic-kbd.scm
@@ -620,7 +620,12 @@
=C2=A0=C2=A0 ("macos r" (interactive-replace))
=C2=A0=C2=A0 ("macos F" (toggle-full-screen-mode))
=C2=A0=C2=A0 ("macos C-f" (toggle-full-screen-edit-mode))
+
+=C2=A0 ("macos =3D" (zoom-in (sqrt (sqrt 2.0))))
=C2=A0=C2=A0 ("macos S-=3D" (zoom-in (sqrt (sqrt 2.0))))
+=C2=A0 ("macos S-+" (zoom-in (sqrt (sqrt 2.0))))
+=C2=A0 ("macos S--" (zoom-out (sqrt (sqrt 2.0))))
+=C2=A0 ("macos S-_" (zoom-out (sqrt (sqrt 2.0))))
=C2=A0=C2=A0 ("altcmd x" (interactive footer-eval))
=C2=A0=C2=A0 ("A-x" (interactive exec-interactive-command))
Patch 2:
diff --git a/TeXmacs/progs/generic/generic-kbd.scm b/TeXmacs/progs/generic/=
generic-kbd.scm=20
index 9aef1b045..a5dcc96a4 100644
--- a/TeXmacs/progs/generic/generic-kbd.scm
+++ b/TeXmacs/progs/generic/generic-kbd.scm
@@ -621,7 +621,6 @@
=C2=A0=C2=A0 ("macos F" (toggle-full-screen-mode))
=C2=A0=C2=A0 ("macos C-f" (toggle-full-screen-edit-mode))
-=C2=A0 ("macos =3D" (zoom-in (sqrt (sqrt 2.0))))
=C2=A0=C2=A0 ("macos S-=3D" (zoom-in (sqrt (sqrt 2.0))))
=C2=A0=C2=A0 ("macos S-+" (zoom-in (sqrt (sqrt 2.0))))
=C2=A0=C2=A0 ("macos S--" (zoom-out (sqrt (sqrt 2.0))))
@@ -807,6 +806,7 @@
=C2=A0=C2=A0 ("std z" (undo 0))
=C2=A0=C2=A0 ("std Z" (redo 0))
=C2=A0=C2=A0 ("std +" (zoom-in (sqrt (sqrt 2.0))))
+=C2=A0 ("std =3D" (zoom-in (sqrt (sqrt 2.0))))
=C2=A0=C2=A0 ("std -" (zoom-out (sqrt (sqrt 2.0))))
=C2=A0=C2=A0 ("std 0" (change-zoom-factor 1.0))
---- On Mon, 05 May 2025 05:34:27 +0800 Albin Ahlb=C3=A4ck <albin.ahlback@g=
mail.com> wrote ---
Dear all,
When zooming in macOS, it is typically allowed to do cmd+=3D instead of=20
cmd++, but this is not recognized by default in Texmacs (at least in the=20
brew-version).
Perhaps this could be fixed?
Best,
Albin
_______________________________________________
Texmacs-dev mailing list
mailto:[email protected]=20
https://lists.gnu.org/mailman/listinfo/texmacs-dev
------=_Part_383386_123378596.1753029668461
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>=
<meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"></h=
ead><body ><div style=3D"font-family: Verdana, Arial, Helvetica, sans-serif=
; font-size: 10pt;"><div>Here is how I tuned the behavior of zooming in Mog=
an STEM:<br></div><div>Patch 1 tune the behavior for macOS, Patch 2 tunes t=
he behavior for Linux and Windows.</div><div><br></div><div>Patch 1:<br></d=
iv><div><br></div><div>diff --git a/TeXmacs/progs/generic/generic-kbd.scm b=
/TeXmacs/progs/generic/generic-kbd.scm <br></div><div>index 0dae4e723..018b=
8a335 100644<br></div><div>--- a/TeXmacs/progs/generic/generic-kbd.scm<br><=
/div><div>+++ b/TeXmacs/progs/generic/generic-kbd.scm<br></div><div>@@ -620=
,7 +620,12 @@<br></div><div> ("macos r" (interactive-replace))<=
br></div><div> ("macos F" (toggle-full-screen-mode))<br></div><=
div> ("macos C-f" (toggle-full-screen-edit-mode))<br></div><div=
>+<br></div><div>+ ("macos =3D" (zoom-in (sqrt (sqrt 2.0))))<br></div=
><div> ("macos S-=3D" (zoom-in (sqrt (sqrt 2.0))))<br></div><di=
v>+ ("macos S-+" (zoom-in (sqrt (sqrt 2.0))))<br></div><div>+ (=
"macos S--" (zoom-out (sqrt (sqrt 2.0))))<br></div><div>+ ("macos S-_=
" (zoom-out (sqrt (sqrt 2.0))))<br></div><div><br></div><div> (=
"altcmd x" (interactive footer-eval))<br></div><div> ("A-x" (in=
teractive exec-interactive-command))<br></div><div><br></div><div>Patch 2:<=
br></div><div>diff --git a/TeXmacs/progs/generic/generic-kbd.scm b/TeXmacs/=
progs/generic/generic-kbd.scm <br></div><div>index 9aef1b045..a5dcc96a4 100=
644<br></div><div>--- a/TeXmacs/progs/generic/generic-kbd.scm<br></div><div=
>+++ b/TeXmacs/progs/generic/generic-kbd.scm<br></div><div>@@ -621,7 +621,6=
@@<br></div><div> ("macos F" (toggle-full-screen-mode))<br></d=
iv><div> ("macos C-f" (toggle-full-screen-edit-mode))<br></div>=
<div><br></div><div>- ("macos =3D" (zoom-in (sqrt (sqrt 2.0))))<br></=
div><div> ("macos S-=3D" (zoom-in (sqrt (sqrt 2.0))))<br></div>=
<div> ("macos S-+" (zoom-in (sqrt (sqrt 2.0))))<br></div><div>&=
nbsp; ("macos S--" (zoom-out (sqrt (sqrt 2.0))))<br></div><div>@@ -80=
7,6 +806,7 @@<br></div><div> ("std z" (undo 0))<br></div><div>&=
nbsp; ("std Z" (redo 0))<br></div><div> ("std +" (zoom-in=
(sqrt (sqrt 2.0))))<br></div><div>+ ("std =3D" (zoom-in (sqrt (sqrt =
2.0))))<br></div><div> ("std -" (zoom-out (sqrt (sqrt 2.0))))<b=
r></div><div> ("std 0" (change-zoom-factor 1.0))<br></div><div>=
<br></div><div><br></div><div class=3D"zmail_extra_hr" style=3D"border-top:=
1px solid rgb(204, 204, 204); height: 0px; margin-top: 10px; margin-bottom=
: 10px; line-height: 0px;"><br></div><div class=3D"zmail_extra" data-zbluep=
encil-ignore=3D"true"><div><br></div><div id=3D"Zm-_Id_-Sgn1">---- On Mon, =
05 May 2025 05:34:27 +0800 <b>Albin Ahlb=C3=A4ck <[email protected]=
m></b> wrote ---<br></div><div><br></div><blockquote id=3D"blockquote_zm=
ail" style=3D"margin: 0px;"><div>Dear all,<br><br>When zooming in macOS, it=
is typically allowed to do cmd+=3D instead of <br>cmd++, but this is not r=
ecognized by default in Texmacs (at least in the <br>brew-version).<br><br>=
Perhaps this could be fixed?<br><br>Best,<br>Albin<br><br>_________________=
______________________________<br>Texmacs-dev mailing list<br><a target=3D"=
_blank" href=3D"mailto:[email protected]">[email protected]</a><br><a t=
arget=3D"_blank" href=3D"https://lists.gnu.org/mailman/listinfo/texmacs-dev=
">https://lists.gnu.org/mailman/listinfo/texmacs-dev</a><br></div></blockqu=
ote></div><div><br></div></div><br></body></html>
------=_Part_383386_123378596.1753029668461--
--===============4046827199312108915==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVGV4bWFjcy1k
ZXYgbWFpbGluZyBsaXN0ClRleG1hY3MtZGV2QGdudS5vcmcKaHR0cHM6Ly9saXN0cy5nbnUub3Jn
L21haWxtYW4vbGlzdGluZm8vdGV4bWFjcy1kZXYK
--===============4046827199312108915==--