joethei / obsidian-rss

Read RSS Feeds from inside Obsidian
GNU General Public License v3.0
394 stars 23 forks source link

[Idea] Highlight in Reading View #60

Closed FelipeRearden closed 2 years ago

FelipeRearden commented 2 years ago

Hello @joethei !!!!!!!!!!

First of all, I know that is a crazy idea but if I don´t share this with you I couldnt sleep today :)

Since we can select text in the reading view my instinct is to have the ability to highlight the selected text

My FR

A button in the reading view (and a hotkey shortcut) to apply highlight to the selected text

A. Create a New Note Behavior

When creating a note, the note is created with the highlight text using Obsidian syntax ==selected_text==

B. New Variable {{highlights:separator}}

A new variable to gather all highlights.

In my mind, the best separator is new lines \n .

In my specific case I would use {{highlights:\n\n}} because I like to have a blank line between each highlight.


I dont know if is feasible and feel absolutely free to discard this. But I know that if this is feasible, you are one of the few people in this community that can make this happen.

what you have been doing in all of your plugins in FANTASTIC! !!! :)

Thanks for reading this !

I wish you a fantastic day!

joethei commented 2 years ago

Not working all the time currently, still some polishing to do.

FelipeRearden commented 2 years ago

You are a legend @joethei !!!!!!!!

I can't believe that is happening !!!!!!!!!!!

Thank you very much for making this real !!!!!!!!!!

AMAZING !!!!!!!

wenlzhang commented 2 years ago

This is also what I was looking for! It would be excellent for reading and annotating private stuff and replacing the Inoreader and Readwise combination for some cases.

Not sure if it is possible, but it would be great if the following can be achieved:

  1. One highlights some text in the article reading window/view.
  2. One extracts all highlights.
  3. A note (Note A), e.g. Annotation.md, containing all highlights would be created.
    1. Also, a note (Note B), e.g. Article.md, containing the original article content would be created.
    2. Each highlight in Note A would have a block link to the original context in Note B.

For instance, Note A and Note B can be as follows:

# Note B

This is ==a sentence in note B==. ^blockid
# Note A

> a sentence in note B

- [[Note B#^blockid]]

In short, the workflow above would help link the extracted highlights to their original context that can be very useful for future revisit. Of course, there can be a separate command for choosing whether to save/link to the original article content together with the highlights.

The highlighted part in Note B does not need to have the highlight symbols ==a sentence in note B==, if it is difficult to implement. It is the block link that matters more.

It would be great if the following can also be somewhat supported:

---
title: {{title}}
source: {{link}}

tags: [{{tags}}]

published at: {{published}}
created at: {{created}}
---

# {{title}}

> {{description}}

---

> {{highlight.text}}

- {{highlight.blockid}}
joethei commented 2 years ago

You will be able to create highlights in the next update.

@wenlzhang I have moved your request to #65, not sure how to even implement that though.

FelipeRearden commented 2 years ago

You will be able to create highlights in the next update.

Thank you very much @joethei !!!!!!!!!

What a great news to start 2022 :) :) :)

FelipeRearden commented 2 years ago

Hello @joethei !!!!!!!!!!!

I'm sorry for my late reply !!!!

I got sick since Christmas (there is a flu crisis in my country that is making everyone sick). But finally I'm getting better !!!!!


It's working perfect thank you very much for making this happen. The highlight engine is perfect !!!!!!!!!!

If you allow I just wanna check with you if some advanced features could be add to the highlight feature in the future 🙏 🙏 🙏

1- A "naked" {{highlight}}

Would be amazing to have a variable without -\s in the beginning of every highlight

In my humble opinion, for long and structured articles would be more easy to organize and prepare the highlights for the personal writing

{{highlight}}

New {{highlight_B}} highlight1 highlight2 highlight3

2- {{highlight:separator}} for line breaks \n

Based on 1 would be amazing to have a line break between each highlight

For long articles, I think that could be better to organize the highlights

{{highlight}}

New {{highlight:line_break}} highlight1

highlight2

highlight3

Idea -> Maybe a setting/toggle in the Advanced Section to add a line break to the {{highlight}} variable :)


Thanks again for making this FR a reality !!!!!!!

You are an Obsidan legend !!!!!!!

Have a great day!

joethei commented 2 years ago

you could just use

{{highlights:%%highlight%%
}}

for 1. and

{{highlights:%%highlight%%

}}

for 2. as your template.

%%highlight%% is one highlight in this case and the template gets processed for each. Note the linebreaks as \n sadly does not work in this context.

FelipeRearden commented 2 years ago

AMAZING!!!!!

It worked @joethei !!!!!

Now I can customize the variable the way that I want !!!!

Thank you very much for this trick !!!!

This is great 😊

Have a great day!!!