WriteRoom 4.0 (Preview 412)

Pictures, equations and drawings. Pictures, math and svg/mermaid fences now draw in place as objects. A click selects one whole, Return opens its Markdown, and Space shows it in Quick Look. Drag and drop files to editor to attach.

  • Added svg and mermaid drawing fences
  • Added Text Bundle documents with attachments
  • Added previews for attached files that aren’t pictures
  • Added Quick Look for a selected object (Space)
  • Added Rename File and Copy File for pictures and assets
  • Added LaTeX highlighting in math source
  • Changed equations and drawings to select whole, like pictures
  • Fixed Settings… greyed out on some keyboard layouts

1 Like

This looks interesting … how does it work ?


UPDATE

Got it :slight_smile:

Settings > Markdown > Live Preview > ...


Very cool and useful …


And following some experiments …

Wow …

1 Like

Oh, for others, I got didn’t set the new feature defaults to ON. Will do that for the next release. But to see the new features you’ll need to check the last three items in Settings > Markdown > Live Preview:

Oops!

1 Like

Save As {.textbundle, .textpack} are both working well,
and I find that I can open a .textpack file with WriteRoom 4.0 Preview (412).

If, however, I create a .textbundle package (either by dragging an image into an .md file,
or via Save As), I find that I can’t subsequently open that bundle with WriteRoom.


macOS 26.7.1


( an interim work-around, of course, is to compress the .textbundle and change the resulting archive’s .zip extension to .textpack)

I think this must be some launch services database difference between our machines.

Can you try:

mdls -name kMDItemContentType -raw ~/path/to/test.textbundle; echo
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -dump | awk -v RS='-{80}\n' '/^type id:/ && /\nflags: +active/ && (/\nuti: +org\.textbundle\.package\n/ || /\ntags:[^\n]*\.textbundle/) { n=split($0,L,"\n"); for(i=1;i<=n;i++) if (L[i] ~ /^(bundle|uti|conforms to|tags):/) { sub(/: +/,": ",L[i]); printf "%s  ", L[i] } print "" }' | sort -u

Can you try:

Thanks – the first incantation returns

public.folder

here.

The second:

bundle: MultiMarkdown Composer (0x6118)  uti: org.textbundle.package  tags: .textbundle 

UPDATE

Empirically fixed here by:

  1. Root and branch deletion of MultiMarkdown Composer app (with CleanMyMac)
  2. reboot

now the first incantation still yields public.folder, but the second:

bundle: Marked (0x8884)  uti: org.textbundle.package  conforms to: com.apple.package  tags: .textbundle 

and WriteRoom 4.0 Preview (412) happily opens .textbundle packages.

(which, in addition, now show WriteRoom icons in Finder.app, rather than system folder icons)

You beat me in the debug race. I think the MultiMarkdown Composer declaration isn’t right… but really UTI declarations are often a mess hard to say who is right! I am working on a hack/workaround that I think will allow you to keep MultiMarkdown Composer, while also allowing WriteRoom to open the bundles.

1 Like

I do not know, how I managed that:

There is no markup on the phrase. It is dark yellow when complete, bright yellow when exclusively selected and the highlight goes away when I delete a letter. It comes back, when I complete the phrase again.

I sadly can not supply the complete file, as it is private. Can I help otherwise?

I think that’s showing because you have the term in your Find and Replace panel?

It must have, maybe I overlooked it; I did not intentionally started a search and I was looking around for causes for some minutes. Sorry for the false alarm!

Quite possible you found at least a partial bug case… ah actually I think I figured out what happened. I think you accidentally did (Use Selection for Find) Command-E. That gets you into the state without a good way to get out until you show/hide the find panel. Will fix.

Yes that happened! And you know why?

Because I like Bikes Cmd-E feature so much and used it instinctively. :slight_smile:

Have a nice week!

1 Like

I think the TextBundle opening code is more forgiving and the find highlight behavior more predictable in WriteRoom 4.0 (Preview 413). Also should default to showing images and diagrams.

1 Like