Keyboord plugin: ideas on how to implement a shortcut for deleting a tiddler field while in edit mode

76 views
Skip to first unread message

nakedmind

unread,
Sep 9, 2018, 10:24:31 PM9/9/18
to TiddlyWiki
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

BurningTreeC

unread,
Sep 10, 2018, 2:41:53 AM9/10/18
to TiddlyWiki
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

nakedmind

unread,
Sep 10, 2018, 4:20:54 AM9/10/18
to TiddlyWiki
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?

nakedmind

unread,
Sep 10, 2018, 5:07:59 AM9/10/18
to TiddlyWiki
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! :)

Mark S.

unread,
Jan 17, 2019, 1:36:19 PM1/17/19
to TiddlyWiki
Does this project have a new home? I'm getting a 404 error at GH. (https://burningtreec.github.io/ -- "There isn't a GitHub Pages site here.")


-- Mark

Diego Mesa

unread,
Jan 17, 2019, 1:38:38 PM1/17/19
to TiddlyWiki
Hey Mark,

In this thread: 


BTC mentioned that big parts of the plugin were moved to the core, and the other parts were moved into the TW5-Navigator:


Diego

Mark S.

unread,
Jan 17, 2019, 2:15:53 PM1/17/19
to TiddlyWiki
The reason I ask is that it is in Dave's toolmap. Should the toolmap entry be replaced with the Navigator entry, or completely dropped?

Thanks!
Reply all
Reply to author
Forward
0 new messages