From 641799c45a28ae9ec09d9ff4c2ff5a1ddaf8b1bd Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 26 Apr 2019 19:37:06 +0200 Subject: [PATCH] Add feedkeys documentation --- doc/man/zathurarc.5.rst | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/doc/man/zathurarc.5.rst b/doc/man/zathurarc.5.rst index 8f0b06a..c2712f4 100644 --- a/doc/man/zathurarc.5.rst +++ b/doc/man/zathurarc.5.rst @@ -62,16 +62,6 @@ accordingly or to escape the hash symbol. set default-fg "#CCBBCC" set default-fg \#CCBBCC -map - Mapping a shortcut ------------------------- -It is possible to map or remap new key bindings to shortcut functions which -allows a high level of customization. The ``:map`` command can also be used in -the *zathurarc* file to make those changes permanent: - -:: - - map [mode] - include - Including another config file --------------------------------------- This commands allows one to include other configuration files. If a relative @@ -82,6 +72,16 @@ is currently processed. include another-config +map - Mapping a shortcut +------------------------ +It is possible to map or remap new key bindings to shortcut functions which +allows a high level of customization. The ``:map`` command can also be used in +the *zathurarc* file to make those changes permanent: + +:: + + map [mode] + Mode ^^^^ The ``map`` command expects several arguments where only the ``binding`` as well as @@ -122,7 +122,8 @@ keyboard. It is possible to use the following modifiers: * C - Control * S - Shift -Now it is required to define the ``binding`` with the following structure: +If any of the modifiers should be used for a binding, it is required to define +the ``binding`` with the following structure: :: @@ -313,11 +314,19 @@ The following shortcut functions can be mapped: Zoom in or out. * ``mark_add`` + Set a quickmark. * ``mark_evaluate`` + Go to a quickmark. +* ``feedkeys`` + + Simulate key presses. Note that all keys will be interpreted as if pressing a + key on the keyboard. To input uppercase letters, follow the same convention as + for key bindings, i.e. for ``X``, use ````. + Pass arguments ^^^^^^^^^^^^^^