Edit-text widget alternative?

577 views
Skip to first unread message

Dave

unread,
Nov 2, 2015, 11:56:42 PM11/2/15
to TiddlyWiki
I was reading in another thread that there's no solution to the fact that each keystroke in an edit-text widget in view mode causes a refresh.

Is there any other (easy) way to be able to record typing like that in view mode and have it stick (I know I could try to change the editable table macro...)

Philip Dyer

unread,
Nov 3, 2015, 1:10:13 AM11/3/15
to TiddlyWiki
+1

Eric Shulman

unread,
Nov 3, 2015, 1:29:05 AM11/3/15
to TiddlyWiki
On Monday, November 2, 2015 at 8:56:42 PM UTC-8, Dave wrote:
I was reading in another thread that there's no solution to the fact that each keystroke in an edit-text widget in view mode causes a refresh.

Is there any other (easy) way to be able to record typing like that in view mode and have it stick (I know I could try to change the editable table macro...)


Hi Dave,

Try using a separate tiddler (e.g., "Tiddlername/Data") to store the input, and then transclude that tiddler's content back into the first tiddler, like this:

<$edit-text tiddler="TiddlerA/Data" field="fieldname">
{{TiddlerA/Data}}

This works because the tiddler being modified is no longer the one containing the $edit-text widget, and the transclusion of the input from the other tiddler limits the refresh dependency to just the transcluded content, so the state of the input field is undisturbed and you can continue to type without interruption.

-e

Matabele

unread,
Nov 3, 2015, 2:02:02 AM11/3/15
to tiddl...@googlegroups.com
Hi

Further to Eric's answer -- this may be illustrated with this popup:

<$button tag="input" default="" popup="$:/state/demo" tooltip="Testing"/>
<$reveal state="$:/state/demo" type="popup" text="" position="above" default="" class="tc-popup-keep tc-block-dropdown">
<$button class="tc-btn-invisible">
<$action-deletetiddler $tiddler="$:/state/demo"/>
close</$button>

<$edit-text tiddler="Target" class="tw-edit-texteditor" tag="textarea" />
</$reveal>

{{Target}}

-- the $edit-text widget targets the 'text' field (by default) of the tiddler 'Target'
-- changes are reflected within the transclusion
-- the close button isn't essential (but in some cases the popup obscures the box and the popup becomes stuck)

regards

Dave

unread,
Nov 3, 2015, 4:58:25 PM11/3/15
to TiddlyWiki
thank you Eric and Matabele, I'll try that.

Mat

unread,
Nov 4, 2015, 12:09:01 PM11/4/15
to TiddlyWiki
Might the SideEditor be a solution for you?

<:-)

Dave

unread,
Nov 4, 2015, 5:04:55 PM11/4/15
to TiddlyWiki
That's pretty neat; thanks for sharing.

Felix Küppers

unread,
Nov 4, 2015, 5:51:41 PM11/4/15
to tiddl...@googlegroups.com
Mat, you really improved the hell out of your side editor. In the very beginning I was not completely convinced, but it is really a great thing to work with. I have always longed for a solution where you can scroll the river while keeping one tiddler open for constant access. Plus your solution allows us to switch the sidebar tabs – I originally thought it would be better to open a dedicated tab in the sidebar for the sideeditor but this would prevent me from opening other tabs and having the side editor open at the same time. Plus where is the JavaScript? No JavaScript involved – amazing,

Some suggestions/questions/problems.
  • Is there a GitHub repo for this plugin?
  • When I toggle the editor for a tiddler (e.g. "About") then scroll to "Issues" in the river, then I cannot directly toggle issues so it appears in the sidebar editor, but I need to untoggle the editor first. Maybe you can optimize your plugin so all tiddlers that are not toggled can be toggled directly to appear in the editor.
  • In chrome, vertically resizing the editor doesn't work :(

Thanks
-Felix

By the way, I saw that you prefix some of your concepts with abbreviations at twaddle (e.g. "sw:"). I started doing the same a while ago for my notes and found it very handy especially when performing a search in the sidebar, all tiddlers of a category will be displayed next to each other plus it allows quick filtering of search results by only entering the prefix. So far, I was not aware of other users using this technique…glad I am not alone ;)
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/420d6a89-2380-465d-8397-e4df27238fe6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages