Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pmario opened this issue Mar 26, 2022 · 2 comments
Labels
bundler allows to create "export/import" configurations and save them as a bundle new-feature

Comments

@pmario
Copy link
Contributor

pmario commented Mar 26, 2022

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

@pmario pmario added the bundler allows to create "export/import" configurations and save them as a bundle label Mar 26, 2022
@pmario
Copy link
Contributor Author

pmario commented Feb 14, 2023

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

title: test

some text

@pmario
Copy link
Contributor Author

pmario commented Feb 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bundler allows to create "export/import" configurations and save them as a bundle new-feature
Projects
None yet
Development

No branches or pull requests

1 participant