wikilabs / plugins

TW5 plugins: https://wikilabs.github.io
30 stars 8 forks source link

bundler - check for "Untitled" content in import dialogue and check if it is a .tid format from clipboard #115

Open pmario opened 2 years ago

pmario commented 2 years ago

bundler - check for "Untitled" content in import dialogue and check if it is a .tid format from clipboard

pmario commented 1 year ago

This should make it possible to import the following text as a real tiddler

title: test

some text
pmario commented 1 year ago

Also see: Better handling of dragged links #1067

It is proposed instead that:

  • If the incoming link is a subpath of the directory containing the current TiddlyWiki, then the link is converted into a relative link of the form file:local/path/to/file.ext
  • If dropped on a text editor then the text of the link is inserted at the drop position
  • If dropped onto the main TiddlyWiki window, take different actions according to the file type inferred from the extension of the link:
  • Images (jpg, gif, png, svg, pdf): insert an image tiddler with _canonical_uri containing the incoming link and titled with the filename portion of the link
  • Audio (mp3, ogg, mp4): insert an audio tiddler with _canonical_uri containing the incoming link and titled with the filename portion of the link
  • Text (html, txt): insert a wikitext tiddler containing the incoming link and titled with the filename portion of the link

Note that this change will not affect the behaviour of dragging files from the OS Explorer/Finder window into the TiddlyWiki window.