Import Image Keyboard Shortcut

56 views
Skip to first unread message

jin

unread,
Aug 30, 2020, 8:43:30 AM8/30/20
to TiddlyWiki

I have already done:

o Creating a tiddler named "$:/config/shortcuts/Import-Image" with ctrl-shift-K as content
o Creating a tiddler named "$:/config/ShortcutInfo/Import Image with the same info as int the tools

I also created a tiddler named "$:/config/MyKeyboardShortcuts/Import-Image" with $:/tags/KeyboardShortcuts as the tag however I don't know what to put inside the tiddler. I also added a field named key with a value of Import-Image.

jin

unread,
Aug 30, 2020, 8:49:19 AM8/30/20
to TiddlyWiki
Oops I meant Import

kebi

unread,
Aug 30, 2020, 9:13:30 AM8/30/20
to TiddlyWiki
I did something similar with my wiki, using a toolbar tiddler:

tags
$:/tags/EditorToolbar
body
<$action-sendmessage
    $message="tm-edit-text-operation"
    $param="replace-selection"
    text="[img width=100 []]"
/>
fields
condition :[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
shortcuts
: ((Import-Image))

Now when you press ctrl-shift-K "[img width=100 []]" should be automatically generated, after that you only need to copy the link or the name of the image tiddler inside the square brackets.

Cheers
kebi

jin

unread,
Aug 30, 2020, 9:37:34 AM8/30/20
to TiddlyWiki
I tried what you said and wow, I didn't know I wanted that haha, thank you!!
Reply all
Reply to author
Forward
0 new messages