akaalias / extract-highlights-plugin Goto Github PK
View Code? Open in Web Editor NEWManage your highlights in Obsidian by easily creating, removing and exporting them.
Manage your highlights in Obsidian by easily creating, removing and exporting them.
Extract Highlights adds 2 commands to the Command Palette:
The "Shortcut for" is not needed, and makes it harder to see the important information.
They should be:
(Or the second one could be "Extract Highlights: Highlight current sentence", which is smoother and more concise, but a little less explicit.)
Look at the other commands in the palette to see how they are named — they are commands, as if Obsidian were a person and you were telling them what to do: "Add embed". "Copy file path". "File explorer: Reveal active file in navigation".
What if we could keep the original text in one side and embed the selected text into other part? I would use the plugin Quoth for this.
As noted - I'd like to have highlights listed as quotes, rather than bullets, so that when I am moving them around I know they are anothers words, not my own - just in case I forget far in the future when reviewing.
Hi, first of all, I really like this plugin, probably my favorite of all. Thanks for the effort.
When highlighting text, I much prefer using ... instead of ==...===, that's why I would like to keep the "Use bold for highlights" option enabled all the time, but I found that it automatically disable itself everything I exit Obsidian, which means if I want to extract the bold highlights, I need to go to settings and enable it every time, which can be a bit annoying.
I hope this can be fixed in future iteration, thanks again.
When use hotkey shift+alt+-
on an Chinese paragraph, it will highlight the whole sentence, so I guess the segment method is use English stop words like ".? etc.
If this could support CJK articles will be nice?
。
!
?
”
“
(
)
Hi,
Is it possible to insert a function to make inner link to highlighted texts (blocks).
I use your plugin to make note summary at the begining of the note and works very well,
but there is only active link to new outer notes or foot notes, but highlighted blocks.
It would be very worthy to implement this function if doesn't exist ( I couldn't find)
Thanks
Füles
This is an update to what I posted below>
I now discovered that the issue seems to happen when I select "Create contextual quotes".
Without "Create contextual quotes" selected, the plugin performs as expected.
Thank you, Alexis.
---- Previous Post:
Alexis, this is a stunning plugin. Ideal for me. Except it does not work for me as your video shows. My highlights appear as file/note name, not as text inside the note (although abbreviated highlight shows as link).
Your highlights appears: "##Source", then underneath: ">the highlighted text"
Mine appears as bulletpoint "part of highligted text as link", then "Source", then link to original article.
The highlighted text is shown as the name of the file/note.
What am I doing wrong?
As in description - as is, I end up deleting this section ever time I use the plugin. Great functionality otherwise!
Hey, thanks for making this, it has certainly been my most anticipated plugin.
I found a bit of an issue/request
I am extracting big sections of text highlights from a long file.
they are usually parragraphs / multiple blocks of text.
I realized that using ==
in multiple lines/blocks doesn't detect the extraction correctly into the clipboard.
for instance
== this is a single block highlight. if I keep everything within a single block of text there won't be any problems==
compared to this
==if I split this highlight between multiple lines/blocks
the plugin won't extract it into the clipboard==
if it's not possible to fix this through the syntax of ==equal signs==
perhaps this issue could be solved by also allowing to extract sections of text by using the<mark>
tag
<mark>
this way it's easy to define an opening point
as well as an ending point
accross several blocks of text
</mark>
let me know if it'd be useful to provide more examples, perhaps with obsidian screenshots
thanks for the help, and really appreciate the excellent plugin
on 0.10.11:
Plugin appears to not extract every highlighted portion of md files created via a plugin called "PDF to markdown".
Creates index file, than 1 to 3 new files, then stops.
Active options:
It appears to work well on every other kind of file.
I highlighted my notes with highlighter plugin (<mark style="background: #d8e7fe;">my text</mark>
)
Isn't it possible to include in "extract highlights plugin" the text between these markdown tags?
I found this issue a bit difficult to articulate, so I hope I'm being clear enough...
It's related to the apparent conflict between note-taking "best practices" and the current workflow when using your plugin.
For the plugin to work, the contents of our references need to exist in an Obsidian vault.
I should perhaps double-check, but both Luhmann and Ahrens recommend to keep our references separated from our notes.
Now, I'm not strongly opinionated about that, but I'd like to be able to perform a full text search amonst my notes, without seeing contents from my references in the search results.
So the question is, how to use your plugin while keeping references and notes separated, at least when performing searches ?
I can see two options, but I guess there are more, and I was hoping you'd have an opinion on which is best.
The first one consists in having the references in the same vault as our notes, in a dedicated folder, say refs
. Then, when performing search, add -path:"refs/"
to the search options. That's doable, but maybe not very convenient in the long run.
The second option consists in keeping the references in a separate vault. This would solve the issue with search but raise another one: how to move the "exploded" notes from the refs vault to the notes vault, while being able to navigate back from one note to the reference text afterwards ?
I'm pretty sure leveraging symlinks (supported since Obsidian v11.1) would help in this scenario, but I'm unsure they would suffice.
Hi there, and thanks for a useful plugin. I came across a small issue today and wonder if you’d like to fix it.
Currently, the plugin extracts highlights fine for
==highlight==
)<mark>something</mark>
but it will not extract highlights if the <mark>
element has attributes, like <mark class="green">
or <mark style="background-color: pink;">
.
Since I showed how to use "compatible" different-colour highlights in the forums today, I’d be grateful if Extract highlights could also handle these.
Hey Alexis,
thank you for your work and your catching enthusiasm !
There's one feature I'd greatly benefit from if you added it to your plugin.
I do use highlighting to delimit the passages that trigger my interest when reading, then I follow pretty much the same workflow as the one you describe ; but most often I find that only extracting the highlighting doesn't carry enough context.
Thus, for each highlight, I manually extract the whole paragraph containing it.
It find it great if you could allow it with your plugin.
Let me take an example for illustration.
Here's some text comprising one highlight:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, ==quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat==. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
My proposal is to allow the created note resulting from your "text exploding" process ton contain:
## Source
> Ut enim ad minim veniam, ==quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat==. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
instead of just
## Source
> Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Obviously, the generated title for that note would stay just the same.
Cheers !
Would it be possible to add a block reference to the highlighted text? So the Quotes are not just link to the source file but also directly to the exact position in one block.
This would enable us to insert a yaml-header in every text of notes created by the explosion mode. Basically, a template for the exploding-notes 💥
This in turn enables the dataview plugin to process the all the extracted highlights, which will create great synergistic value, as the dataview plugin by itself is not able to process blocks / parts of note contents, but only the metadata of a note.
I have a use case where tags are included in the highlight. Some tags are nested. But when explode notes mode is enabled any nested tags, e.g. one/two, are modified into a flat tag, e.g. onetwo. This destroys the nestedness of the tag.
Note: this behavior does not occur with contextual exploded notes
I active the "Include highlighter color" in the setting of the plugin but when i extract the highlight from the pdf i can't find any tag for the highlights color !!
The plugin's hotkey "Shortcut for highlighting sentence cursor is in" uses the same key combination as the default MacOS way to type an em dash (—). This confused me until I figured out what was happening; then it was easy to work around by deleting the hotkey.
Ideally you should pick another key combination (I understand picking them is hard), or not assign a hotkey by default.
Now when I press SHIFT+ALT+_
whole line is highlighted even if this is a part of a list.
It destroy lists which is not expected for me.
Now when I have got
# header element
- line one
- line two
- [ ] task
and use hightligh function
i get:
==# header element==
==-line one==
- line two
==- [ ] task==
but, i would like to get:
# ==header element==
- ==line one==
- line two
- [ ] ==task==
it should respect all possible in obsidian lists and headers elements
# header
## header
### header
#### header
##### header
* elememt
+ element
- element
1. elemenet
2. all numbered elements
- [ ] task
- [x] task
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.