No description
Find a file
2021-02-25 11:09:26 +01:00
.github/workflows Removes own build script 2020-12-07 11:03:45 +01:00
src Adds contextual quotes for explode note mode https://github.com/akaalias/extract-highlights-plugin/issues/6 2021-02-25 10:50:47 +01:00
test Adds class and test for processing highlights 2020-12-06 15:12:15 +01:00
.gitignore .DS_Store banished! 2020-11-20 12:56:18 +01:00
adhoc.png Updates README with videos 2021-02-25 11:09:26 +01:00
clipboard-flow.gif Updates gif 2020-11-08 16:22:18 +01:00
cursor.gif Adds readme and demo 2020-12-04 12:52:46 +01:00
data.json Updates README with videos 2021-02-25 11:09:26 +01:00
flow_links.gif Adds animation 2020-12-04 14:26:28 +01:00
highlight.gif Adds better demo 2020-12-05 14:44:41 +01:00
main.js Adds contextual quotes for explode note mode https://github.com/akaalias/extract-highlights-plugin/issues/6 2021-02-25 10:50:47 +01:00
manifest.json Bumps version 2021-02-25 10:52:37 +01:00
onoff.gif Adds toggling, bumps version, adds demo 2020-12-05 10:24:46 +01:00
package.json Bumps version 2021-02-25 10:52:37 +01:00
README.md Updates README with videos 2021-02-25 11:09:26 +01:00
rollup.config.js Adds plugin settings for heading 2020-11-20 10:03:57 +01:00
secret.png Updates README with videos 2021-02-25 11:09:26 +01:00
secrettips.png Updates README with videos 2021-02-25 11:09:26 +01:00
styles.css Adds sentence-level highlighting under cursor 2020-12-03 17:29:59 +01:00
tsconfig.json initial commit 2020-11-08 14:47:29 +01:00
tsconfig.testing.json Adds toggling for sentences 2020-12-05 10:13:04 +01:00
video.png Adds better youtube image 2020-12-07 11:22:10 +01:00

Extract Highlights Plugin

Create and extract highlights from a current markdown note in Obsidian into your clipboard. Based on icebear's plugin request.

Training Videos

Watch: The Quick-Start Tutorial!

Watch: How to create ad-hoc MOCs

Watch: A SECRET NEW highlight mode

How it works

This plugin will copy the highlights delimited by ==, ** and <mark></mark> into your clipboard as a bullet-list.

Optionally you can customize...

  • The heading text of the list, include the note-title or hide it all-together
  • Adding a footnote to each that link back to the source-file
  • Creating an ad-hoc map-of-content (MOC) by turning each highlight into an [[ Obsidian link ]]
  • Auto-capitalize the first letter in each highlight for consistency

Demo Creating and Extracting Highlights

  1. First you see how I use the CREATE highlights hot-key to highlight sentences
  2. Then you see how I use the EXTRACT highlights hot-key to create a new file with the highlights

basic functionality

Using the Hotkey to HIGHLIGHT (and UN-HIGHLIGHT) the sentence under cursor

The default hotkey for this is:

SHIFT + ALT + _

Super useful for when you're reading and just don't want to switch to your mouse for selecting the sentence.

demo

Will remove highlighting if the sentence under your cursor is currently delimited by "==".

Using the Hotkey to EXTRACT highlights

The default hotkey is:

SHIFT + ALT + =

Using the Ribbon Button

There is also a button (a circle-shape) that's added to your left-side ribbon.

Clicking on it will also extract all highlighted parts in your current note and place it in your clipboard.

Using the Command Palette

I looked into it and theres a bug the way clipboard works with the Command Palette. Basically everything but the “Paste” works.

But Ive found a temporary work-around. Its weird but it works.

  1. Trigger Command Palette (Command-P)
  2. Find “Extract Highlights”
  3. Hit Enter (You should see a notification (“Highlights copied to clipboard!”)
  4. Workaround: At this point, briefly switch to a different note and back (This materialises the clipboard data for pasting)
  5. Paste works now the same as with the Hotkey and Button-press

Pasting highlights from your clipboard

After using the hotkey, button or command palette, anywhere you want, just paste the clipboard!

Command + v (MacOS) or the equivalent on Windows/Linux

The output is a markdown-block titled "Highlights" with a bullet-list of the highlights.

Feedback

Are you using Extract Highlights? I'd love to hear from you!

Share your questions and suggestions in the forum

Backlog

TODO

  • Record video on using the "explosion mode" for research and creating atomic notes
    • Pre-requisites
      • Highlights Plugin
        • Create links
        • Create page
        • Enable explode mode
        • Open notes on creation
      • Sliding Panes Plugin
    • Start with a good article (Economist)
    • Go through and highlight sentences
    • Create MOC and explode into notes
      • BOOOMMMMM!!!
      • You've got an MOC
      • You've got the core for single-idea, atomic notes
      • You've got a backlink to the original file

DOING

...

DONE

  • "Explode" highlights into individual notes (assumes I'm creating the list of links as well)
  • command (SHIFT + ALT + =) which then copies all of the highlighted text either into:
  • click a button which then copies all of the highlighted text either into:
  • allow for <mark></mark> to be used as highlights
  • allow for standard bold (**) to be used as highlights
  • allow to optionally include or completely exclude ## Highlights heading
  • allow to change text in heading ## My Custom Highlights
  • allow to include note-name in heading such as ## From: $NOTE_TITLE
  • allow to add footnotes for each highlight and include link to source-note
  • allow to optionally enable bold for highlights
  • allow for Command Palette to trigger copying (Works sort of, bug in Electron)
  • my clipboard
  • a new note