aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-01-20 06:08:56 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-01-20 06:08:56 +0300
commite37c2d602b3bfb39941e15ec14d7bfd523f5b25a (patch)
tree7ebb06de83f3c5325209316f4a58d535b25663d4
parent33721ec3bee813c045493a8c4192a2eb9c5aa11a (diff)
downloadsciteco-e37c2d602b3bfb39941e15ec14d7bfd523f5b25a.tar.gz
fnkeys.tes: support zooming via F9/F10
* Works only in Gtk of course and only in the parser start state. * Since its side effects can neither be reversed, nor does it have any side effects on the editor state, we can completely rub it out. * Currently, it will only affect the current buffer and only the text area. It would be trivial to apply the zoom to the commandline widget as well (FIXME?). There is currently no way that the zoom value or any font size could be passed to the CSS, though. So the auto-completion overlay could only be zoomed if Gtk supports a zoom factor as well.
-rw-r--r--lib/fnkeys.tes9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/fnkeys.tes b/lib/fnkeys.tes
index d0c0e66..f33af2b 100644
--- a/lib/fnkeys.tes
+++ b/lib/fnkeys.tes
@@ -95,5 +95,14 @@
@[CLOSE]{(EX)}
1U[CLOSE]
+!*
+ * Zoom with F9/F10 if function keys are enabled.
+ * This is automatically rubbed out.
+ *!
+@[F9]{(ESZOOMOUT{-13D}}
+1U[F9]
+@[F10]{(ESZOOMIN{-12D}}
+1U[F10]
+
! enable function key (macro) support !
0,64ED