forked from foambubble/foam
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support for block IDs as links #9
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Logseq allows linking to blocks through a block ID system.
As I understand it, when the user requests a reference to a specific block, Logseq uses a random number generator to create a block ID, then inserts that ID as a property in the block that is being referenced.
usage example:
![demonstration of block ID and usage](https://private-user-images.githubusercontent.com/130425119/285032013-6ea8c602-ec34-4949-b90a-46d734fb5f86.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5NTc4MzMsIm5iZiI6MTcyMTk1NzUzMywicGF0aCI6Ii8xMzA0MjUxMTkvMjg1MDMyMDEzLTZlYThjNjAyLWVjMzQtNDk0OS1iOTBhLTQ2ZDczNGZiNWY4Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNlQwMTMyMTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNTM5OGU2NzgyZjBlMDkzMzc5ZWI3OGI4OWVlZjRkYzVjMjAwMmRiMGUzNzcyN2U1MDcwNmIyMWI0MmVmNGRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.1RhnfIGW1Lpy4hLfr1QJtnNF_MaMPHrfAjma5IqGB_U)
At this stage, Loam should at least support clicking on block IDs (cmd+click, just like normal links) to go to the referenced block. At a future stage we should also consider block-level embeds (foam already support page embeds, so block embeds shouldn't be that much harder), and previewing the contents of a referenced (not embedded) block in the markdown preview panel.
The text was updated successfully, but these errors were encountered: