Features

Text highlight annotation color scroll on (a)

2y agoClosed

Text highlight annotation color scroll on (a) - i.e. let's say we define three lines of colors:

Annotations [

HighlightColor = #ffc3c2 # red/rouge

HighlightColor = #f7ec8b # yellow

HighlightColor = #b6faaa # green

...

and when pressing (a) repeatedly within specified timeframe (0.5 of a second?), the color rolls to the next one, efficiently from first to the last. So we can define Red, Yellow, Green and mark Warning/Error, Info, Approved/Correct states.. :^)

and 4 others

2 comments

  1. Krzysztof Kowalczyk marked this as Closed17d ago
  2. You can get the same result today by binding a different key to each color. CmdCreateAnnotHighlight takes the color as an argument, so add this to the Shortcuts setting (Settings > Advanced Settings...):

    Shortcuts [ [ Name = Highlight: red Cmd = CmdCreateAnnotHighlight #ffc3c2 Key = 1 ] [ Name = Highlight: yellow Cmd = CmdCreateAnnotHighlight #f7ec8b Key = 2 ] [ Name = Highlight: green Cmd = CmdCreateAnnotHighlight #b6faaa Key = 3 ] ]

    Select text and press 1, 2 or 3. "a" keeps making the default highlight. With Name set, the commands also show in the command palette (Ctrl + K). Changes apply as soon as you save the file.

    Docs: https://www.sumatrapdfreader.org/docs/Customize-keyboard-sho… and https://www.sumatrapdfreader.org/docs/Commands (CmdCreateAnnotHighlight arguments)

    1. Anonymous17d ago

      Thank you!