Request: Shift + Delete means Delete and be damned

0 views
Skip to first unread message

Ruzz

unread,
Nov 14, 2008, 8:17:45 AM11/14/08
to TiddlyWikiDev
hi All

Obviously, "chkConfirmDelete - Require confirmation before deleting
tiddlers" is a good and healthy and sanity-preserving idea. However,
repetitions of "click delete, click OK" for anything more than, say,
two tiddlers (I'm very impatient!) is extremely tedious for a list
(story full) of tiddlers I absolutely *know* I want to delete. Would
it be possible to add Shift Key processing (like Windows) to the
existing code so that if Shift is present the confirmation is
bypassed? i.e. :

chkConfirmDelete - Require confirmation before deleting tiddlers
(Shift key to override)

Yes, I realise there are very probably tweakers and tools out there
that process (including deletion of) multiple tiddlers but this is for
those ad hoc "they're here on screen (in story) right now and I just
want to delete them all thank you very much" or even n-1 of them...
you get the idea.

TIA
Ruzz

Eric Shulman

unread,
Nov 14, 2008, 2:56:46 PM11/14/08
to TiddlyWikiDev
> Obviously, "chkConfirmDelete - Require confirmation before deleting
> tiddlers" is a good and healthy and sanity-preserving idea.  However,
> repetitions of "click delete, click OK" for anything more than, say,
> two tiddlers (I'm very impatient!) is extremely tedious for a list
> (story full) of tiddlers I absolutely *know* I want to delete.  Would
> it be possible to add Shift Key processing (like Windows) to the
> existing code so that if Shift is present the confirmation is
> bypassed?  i.e. :
>
> chkConfirmDelete - Require confirmation before deleting tiddlers
> (Shift key to override)

Try this:
http://www.TiddlyTools.com/#TrashPlugin

When you click on 'delete', instead of asking for confirmation and
then deleting the tiddler, TrashPlugin simply
marks the tiddler trash by tagging it with:
'trash excludeLists excludeMissing excludeSearch
systemConfigDisable'
and then closes that tiddler. To empty the trash, you can click on
the <<emptyTrash>> command that you can add to your sidebar, or you
could use some other tool to select and delete everything tagged with
'trash'). To reclaim something from the Trash, open the [[Trash]]
tiddler to see a list of tiddlers tagged with 'trash', click on the
desired tiddler title to open it, and then edit it's tags to remove
the 'trash' tag (as well as the other tags shown above, as desired).

In addition to the above 'trash can' feature, TrashPlugin also handles
TWO keyboard modifiers that can be used when clicking on the 'delete'
toolbar command:

if you hold CTRL while clicking 'delete', it will *bypass the trash*
and use the normal delete handling (with the usual confirmation
messages, if chkConfirmDelete is enabled). If you hold CTRL+SHIFT,
then it not only bypasses the trash, it also *bypasses the
confirmation message* and immediately deletes the tiddler... QED.

enjoy,
-e

Tex Drieschner

unread,
Nov 14, 2008, 3:15:33 PM11/14/08
to Tiddly...@googlegroups.com
eric you amaze me time and again.

Eric Shulman schrieb:

Ruzz

unread,
Nov 16, 2008, 7:37:03 AM11/16/08
to TiddlyWikiDev
On Nov 14, 7:56 pm, Eric Shulman <elsdes...@gmail.com> wrote:
>
> Try this:
>    http://www.TiddlyTools.com/#TrashPlugin
>

My god, man - you're scary. I was thinking about a trash ("bin" here
in the UK) utility along with a purge facility just a few days ago.

Thanks, Eric. Again.

Ruzz

Reply all
Reply to author
Forward
0 new messages