I have a facility that allows be to drag any link/title to a drop zone and add that title as a tag or to a list.
However if you drag and drop a tag pill rather than a simple title, every title with that tag will be “dropped” and added to the list.
- This can be useful, but;
- Now if you have tags with hundreds of members bad results can occur, if there is a user confirmation set for each tag, (are you sure? yes/no) it could take you hours of clicks, to break out of this process, so instead you may have to close your wiki and loose any unsaved changes (just happened )
Problem
I cant see a way when defining a droppable area to set a limit to the number of elements that can be dropped in one user action.
We could limit the number of titles in the drag step but this involves editing the core macros relating to the tag and tag pill macros.
Possible solutions
This means I am looking for one or more solutions.
- To break out of the process if it occurs
- To somehow set the droppable area to only accept the first (or only title), or first N titles.
- Disable the tag pill drag option for all titles but itself, or set a maximum.
- If necessary we could add this “feature” back using a tag pill item using $:/tags/TagDropdown
- Perhaps we could enhance the action-confirm message to include the ability to cancel all going forward ?
<$action-confirm $message="Remove $(actionTiddler)$ as a tag here?">
Any guidance appreciated.
Tip:
If this happens to you and your tiddler has a lot, even hundreds of tags, a quick and easy way to remove them is to edit the tiddler, and add the tags field with the field containing a single tag or space, this will replace the tags field with this value in one step.
- Yes, if you add a field that already exists with a value set, it will replace the current field/value.