Textbundles in Lettera

Textbundles in Lettera

Bug report and feature request: (All the points below are related)

  1. Lettera Bug: When saving a file with images as .textbundle all images get lost, leaving only the old image links, but no image files or attachments get included.
  2. Bear Bug: Same problem when importing/opening Lettera’s .md files with images into Bear: Images do not get imported, regardless of any of the three ways Lettera is set to save images. This is the case for Bear on MacOS, iOS and iPadOS. But with Textbundles this works perfectly!
  3. Lettera Feature Request: Setting for default file type: .md, .markdown, .txt and .textbundle. Textbundle being imperative!
  4. Lettera Feature Request: Add Textbundle in setting: Location for new attachments.
    But if default file type (point 3 above) is set to .md etc, then only change to .textbundle when images are inserted (and keep .md for files without attachments) – just like it used to be in Panda. (If default file type is set to Textbundle, then this setting: Location for new attachments could be inactive but show: Textbundle)

Use cases on extending Interoperability, functionality and colaboration on Lettra files and folders.

On iOS and iPad (where Lettera is missing) and MacOS

  1. Opening/Importing Lettera files with images into Bear for viewing and possible editing when on the road. Then textbundle works perfectly, while .md files will lose their images.
  2. Opening Lettera files or folders in Ulysses’ “External Folders”, works great for viewing and editing (with most markdown intact). And even more important: Ulysses has many great customizable styles for PDF, docx, HTML and for export and printing that are not available in Lettera. Also here, Textbundles are neccesary for images.
  3. On MacOS only, same goes for Marked: it also has many great customizable styles for PDF, docx, HTML for export and printing, and autogenerated TOC, that’s missing in Lettera and Bear. (Marked opens both .md files and .textbundle wiht images.)

Typora on MacOS and Windows

  1. Typora also work great with Lettera files and folders and has many great customizable styles for PDF, docx, HTML for export and printing, and can open both .md files and .textbundle with images. Typora also has autogenerated TOC inclusion in file, that’s missing in Lettera and Bear.

Hope this is giving enough reason to include .textbundle in Lettera as describes in “Bug report and feature request” above.

What do you think @trix180 , @matteo, @ctietze and @zowiewho?

Thank you for all your hard work with Lettera and Bear :rose:

1 Like

Thanks for your feedback regarding Textbundles and export options.

I’m trying this against the last Lettera build, and I can’t replicate the issue.
Is it the resulting text bundle missing the images?

Unfortunately, this is expected. Sandboxed macOS apps like Bear can access to the selected file only (markdown) and not the linked attachments.
You can overcome this by using File > Import From ... > Markdown Folder

I don’t think moving Bear from your shoebox nature is a good idea, especially on mobile.
This might be more for an eventual iOS version of Lettera.

1 Like

Yes, when saving a .md file with images as .textbundle in Lettera’s Save As, new textbundle files are missing all images (assets folder inside packages are also missing).

This happens regardless of how I have chosen to save images in .md files in Lettera settings.

Lettera Version 1.0.0 (4458)

I’m trying to give arguments for adding textbundle as a choice for default file type in Lettera, just like Panda used to do it: .md if no images, .textbundle when images.

Opening in Bear was just an example of emergency workaround until Lettera comes on iOS and iPad. Opening a Lettera file with images in Bear doesn’t work now unless it’s .textbundle.

I’m talking about opening a single .md file (possibly with an image or two) into Bear for temporarily editing or printing on the road away from my Mac, and then exporting it back to Lettera when back home.

Of course, I can’t wait for Lettera to come to iPad and iOS, but guess I have to :wink:

But I have found other ways of editing and printing Lettera files on iPad for now, using Ulysses, Inkiostro, iA Writer, Textastic. All of them can open Lettera’s default iCloud folder,

  • Ulysses need textbundles if images.
  • iA Writer can’t open textbundles and need regular .md files with external image files.
  • Inkiostro and Textastic handles both cases (opens textbundles as regular folders)

An other argument for textbundles as opposed to saving images directly in folder or in named sub folders, is that it would be a nightmare to reorganize .md files with images into new folders or sub folders.

Hope that made sense.

This doesn’t work on iPad, and also not on Mac for only one file. That’s why I suggest a choice in Lettera settings for textbundle when files contains images.

  1. Lettera Feature Request: New setting for default file type: .md, .markdown, .txt and .textbundle. Textbundle being imperative!
  2. Lettera Feature Request: Add Textbundle in setting: Location for new attachments.
    But if default file type (point 1 above) is set to .md etc, then only change to .textbundle when images are inserted (and keep .md for files without attachments) – just like it used to be in Panda. (If default file type is set to Textbundle, then this setting: Location for new attachments could be inactive but show: Textbundle)

I can think of several scenarios where I write a project in Lettera and later like to move or copy a file or two to Bear for reference or archive. Or open Lettera files (containig images) in Ulysses for custom styled publish, export or print.