A PopClip extension for highlighting text in Obsidian

Last updated Mar 24, 2023 | Originally published Mar 24, 2023

A simple extension for PopClip that will present an “insert highlight” icon when you select text in Obsidian.

1
2
3
4
5
6
7
8
#popclip 
name: Highlight
required apps: [md.obsidian]
requirements: [text, cut]
actions:
- title: Highlight # note: actions have a `title`, not a `name`
  icon: iconify:ant-design:highlight-twotone
  javascript: popclip.pasteText('==' + popclip.input.text + '==')