Keyboard Shortcut to Save

121 views
Skip to first unread message

Ken Gray

unread,
Oct 8, 2020, 11:31:05 AM10/8/20
to TiddlyWiki
Is there a keyboard shortcut that would do a manual save (the 'Save" icon)?

Eric Shulman

unread,
Oct 8, 2020, 1:54:00 PM10/8/20
to TiddlyWiki
On Thursday, October 8, 2020 at 8:31:05 AM UTC-7, Ken Gray wrote:
Is there a keyboard shortcut that would do a manual save (the 'Save" icon)?

There isn't a pre-defined shortcut, but it is easy to add one:

1) Create tiddler $:/MyShortcuts/save-file, tagged with $:/tags/KeyboardShortcut, containing:
<$action-sendmessage $message="tm-save-wiki" />

2) add a field named "key", with a field value of:
((save-file))

3) Create another tiddler, $:/config/shortcuts/save-file, containing:
ctrl-shift-S

4) Create another tiddler, $:/config/ShortcutInfo/save-file, containing:
{{$:/language/Buttons/SaveWiki/Hint}}

Notes:
* step (1) defines the action to perform
* step (2) defines the binding to the keystroke definition in step (3)
* step (3) defines the keystroke combination to use
* step (4) defines the description of the shortcut

That's it.  You can then use ctrl-shift-S to save the file.

enjoy,
-e


 

Ken Gray

unread,
Oct 8, 2020, 2:28:28 PM10/8/20
to TiddlyWiki
Awesome!  Thanks.
odd, though.  when hit it, it opens the 'import' tiddler.  That's not supposed to happen is it?

Ken Gray

unread,
Oct 12, 2020, 11:02:34 AM10/12/20
to TiddlyWiki
I actually changed it to ctl-alt-s and it works perfectly!
thanks.
Reply all
Reply to author
Forward
0 new messages