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

Add support for block-level linking #294

Open
robgrace opened this issue Oct 22, 2020 · 16 comments
Open

Add support for block-level linking #294

robgrace opened this issue Oct 22, 2020 · 16 comments
Labels
enhancement New feature or request foam-core Related to API, core model or feature
Milestone

Comments

@robgrace
Copy link

robgrace commented Oct 22, 2020

(This is more of a core feature, rather than an enhancement, inasmuch as foam is trying to replicate Roam behavior):

Roam, and now Obsidian, provide support for block-level linking between markdown notes. It would be great if Roam could follow suit and provide this capapbilty.

Unfortunately, there are now three styles of intra-note linking to choose from:

  • Roam: ((block-id)) to text block (bullet) with internal block-id
  • Obsidian: [[NoteTitle#^block-id]] -- link to a text block annotated with ^block-id
  • Extended Markdown: [Description](#heading-id) -- link to a heading annotated with {#custom-id}

I vote for the Obsidian-style linking, since this is the format that I'd imagine most people will be co-editing with vscode.

@ingalless
Copy link
Member

Hey @robgrace!
Great suggestion, and one that had work started on it a while back:

Foam Sneak Peek: Block Referencing and Block Embedding

It's one of the features we want in Foam

@5hay
Copy link

5hay commented Mar 7, 2021

I really like the ^hash syntax at the end of a block. Is there any progress made or timeline specified when we can expect a first version that includes this feature? Have a nice Sunday everyone.

@kisnows
Copy link

kisnows commented Apr 7, 2021

Really need this feature.

@khramoff
Copy link

Hey, @ingalless. Definitely looks great! Is there any news, progress?

Long time, no see.
If there's any way, I can participate in this, it would be nice.

@ingalless
Copy link
Member

@khramoff @5hay I've not heard of any progress recently. Foam has been undergoing a lot of underyling changes as of late. If I hear any whispers I'll try remember to update this 👍🏻

@Kcalb35
Copy link

Kcalb35 commented Jun 6, 2021

I'm looking forward to this feature, because I really need to re-arrange my blocks of notes in another way. Hope to hear of any progress.

@ChenguangZhang
Copy link

It has been more than 1 year since the sneak peek video was uploaded and there is no block referencing (?). Any workaround?

@huyz
Copy link

huyz commented Oct 2, 2021

I vote for the Obsidian-style linking, since this is the format that I'd imagine most people will be co-editing with vscode.

+1. Dendron also uses the #^hash link format.

@briansunter
Copy link

I would still really like to see this

@riccardoferretti
Copy link
Collaborator

Yes I agree, and the support for sections (#856) implicitly added support for blocks in the model (as a block can modeled as a "type" of section), now it would be a matter of changing the markdown parser to recognize the anchors.
Then of course we'd need to add any convenience that we'd want to make blocks easy to use (to be discussed).

@riccardoferretti riccardoferretti added enhancement New feature or request foam-core Related to API, core model or feature labels Apr 28, 2022
@riccardoferretti riccardoferretti added this to the backlog milestone Apr 28, 2022
@yummta
Copy link

yummta commented Oct 4, 2022

Any news about this? I came from Obsidian and this feature is a really useful.

@chrisUsick
Copy link
Contributor

chrisUsick commented Oct 11, 2022 via email

@pderaaij
Copy link
Collaborator

I am wondering what's missing here. It looks like the requested feature is working. Although a minor issue needs to be fixed in the preview editor.

Or do we want to be able to work more granular then sections?

@riccardoferretti
Copy link
Collaborator

The request here is to allow the linking at the block level, not only at the section level

@john-okeefe
Copy link

The one fix (or maybe checkbox option to select) is that Obsidian never released this feature as an in-line or seamless block. I would love to see that here.

@ryanwwest
Copy link

I'd love to see this added. And transcluding links at the block level too, including transcluding sub-list items if applicable.

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

No branches or pull requests