Seeking YOUR requirement's for extended Import Handling

Commander allows you to tag batch imports.

1 Like

I also like to keep track of my import “batches” and think we should include the tagging facility. I need not “second guess” the ways people will make use of a way to tag incoming tiddlers at import. Its about enabling features and then users and designers alike will innovate on top of this.

  • Ass was raised the ability to select some or all tiddler to apply a tag to may be helpful.

However I have considered this issue about tracking imports and import batches and to me this may be best served by first allowing imports to be captured in “Import record tiddlers” that contains the “when, where and what” of each import including the list of tiddlers imported. The imported tiddlers can thus retain their original created and modified dates.

  • I was thinking if we could apply an import-date field with timestamps off except these would be exported in tiddlers, so perhaps the import history could be recorded in a searchable log, not the tiddlers themselves?

On Import, Commander shows a button for batch operation!
On click Commander is opened and you can do many batch operations like

  • add/remove tags
  • add/remove fields
  • selective operation
  • add/remove title prefix/suffix
  • search and replace in any fields including title
  • delete some of imported tiddlers
1 Like

Thanks Mohammad. I will review and concider it along side other features being raised. Of course I will avoid reinventing the wheel and may intergrate features or propose additions to commander.

Love your work.

1 Like

Recently I noted @linonetwo has implemented ItonNote which integrates part of Commander. It shows buttons on the tiddler and you can do some batch operation. See TW5 CPL Wiki — TiddlyWiki5 Plugin Library for TiddlyWiki Chinese Communities (tw-cpl.netlify.app)

2 Likes

Really? I didn’t realize I had done that, haha. ItonNote is just a bundle of setup, extracted from my wiki to be reuseable…

2 Likes

I supervised with ItonNote/Aggregation View plugins! I love the buttons for filter search / on the fly creation of sidebar tab / batch operation …

Hmmm, may be off-topic, but reimporting exported CSV from TW will be nice. Export as CSV creates valid CSV with all required contents and fields and its annoying when it cannot be reimported.

Look at the JSON Mangler plugin, it imports csv into a nice interface even before converting it to tiddlers in a plugin.

yes a little off topic, try my suggestion and start a new topic

Thanks, for the record this is a Post Import button.

I think this is a valuable addition however if I want to give the user an import record I need to look at integrating it a little tighter. eg Using commander to add a prefix to each tiddler results in an import record with missing tiddlers.

  • Perhaps I detect if $:/plugins/kookma/commander is not present and present advice to install for extensive batch control if needed.
  • Commander is an “all bells and whistles batch change tool” which is extensive and here I am trying to extend a specific process “the import”.

I tried to see what you mean with no success.

1 Like

From CPL install Aggregations / ItonNote and optionally other subplugins for Aggregations
Then open the sidebar tab for batch operation

This is a library for CPL?
Unfortunately save and reload I get Error: Cannot load tiddlywikicore-5.2.2.js

<$browse multiple>

Doesn’t seem to work for me on Android, I have to go back and import each file in turn. Might be an android limitation but I was expecting to be able to select multiple files in one go.

Also on my wishlist would be a way to set a repeat file for import. e.g

<$browse pathtofile>

I often need to import the same updated file every time. Probably doable already but I couldn’t find it.

I just tested this on Android 12, from tiddlywiki.com and it seemed to work.

  • The trick seems to be the selection process.
  • I am not sure this is possible with security but I have being trying
  • However if the file is not changing, you just want a fresh copy it is similar to the feature I described as;

Thanks for your feedback

You’re right on the Android thing, it works. I was trying it from within Quinoid, where it must be a quirk, but outside of Quinoid multiple selects work as expected.

The second request is for an ability to always import the same file (an updating json file containing a changing batch of tiddlers). I’m looking for an import button that always selects the same file and goes straight to the import dialogue with it. It sounds like something that’s been done before but maybe not as simple as I imagined.

This doesn’t work, where ‘myimportpath’ is a tiddler with the filepath in it.

<$button>
<$action-sendmessage $message="tm-import-tiddlers" param="myimportpath"/>
Click me!
</$button>

Looking forward to seeing the super importer when it docks. Keep up the great work.

As I understand it, if what you ask could be done, it may be possible for a browser session to access a named file or folder on the local system, this would be a security breach. Perhaps it was possible once or may be possible with local permissions like TiddlyDesktop, twexe or hta files.

Hello TW_Tones,

Perhaps not a direct answer but what I would like from the import process:

  • when I drop another TW on my TW
  • I have the possibility to use it as a plugin library
  • meaning that I onlys see the plugins, themes and language of the dropped wiki with their description and action buttons to install them or update already instaled plugins

Rational: offline use, synchronisation of plugins between different single file wiki.

Best regards,

Eskha

1 Like

Interesting idea. I achive a similar result a different way but will take this into account.

Othe recent discussions How to add a default name/prefix for image drag and dropped into a tiddler in edit mode?

Personally, I would like that when dragging a file into a regular wiki or nodejs version, it would be automatically added to the files folder, and a tiddler with a path field would be created in the wiki where there would be a link to this file of the form files/pic.png. Well, depending on the file extension, you can add a template set by the user in the text field. For example, for pictures <img alt="text" src={{!!files}} width="100" >, and for videos something else. No files should be on the wiki itself, only links to them. When we add files to the wiki itself, it loses its portability. By adding the file to the nodejs version, I can no longer create a single page html version of my wiki. No problem with links.

I would also like to be able to set subdirectories for certain tiddlers. For example, if I drag a file into the Animals tiddler, then let a tiddler be created with a path, Files and Animals tags are added to it, and the file itself is placed in the files/Animals/cat.jpg directory

Welcome @allqu thanks for adding this here however what you are asking for is possible and covered elsewhere. Have a look at discussions with the File Uploads plugin, skinny tiddlers, External Attachments Plugin, _canonical_uri field or Node specific documentation.

  • Perhaps someday we will bring these into the standard import process as you suggest.