Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Idea] Highlight in Reading View #60

Closed
FelipeRearden opened this issue Dec 23, 2021 · 8 comments
Closed

[Idea] Highlight in Reading View #60

FelipeRearden opened this issue Dec 23, 2021 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@FelipeRearden
Copy link

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 joethei added the enhancement New feature or request label Dec 23, 2021
@joethei joethei self-assigned this Dec 23, 2021
@joethei
Copy link
Owner

joethei commented Dec 23, 2021

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

@FelipeRearden
Copy link
Author

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

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

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

AMAZING !!!!!!!

@wenlzhang
Copy link

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:

  • One can customize the template for creating the annotation file, i.e. Note A. For instance,
    • Variables for creating Note B can be used.
    • There can be some new variables for denoting highlights, e.g. in the following example.
  • One can unselect the highlighted text before creating the annotation file.
---
title: {{title}}
source: {{link}}

tags: [{{tags}}]

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

# {{title}}

> {{description}}

---

> {{highlight.text}}

- {{highlight.blockid}}

@joethei
Copy link
Owner

joethei commented Jan 4, 2022

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
Copy link
Author

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

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

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

@joethei joethei closed this as completed in d93b7f4 Jan 5, 2022
@FelipeRearden
Copy link
Author

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 !!!!!!!!!!

  • version 1.1.0
  • Obsidian 0.13.19

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}}

  • highlight1
  • Highlight2
  • highlight3

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}}

  • highlight1
  • Highlight2
  • highlight3

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
Copy link
Owner

joethei commented Jan 22, 2022

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
Copy link
Author

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!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants