New in pre-release: commands with arguments #4394
kjk
announced in
Announcements
Replies: 5 comments 5 replies
-
@kjk
"Let me know if you think other commands should also take arguments"
Yes,
1. The most important (for me) to change to ZOOM X, for example (who I use
a lot for my certain documents) ZOOM 175, now I have to press CTR+Y every
time and then write 175 and press Enter, it would be much more convenient
if everything was done with one shortcut key.
2. to give a shortcut key to change the scheme of TextColor &
BackgroundColor, for example those who want at night to read the
document in dark mode (the background of the document is a shade of black
and the text color a shade of white) can easily switch the color scheme,
and during the day by a shortcut key return to a day color scheme.
Thanks!
בתאריך יום ג׳, 23 ביולי 2024 ב-20:20 מאת Krzysztof Kowalczyk <
***@***.***>:
… By creating custom keyboard shortcuts
<https://www.sumatrapdfreader.org/docs/Customizing-keyboard-shortcuts>,
you can bind a shortcut to a command
<https://www.sumatrapdfreader.org/docs/Commands>.
Until now the commands couldn't take arguments but it makes sense in some
cases so since *ver 3.6* some commands can take arguments that affect
their behavior.
One example: CmdCreateAnnotHighlight now takes a color argument so you
can now change the highlight color by re-binding key a to e.g. command CmdCreateAnnotHighlight
#00ff00 (#00ff00 is green color) or create multiple shortcuts with
different colors.
See commands with arguments
<https://www.sumatrapdfreader.org/docs/Commands#commands-with-arguments>
for a list of commands that take arguments and their arguments.
Let me know if you think other commands should also take arguments.
—
Reply to this email directly, view it on GitHub
<#4394>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZFMFTBXJMORIL6G2W2VL6DZN2GHHAVCNFSM6AAAAABLK3UFAKVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWHE3DSMZUHE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
-
@GitHubRulesOK
|
Beta Was this translation helpful? Give feedback.
2 replies
-
@kjk
I tried in V3.6.16461 64-bit:
[
Cmd = CmdZoomCustom 175 %
Key = 4
]
And it doesn't work properly, it just works as if CTR+Y were pressed.
Thanks!
בתאריך יום ד׳, 24 ביולי 2024 ב-17:05 מאת Krzysztof Kowalczyk <
***@***.***>:
… @H5820121 <https://github.com/H5820121> see #4396
<#4396> for zoom
—
Reply to this email directly, view it on GitHub
<#4394 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZFMFTBICBH4P44JS4BAX3TZN6YCZAVCNFSM6AAAAABLK3UFAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJTHAZTQOA>
.
You are receiving this because you were mentioned.Message ID:
<sumatrapdfreader/sumatrapdf/repo-discussions/4394/comments/10138388@
github.com>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
@GitHubRulesOK <https://github.com/GitHubRulesOK> Thanks!,
"SumatraPDF.exe" -set-color-range #dddddd #282828 -page %p "%1"" it no so
bad, you have only to use a new instance.
בתאריך יום ד׳, 24 ביולי 2024 ב-21:42 מאת GitHubRulesOK <
***@***.***>:
… @H5820121 <https://github.com/H5820121> you are too quick it will be
tomorrow in current 16465+ (WIP) or more likely any later daily than
current run 16469+
—
Reply to this email directly, view it on GitHub
<#4394 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZFMFTG55VZRDS7ZYONKLOLZN7YQZAVCNFSM6AAAAABLK3UFAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJUGEZTGMY>
.
You are receiving this because you were mentioned.Message ID:
<sumatrapdfreader/sumatrapdf/repo-discussions/4394/comments/10141333@
github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By creating custom keyboard shortcuts, you can bind a shortcut to a command.
Until now the commands couldn't take arguments but it makes sense in some cases so since ver 3.6 some commands can take arguments that affect their behavior.
One example:
CmdCreateAnnotHighlight
now takes a color argument so you can now change the highlight color by re-binding keya
to e.g. commandCmdCreateAnnotHighlight #00ff00
(#00ff00
is green color) or create multiple shortcuts with different colors.See commands with arguments for a list of commands that take arguments and their arguments.
Let me know if you think other commands should also take arguments.
Beta Was this translation helpful? Give feedback.
All reactions