Replies: 2 comments 4 replies
-
Hi @linonetwo you'd like to make individual lines within a tiddler be addressable via links of the form How is the hash computed? Does the hash change if the text of the line changes, or are hashes remembered somehow? I understand this need, and it crops up in various forms fairly often. The TiddlyWiki way of addressing this need would be to put each block into its own tiddler. I've always felt that attempts to add support for addressable units within tiddlers would gradually end up re-inventing the tiddler, ending up with duplication in the design. |
Beta Was this translation helpful? Give feedback.
-
But if you ask me to give a solution immediately: Let's just use partially Obsidian compatible way, which is also text-based, and proven to work stably: Use hash
What is different to Obsidian, is our Error handling
Virtual tiddler
Maybe we can just call these "line with ^hash" as "Virtual tiddler" or "Derived tiddler" or "Virtual Fragment tiddler", and they have fields:
We construct them during startup, just like how we build indexer at startup, which can't be defered #7277 In this way, most of things will work out-of-box...Just need to prevent them get sync to twcloud / backup to git / store to fs, by checking the "virtual-parent" field, like we check the Update all other thingsThe Backlink indexer needs an update, luckily that it is constructed at runtime, and the index is a private member (is it?), so we don't need to worry about the back compatibility. Also need to track block level link. So Need two indexers. Other utils
...TBD |
Beta Was this translation helpful? Give feedback.
-
I'm thinking about making a back-line-link-indexer, that works like backlink-indexer, but can do RoamResearch/Obsidian/Logseq style block level link [[Index^aw35awf]] Title^hash-of-line.
And it may also work for line level transclusion.
This feature is useless when user not using outline a lot, but with WYSIWYG editor, typing a list is much smoother, so this might be a useful feature.
P.S. I can't search out an issue about this, using keywords in the title, but I remember I have seen one years ago.
PR: #7744
Beta Was this translation helpful? Give feedback.
All reactions