Code Monkey home page Code Monkey logo

extract-highlights-plugin's People

Contributors

akaalias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

extract-highlights-plugin's Issues

Command names don't need "Shortcut for" at the beginning

Extract Highlights adds 2 commands to the Command Palette:

  • Extract Highlights: Shortcut for extracting highlights
  • Extract Highlights: Shortcut for highlighting sentence cursor is in

The "Shortcut for" is not needed, and makes it harder to see the important information.

They should be:

  • Extract Highlights: Extract highlights
  • Extract Highlights: Highlight sentence cursor is in

(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".

Embed instead of extract

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.

Change from bullets to quotas (- to >) for highlights

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.

Use bold for highlights disabled every time I exit Obsidian

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.

Will this project support for CJK sentence segment?

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?







Make inner link to highlighted texts (blocks)

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

Highlighted text becomes note/file name instead of text inside note

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?

== extraction accross multiple blocks of text

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

Secret highlight mode aborts extraction in files created via "PDF to markdown" 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:

  • Auto-capitalize
  • Create links
  • Open new file with highlights
  • Explode links with new notes
  • Open exploded notes on creation

It appears to work well on every other kind of file.

Markdown highlighting is not extracted?

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?

How to use Extract highlight while keeping refs & notes separate ?

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.

FR: Make it work with <mark> attributes like <mark class="green">

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

  • double-equals highlights (==highlight==)
  • text marked with <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.

Allow to copy the full paragraph containing the highlight when extracting it

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 !

Add Block Reference to highlighted text

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.

FR: Prepend Multiple Lines instead of "Header Text"

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.

Bug: Exploded notes remove slashes from nested tags

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

Hotkey for highlighting sentence cursor is in conflicts with MacOS hotkey to type em dash

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.

Respect lists elements when highlight a line

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.