Is there a way to save a tiddler and leave the draft open?

I want to save the contents of the draft i’m working on to the tiddler but have the draft tiddler remain open. Is there a way to do it? I want to avoid a close-and-open solution (or otherwise, maintain the cursor position when reopening). I also am not looking to save the entire wiki (saving the draft state as well), but to apply the changes to the original tiddler.

See the following plugin which implements a “Save and Keep Open” button:

https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2FEditButtons

Thanks. It actually closes the tiddler and reopens.

There is a way.

  1. In draft mode, for a field name, type: title
  2. for that field value, type in a name for your new draft Tiddler. It could be unique or the SAME name as the Tiddler you’re currently editing. Don’t save this Tiddler quite yet.
  3. you will get a red highlight Tiddler (an indicator or a new unsaved draft Tiddler) at the bottom of your screen. Click that.
  4. now you will have TWO draft Tiddlers that are identical. Repeat the process if you like or if you feel it’s necessary.
  5. you can now scroll between your “draft TIddlers”. and make edits to them.
    You save time by not having to save and duplicate.
    BUT, you must eventually give the Tiddlers unique names before saving.

AlfieA

See the plugin $:/plugins/telmiger/EditButtons and within that the “Save & Keep Open (Done & Reopen)” button. The olny imperfection is you loose the cursor position.

Here’s a quick clone/hack of the save button you can try out. I just added the text “keep open” to disambiguate it from the standard save button; you’ll probably want to choose a different icon and edit the tooltip/aria-label/description field as desired.

$__custom_ui_Buttons_save-in-place.tid (986 Bytes)

\procedure save-tiddler-button()
<$button
	actions=<<save-in-place-actions>>
	tooltip={{$:/language/Buttons/Save/Hint}}
	aria-label={{$:/language/Buttons/Save/Hint}}
	class=<<tv-config-toolbar-class>>
>
	<%if [<tv-config-toolbar-icons>match[yes]] %>
		{{$:/core/images/done-button}}
	<%endif%>
	<%if [<tv-config-toolbar-text>match[yes]] %>
		<span class="tc-btn-text"><$text text={{$:/language/Buttons/Save/Caption}}/></span>
	<%endif%>
	keep open
</$button>
\end

\procedure save-in-place-actions()
<$action-setmultiplefields
	$tiddler={{!!draft.of}}
	$fields="[<currentTiddler>fields[]] -draft.of -title"
	$values="[<currentTiddler>fields[]] -draft.of -title :map[<..currentTiddler>get<currentTiddler>]" />
\end

<<save-tiddler-button>>