> Here's the scenario... I have a lengthy tiddler and wish edit some > line deep down in the tiddler. I double click on the line I wish to > edit and would like the tiddler to open in edit mode with the cursor > at the same line I double clicked on. Is this do-able? If so how?
The problem is that TiddlyWiki's wikify() function that renders tiddler source and creates DOM elements as output is not a two-way mapping transformation. In otherwords, it's next to impossible to start from a given DOM element (i.e., the place you double-click on), and correctly determine the original location in the tiddler source. This is particularly compounded by macros that result in multiple DOM elements from a single piece of source syntax. For example, the <<tiddler TiddlerName>> macro, used to "transclude" content from another tiddler, means that some of the DOM elements you double-click on may not even be defined in the tiddler you are viewing! It *might* be possible to make it work for some extremely narrow use- case where the tiddler contains only statically-defined content without any complex macros, tranclusion, etc. Even so, finding the right mapping between DOM elements and TiddlyWiki source syntax is not a trivial bit of code either. It would be nearly as complex as the current wikify() code that renders the content in the first place! Sorry I can offer a more hopeful response... enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

