Never mind. I figured it out. I created the tiddlers
*$:/config/ShortcutInfo/delete-selected-field* and
*$:/config/shortcuts/delete-selected-field*.
Assigned it to ctrl-alt-d. And now I can delete fields using keyboard! :)
On Monday, 10 September 2018 16:20:54 UTC+8, nakedmind wrote:
>
> Can I just re-use your shortcut? I tested ctrl-alt-D at your demo site and
> it's indeed working. But it's not showing up in the list of shortcuts. How
> were you able to assign the shortcut?
>
> On Monday, 10 September 2018 14:41:53 UTC+8, BurningTreeC wrote:
>>
>> Hi @nakedmind,
>> what I'm using at burningtreec.github.io/KeeBoord is the <$keyboard>
>> widget to do what your asking.
>> when a tiddler has a field, you can focus it and press ctrl-alt-d and it
>> gets deleted.
>>
>> these actions are in the tiddler $:/core/macros/tag-picker
>>
>> if you want to do the same with an external keyboard shortcut (a tiddler
>> tagged with $:/tags/KeyboardShortcut) then you would have to know the field
>> you want to delete. Anyway, if you want to do that, you'd do it like this:
>>
>> <$fieldmangler tiddler={{$:/temp/current-tiddler}}>
>> <$action-sendmessage $message="tm-remove-field" $param="my-field"/>
>> </$fieldmangler>
>>
>> or
>>
>> <$action-deletefield $tiddler={{$:/temp/current-tiddler}}
>> $field="my-field"/>
>>
>> ... but these two examples would work only with the specified field and
>> that's a bit cumbersome
>>
>> I'd prefer the <$keyboard> widget solution. Look at the bottom of
>> $:/core/macros/tag-picker
>>
>> Am Montag, 10. September 2018 04:24:31 UTC+2 schrieb nakedmind:
>>>
>>> Hi guys,
>>>
>>> I just want to ask for ideas that will point me in the right direction
>>> on how to implement a shortcut for deleting a tiddler field while in edit
>>> mode using the *Keyboord* plugin by BTC.
>>>
>>> Thanks!
>>>
>>> Eric
>>>
>>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/4a410398-b660-4d75-b2b6-69330f1ce726%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.