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

Surrounding context in backlinks #190

Closed
srid opened this issue May 15, 2020 · 5 comments · Fixed by #451
Closed

Surrounding context in backlinks #190

srid opened this issue May 15, 2020 · 5 comments · Fixed by #451
Assignees
Labels
enhancement New feature or request from-ka Zettel Format Anything that affects the structure of the zettel text
Milestone

Comments

@srid
Copy link
Owner

srid commented May 15, 2020

The "surrounding context" of a link or a tag is the text surrounding it.

  • When showing backlinks, we should as well display (in some manner) this surrounding context.
  • When showing a list of zettels by tag, we should show the surrounding context of the inline tag (requires Inline tags #189)

For example, if a zettel links to two other zettels:

Anger throws one off the learning [[er3ksi33h]]. 

Feeling of rushing/impatience dislodges us from a 
state of flow, which is essential for [[h4hd8hekk]]

In the zettel [[er3ksi33h]] (titled Mindset), the link to this zettel should also show the surrounding context which is "Anger throws one off the learning <Mindset>. " Same for the second link.

Likewise, for if a zettel uses a tag:

Gaslighting is enabled by the victim's #psychology/cognitive-distortion
without which the victimizer is rendered powerless to influence their victim.

Then when displaying its link in a zettel that queries for the tag, we should display (perhaps as hover text) its surrounding text.

@srid srid added enhancement New feature or request Zettel Format Anything that affects the structure of the zettel text labels May 15, 2020
@srid srid mentioned this issue May 15, 2020
@felko
Copy link
Contributor

felko commented May 15, 2020

This could be done using something like "hovercards", instead of showing the context in the backlinks section (so have the same behavior for both zettel links and queries by tag). Example:
image

@srid
Copy link
Owner Author

srid commented May 15, 2020

Good idea. And yes, that's the kind of UI I'm leaning towards.

A larger goal here is to continue to keep the UI lightweight and simple.

@leira
Copy link

leira commented Jul 28, 2020

Rather than hover cards, I do see the value of a plain backlist of contexts. It is just like Roam Research's backlists, which makes even a empty with just backlinks useful. This is not the best example, but this is the picture I can find: Roam Research

One use case I really like to see is, I use Neuron for project pages and work journals. I want to keep everything I do on the journal page, but I also want to aggregate all the relevant journal entries to the project page. With surrounding context, it is very easy to do. Any mention of the project page will be aggregated with context in the project page.

With surrounding context, it will enables a lot of very interesting use cases.

@bulbousBullfrog
Copy link

I'm also interested in being able to 'label' links between notes, for example to label with a reason as explained in #185 . While I do like the idea of surrounding text as context, I was actually wondering if it would be possible to have a note itself be the link label between two notes notes.
For example the following linked three notes:

<JournalYYYYMMDD> ⤚⤞ <Zen Meditation> ⤚⤞ <Meditation Methods>

could be labeled like this

<JournalYYYYMMDD> ⤚<Reasons for Meditation>⤞ <Zen Meditation> ⤚"is a"⤞ <Meditation Methods>

By being able to use notes as link labels, there is the potential to have additional information in the structure for free. For example, look what happens when we have two note-links:

<JournalYYYYMMDD> ⤚<Reasons for Meditation>⤞ <Zen Meditation> ⤚<Preferred Methods>⤞ <Meditation Methods>

we have the set of 3 original notes:
<JournalYYYYMMDD>, <Zen Meditation>, <Meditation Methods>

but then we also have a new set of note-links that themselves are a Folgezettel:
<Reasons for Meditation> ⤚⤞ <Preferred Methods>

This connection may have never been made manually, but it 'falls out' of the structure.

Brainstorming like this shows it could have benefits for future features. After all a text label can just be seen as an empty note with only a title.

Note: If viewing a Zettelkasten as a category, this may be related to the Arrow Category

@srid srid mentioned this issue Aug 7, 2020
3 tasks
@srid srid added the v2 Next generation neuron -- simple core, with plugins label Sep 12, 2020
@srid srid pinned this issue Sep 12, 2020
@srid
Copy link
Owner Author

srid commented Sep 12, 2020

@bulbousBullfrog Link labels can be implemented as a plugin (we don't have a plugin architecture yet; it is in roadmap), without baking it into the core of neuron.

commonmark's attributes extension can be used to extend Markdown, so you can do something like: [[meditation-method]]{.label=is-a}.

@leira Agreed.

@srid srid added this to the 1.0 milestone Sep 12, 2020
@srid srid changed the title Surrounding context Surrounding context in backlinks Sep 13, 2020
@srid srid modified the milestones: 0.8, 1.0 Sep 20, 2020
@srid srid unpinned this issue Sep 20, 2020
@srid srid pinned this issue Oct 20, 2020
@srid srid mentioned this issue Oct 30, 2020
4 tasks
@srid srid self-assigned this Oct 30, 2020
@srid srid closed this as completed in #451 Oct 31, 2020
@srid srid added from-ka and removed v2 Next generation neuron -- simple core, with plugins labels Nov 3, 2020
@srid srid unpinned this issue Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request from-ka Zettel Format Anything that affects the structure of the zettel text
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants