sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
12.99k stars 1.67k forks source link

Setting to auto-capture text when highlighting and populate the annotation's contents with the highlighted text #4360

Open shern15 opened 4 days ago

shern15 commented 4 days ago

Discussed in https://github.com/sumatrapdfreader/sumatrapdf/discussions/4359

I highlight a lot of text in my PDF textbooks and right now the only way I can find to populate a Highlight annotation's contents with the text I am highlighting is to CTRL + C the text before highlighting, then A, then CTRL + V into the Contents box when the Edit Annotation window appears.

It would be great if there was a Setting that I can enable so that I can just press 'a' (or whatever shortcut for the desired highlight color) and have the Contents box of the annotation automatically populated with the highlighted text.

Thank you for your time!

GitHubRulesOK commented 4 days ago

Hmm it was that way at one time but there were complaints about having to delete long contents !

You cant Please all of the readers all of the time, so agree it would be a nice option to paste or not paste the selection and currently there is the opposite request to delete the clipboard change !!! So 3 different points of view so far.

Current PreRelease is middle ground highlight press A = AUTOclips the text for paste. image

GitHubRulesOK commented 4 days ago

@kjk

you proposed to add the auto paste along the lines of

Shortcuts [
    [
        Cmd = CmdCreateAnnotHighlight #00ff00 autopopulatecontent
        Key = a
    ]
]

but there is another request to not copy in first case so perhaps also needs a "nocollectselection" & "docollectselection" for those that want to paste further down the comment !