Changing Annotation Note template
I'd like to change the annotation template for easier export into Obsidian.
I'd like it to look like
< page label>
> < text>
e.g.
42
> Lorem ipsum . . .
I've managed to find the relevant config entries, and I've gotten the bottom part with the greater-than-sign but I can't figure out if there's a variable for page labels.
I thought I'd seen a thread somewhere that talked about that, but can't find it anymore. I don't want the whole citation info from for each highlight, I just want the page label.
Is this possible? I'd even settle for the literal page number if the label isn't possible.
Thanks!
I'd like it to look like
< page label>
> < text>
e.g.
42
> Lorem ipsum . . .
I've managed to find the relevant config entries, and I've gotten the bottom part with the greater-than-sign but I can't figure out if there's a variable for page labels.
I thought I'd seen a thread somewhere that talked about that, but can't find it anymore. I don't want the whole citation info from for each highlight, I just want the page label.
Is this possible? I'd even settle for the literal page number if the label isn't possible.
Thanks!
xdotool key ctrl+c
citation="$(xsel -o -b | sed 's/\\>/>/g' | sed -E '
s/\([^)]* ([0-9a-z]+)\)[[:space:]]{2,}/\1/g;
s/^> ?["“]([^"“”]+.*[^"“”]*)["”]$/\> \1/;
s/^> ?[‘\047]([^’\047]+.*[^’\047]*)[’\047]$/\> \1/')"
You can then use $citation for wherever you want, and if you've set the annotation template to
{{citation}}
It'll then look> {{highlight}} {{comment}}
42
> Lorem ipsum . . .