kookma / TW-Trashbin

Trash bin tools in Tiddlywiki. Delete tiddlers and restore them easily
https://kookma.github.io/TW-Trashbin/
16 stars 3 forks source link

[feature request] navigate to tiddler when restored #5

Closed hchaase closed 4 years ago

hchaase commented 5 years ago

navigate to tiddler when restored. That would be expected behaviour I think. I tried to do it in$:/plugins/kookma/trashbin/macros/restore but again I dont know how to remove the prefix.

<$action-navigate $to="[<currentTiddler>removeprefix[$:/trashbin/]]"/>

kookma commented 5 years ago

There are three points where you have restore button

  1. in trashbin sidebar tab in front of each individual tiddler
  2. in trashbin sidebar tab in restore all tab
  3. in toolbar of an individual trashed tiddler

I think this make sense for case 3! What do you think?

kookma commented 5 years ago

<$action-navigate $to="[<currentTiddler>removeprefix[$:/trashbin/]]"/> This is correct and should be placed after restore!

hchaase commented 5 years ago

yes definitely case 3 could also be relevant for 1 I would think. But as the modified date gets updated they will be at top in the recent tab, however I think it would be a better experience if you navigate to them in the story river (for 1).

kookma commented 5 years ago

Okay, thank you! I will work on that to see how I can implement!

kookma commented 4 years ago

Done! See release 1.1.0