Is there a tool that will let me drag a bunch of tiddlers onto a tag pill and then have that new tag added to the drop-ees ?
The goal here is to make it easy to re-arrange a tag-based TOC.
Thanks!
Is there a tool that will let me drag a bunch of tiddlers onto a tag pill and then have that new tag added to the drop-ees ?
The goal here is to make it easy to re-arrange a tag-based TOC.
Thanks!
Try TiddlyTools/TOC, which defines <<toc-tree>>
, a fully-compatible alternative macro implementation of <<toc-selective-expandable>>
that handles tag-based OR field-based (e.g., parent
field) TOCs and includes drag-and-drop handling for re-arranging TOC items (see “Notes” for details).
-e
That looks interesting, but it’s a little hard to use. As I drag an item, dozens of helpful (?) pop-ups occur, and don’t go away. I’m using this over in the sidebar, wrapped in tc-table-of-contents div, if that makes a difference. Firefox browser.
Note: The TWCore already handles drag-and-drop of any tiddler title into a tag pill drop-down list (though not on the tag pill itself) to add that tag to the dropped tiddler.
Thanks! I remembered there was something like that, but it is a bit unintuitive. First you have to click on a tag button, and then you can drag into it.
The popups don’t get “stuck” when using Chrome.
So this seems to be a FireFox-related problem. I think it’s a “jitter” issue where FireFox has trouble keeping up with the dragover/dragout events. When it “misses” a dragout event, the popup dragtip can get stuck.
To address this, I’ve added a new variable to TiddlyTools/TOC: toc-show-dragtip
. The default is “yes” (i.e., show the dragtips). When set to “no”, the dragover tips are omitted.
You can set this variable by putting
\define toc-show-dragtip() no
at the start of the tiddler you are using to display the TOC, or you can put the \define
in a separate tiddler (e.g., “HideTOCDragTips”), tagged with $:/tags/Global
, so it will be applied to all uses of TiddlyTools/TOC’s <<toc-tree>>
and <<toc-all>>
macros.
Get the update here: TiddlyTools/TOC
Let me know if that solves the problem for you.
-e
I’ll try that Firefox update. For testing, I switched to Chromium. At first I thought it was working, but then I noticed that it wasn’t moving items, it was adding the new tag correctly, but items still retained their original place as well. I’m not sure if this is the desired behaviour. Also, I wonder if having other tags on a tiddler confuses the moving process.
Thanks again!
Moving also doesn’t occur on Firefox. Adding the new tag is still useful, it’s just more error-prone (“Did I move that tiddler yet?”)
A different approach I took was to alter the tag pill section (line) on the view template to allow dropping a title on to that tag line. The tiddler with be given that dropped title as a tag.
One can then open tiddlers you wish to tag in the story, and the table of contents or other organising list/tree in the sidebar and drag and drop the required sidebar title onto the tiddler.
Let me know if you would like this feature! I call it drop-tags
The drag-drop feature of toc-tree doesn’t seem to work. It does move things into a tiddler (tags it with the tiddler), but it doesn’t move an item within a list using the shift or control key.
Just to be sure, I loaded tiddlytools on Chromium, and then imported items that all shared a common tag and then set up a toc-tree with that tag. I couldn’t get anything to move where I dropped it, though once it went to the bottom of the list.
The CTRL and SHIFT keyboard modifiers for “drop before” and “drop after” can be a little tricky.
Try this:
Start dragging without using the keyboard modifier and then, while dragging, press (and hold) the desired keyboard modifier.
Let me know if this helps…
-e
Another idea: a new here on the tag pill
Alex
there are definitely several implementations of that idea - I think some well polished plugins include it, as well as simpler and more ad-hoc setups (like mine!)
My setup looks like this:
The “new” line I have is derived from ZemoxWiki — a haphazard meandering of notes, thoughts, experiments, links, ...
and my notes mention this plugin as an alternative, which I like the minimalism of it’s UI
The “random” line in my screenshot is based on the code in this thread: Random Tiddler Button (I also have a global “open random” which I use more often when idly looking for inspiration/reminders)
No matter what I try, it won’t let me move things. Sometimes it will put things on a sub-tree (tag with item) – even though I was holding the control or shift key. But it won’t move things around. Perhaps there is some timing issue related to hardware or OS.
I can still move things around the old-fashioned way (click on tag in tiddler, move siblings).
My Reimagin Tags beta plugin (was a package) includes on the Tag Pill Drop down to create new tiddler with this tag (ie the current tag pills tag) rather than the view toolbar button, which is new here with the current tiddler as the tag.
I/We have being brainstorming of late on tag alternatives which logically led to the idea of list tiddlers, or using list fields. Perhaps building a list then providing tools to manipulate that list would help you here. For example;
Regardless on reflection the current tag pill does not provide a drop action, so we could provision one by modifying the tag pill.
The Macro is defined here $:/core/macros/tag and uses $:/core/ui/TagTemplate that calls the tag-pill-body macro defined in $:/core/macros/tag, this whole macro chain is quite convoluted so hard to modify. However we can see it is using the DragFilter on a button widget.
$:/core/config/TagPillDragFilter
containing [all[current]tagging[]] +[!is[draft]]
so if you drag a tag pill you are dragging the list of tiddlers it tags and not the tag tiddler itself.
So we can find a suitable place to wrap part of the tag pill logic with a DroppableWidget (note not the DropzoneWidget - thats for importing tiddlers).
Actions to be performed when items are dropped. It activates 1 action per item
New in v5.3.4 Actions to be performed when items are dropped. It activates 1 action for a the whole list of items
I am happy to proceed it you know if you want this?