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
Feature: support for checking list item block-id in Note Updates #109
Comments
well in obsidian, block-id should be placed at the end of a block, such as regular paragraph, blockquote, callout etc. the handling of list as a block is a bit tricky. You can place it at the end of a list item to refer to specific one item, or at new line right next to the end of list to refer to the entire list. You can test if it works by placing block-id and check if the block can be refer to in internal link auto-complete. https://help.obsidian.md/Linking+notes+and+files/Internal+links#Link+to+a+block+in+a+note |
I tried adding block-ids to all list items in my annot template, but all the annotations are still being reimported and duplicated (a new set of every heading and annotation), each time I update the literature note. This happens with At the end, I switched to Reading mode to demonstrate that the block-ids are recognized by Obsidian, since they disappear in Reading mode. My current annot template is as follows:
|
well you need a space before |
I believe the output of this does have a space. |
In your template some of the I haven't explictly support update at the level of list item yet, so currently using this template should get in-place updates working:
|
okay i see the problem, I haven't handle block-id inside list items during annotation checks, I'll mark this as a feature request since I haven't explictly support update at the level of list item yet |
Since I'm using this with Logseq, would it be possible to add the blockids to |
That's not true. Try this test: Link to a block, so Obsidian generates a block-id. Then, delete the space so the block-id right next to the text. The block link will still work, and the block-id will still disappear in Reading mode. I just tested this. Here's a demo of the test above:
You are right about the fact that if there are tags, the block-id won't have a space. I didn't notice because: I left out a space there because in the case of no tags, there would be two spaces before the block-id (the one before the tags and the one before the block-id. I fixed it by adding a space as you noted, and putting the space before the tags inside the tags' if statement.
That's not what you can see in the screenshot below. The reason the block-id from Obsidian-Zotero is not recognized in these screenshots is because Obsidian added another block-id after I linked to the block, like I wrote. Below, you are seeing the block embedded in another note. The Obsidian block-id is not visible, because they aren't visible in block embeds. Only the Obsidian-Zotero block-id is visible, because it is not recognized as a block-id after Obsidian added another block-id after it. However, since the 1.0.1 update, Obsidian now reuses the Obsidian-Zotero block-ids when I link to or embed those blocks. I am not sure what changed. Did you provide a fix for that?
I guess this means that we are in agreement that the space was not the issue. So the examples you provided won't work yet? |
The update around this is not available before 1.0.2, maybe it's because your latest template fix the block-id formatting issue? The initial template introduced space after block-id, making it invaild, and the update template posted later seems to have that fixed. In 1.0.2, the block-id in list item are detected as well, so it should not creating duplicates now. |
Using this annot template:
Am I using the blockID wrong? Perhaps it doesn't work when comments and annotations are list items? In any case, I don't think the info from the settings is sufficient:
What does properly mean here?
The text was updated successfully, but these errors were encountered: