How to move attachments to other notes

How to move attachments to other notes

Hi.

I have noticed if I copy the markdown link of an image from one note to another, the link totally breaks, showing the following error in place of the image:

It also happens when I create a new card from selection that happens to include an image. I wonder if I'm doing it wrong or if it's simply a limitation.

Thanks for the help.

Attachments are attached to individual cards, so there is no shared media library. It is possible to display an attachment from another card, but you need to add some syntax to include the card ID, like ![[card-id/attachment.jpg]]. There is a small section on this here: https://mochi.cards/docs/markdown/advanced-formatting/#embeds

The only other way to share attachments would be to add the attachment to a template that both cards use.

Thanks for the reply, Matt.

Honestly speaking I'm using Mochi as a full-time note-taking app, which is not really what you intended. My workflow consists of writing a long note, then refactoring that note into smaller, linked notes over time. I dump all my thoughts during a study session in one note, so I don't waste mental effort organizing. But as the note gets longer and longer, I split it into logical sections. Now, if an image happens to be there, extracting the selection to a new note would brake that image.

From your reply I understand that changing this behavior would require a major rewrite to the app's core logic. Maybe it could be a feature for the next major version.

Hey @Sayed‭, Thanks for the insight.

I actually do intend for people to use Mochi as a full-time note-taking app (I use it this way myself!), So I am eager to hear feedback from folks that are using in this way as well. Your use case of creating a large not and breaking it up into smaller notes while attachments stay in-tact is a perfectly valid concern.

I think there are a few ways to tackle this that wouldn't require a major rewrite. I have also played around with the idea of adding a shared media library as well.

That's so incredible to hear!

Yea I exclusively use Mochi for long-term studies. One, unintended outcome of the workflow I described above is the automatic creation of "hub cards". Obsidian people call them MOCs (Maps of Content). As I extract parts of a larger card into dedicated cards, the larger card eventually shrinks into a list of links to those smaller cards. I don't have to sit and manually create such a card. Even better, when the hub gets too big, I start splitting it into smaller cards, too. Now I have hubs of hubs! And everything is automatically linked.

That's how I made sense of my huge aircraft manuals when working on my promotion to airline captain. And these past few months I've been using it for my programming journey. These hubs leave a trail of my study sessions that I could trace back to a particular note. Direct search works too, but hubs help me remember the surrounding context. I always have a bird's eye view of my notes. Yet another unintended outcome :)