Replies: 5 comments 2 replies
-
Every keypress (among other things) triggers a refresh -- nothing to do with how your tiddler is tagged, or what it contains. Your second point is kinda hard to follow. It amounts to saying "Tiddlers tagged X ... are stored in separate tiddlers." :/ I think you're looking for a sandbox that will allow you to edit freely, save, the push another button that publishes the tiddler to the live wiki "above". Sounds like something innerwiki might do. |
Beta Was this translation helpful? Give feedback.
-
Oh, but so why are only procedures/macros problematic to edit live? Focus is lost, for example.
What I mean is the problems that come when you author complex code in parallel with procedures. When the two parts are defined in the same tiddler, it is only a minor hassle to scroll up and down between them, but when procedures are externalized into separate tiddlers, it is significantly more annoying to modify and edit code.
It doesn't have to go as far as a proper sandbox or an innerwiki; in the SideEditor plugin the macro text is simply copied into a temporary tiddler for edit and then copy it back via a button click. But, yes, the main point is that the editing should be much simpler even if the procedure is in an external tiddler. |
Beta Was this translation helpful? Give feedback.
-
Okay, I'm following much better now. Yes, the interminable loss of focus thing. I did create a workaround mostly targeting single line
Actually, I thought about that a bit more. Perhaps it's my wikis behaving like that: @telmiger's word counter might be to blame -- not really sure. It certainly works keypress-by-keypress. But to answer your question, "why", I'm not sure. They're in draft mode and should not (I believe) affect anything else in the store (which is what TW should be referencing). Aside: I also use a split-editor where a given long tiddler can be edited "twice" in the same view -- saves on the scrolling up and down quite a bit. You could do the same with a modified editTemplate. |
Beta Was this translation helpful? Give feedback.
-
I think the PageTemplate imports all macro/procedures no matter they are draft or not! |
Beta Was this translation helpful? Give feedback.
-
Do you mean when using the edit mode preview feature? (Because, surely, you don't have that problem in "pure" edit mode, right? @CodaCodr refers to Elmigers "word counter", which I'm not familiar with, but it does sound plausible that such a feature might count in-editor words as they are typed. But that is not the native situation in TW, I'd say.)
For edit mode preview, I can see how this would be a problem; should it show an actual live preview or should it not? Note that my OP doesn't request to solve this particular aspect of the problem. I'm just stating that it is a problem when working with procedures etc. My OP is more about "geographical proximity" so to say. I'll edit it to make this clearer. |
Beta Was this translation helpful? Give feedback.
-
Tiddlers tagged
$:/tags/Global
or.../Macro
are iffy to edit for two reasons:Idea: Could there in the (regular) tiddlers edit mode, above the text field, be an editview template that transcludes all locally used procedure definitions in an editor"? The procedures etc are still externally stored, and global, but now editable very conveniently. Positioned above the text field, they'd even be positioned at basically at the same location as local procedures are defined!
ADDED: The idea would mitigate the "navigate back and forth" bit, not the refresh triggering. The circumvention for the latter could be to merely show a copy of the procedure code in the proposed editor, and a button to overwrite the content into the actual procedure tiddler. (I use this method in the SideEditor for editing tiddlers tagged
$:/tags/Macro
(not yet updated to handle/Global
))Whatyathink?
Beta Was this translation helpful? Give feedback.
All reactions