Stockage
There are multiple ways of storing notes in Butterfly. Either by using your device storage, or by using the cloud storage (WebDAV).
Data directory
Section intitulée « Data directory »The data directory is the directory where documents, templates, and packs are stored.
On desktop you can find it in ~/Documents/Linwood/Butterfly.
Sur mobile, c’est dans getExternalFilesDir(null)/Linwood/Butterfly.
Vous pouvez également le modifier dans les paramètres sous Data.
Dans ce répertoire, vous trouverez un dossier Documents, Templates et Packs.
Les données de l’application sont stockées dans votre navigateur. Il est stocké dans un stockage local. Ouvrez les outils de développement dans votre navigateur et vous verrez les données.
Plateformes indigènes
Section intitulée « Plateformes indigènes »By default, the application saves the data in your documents folder in a subfolder called “Linwood/Butterfly”. This folder is created when you save data for the first time. Ce dossier peut être modifié dans les paramètres.
Stockage à distance
Section intitulée « Stockage à distance »The application data can be stored on a remote server. Ceci est utile si vous voulez partager les données avec d’autres personnes ou si vous avez plusieurs ordinateurs. Actuellement, seul le protocole WebDAV est pris en charge.
Pour ajouter un serveur distant, allez dans les paramètres et cliquez sur Remotes. Puis cliquez sur Ajouter une télécommande.
Ajoute l’URL du serveur distant et le nom d’utilisateur et le mot de passe. Ensuite, vous pouvez spécifier le dossier où les données sont stockées.
To get the WebDAV URL, please visit the documentation:
Nextcloud (it should look like this: https://nextcloud.example.com/remote.php/dav/files/username/, replace username and nextcloud.example.com with the correct values)
Instructions for NextCloud
Section intitulée « Instructions for NextCloud »How to get the URL
Section intitulée « How to get the URL »- Go to
Files
- Press the button on the bottom of the sidebar
Files settings
- Scroll down to the
WebDAVsection, then copy the full URL shown inside
- Switch to Butterfly, and paste the URL in the URL input box in Butterfly

How to get the password and username
Section intitulée « How to get the password and username »- Go to your Nextcloud account info by pressing the profile picture on the corner
- Then, press
Settings
- In the Security tab, scroll down to
Devices & sessions - Enter any name for the app name input box
- “Butterfly Connection” is a good name to use, as it is identifiable and clear.
- Press the button called
Create new app password
- After authenticating, copy the app password username shown on the page, and paste it in the username input box in Butterfly

- Finally, copy the password and paste it in the password input box in Butterfly

Finalizing the connection setup
Section intitulée « Finalizing the connection setup »After doing the above, press the Connect button.
If you have done everything correctly, there will be some new stuff down the popup.

Type the name of this connection in the Name inputbox, you can name it anything.
Then, for the Directory inputbox, you need to type where should Butterfly store stuff inside this cloud storage.
For example:
if you type ButterflyDocs for Directory, Butterfly will store all your files inside the ButterflyDocs folder in your cloud storage.
Lastly, after typing the name of the folder you want Butterfly to store your notes in, press Create.
That’s it. Syncing to the cloud should work now. 🎉
Synchronisation hors ligne
Section intitulée « Synchronisation hors ligne »Cette fonctionnalité vous permet de modifier vos fichiers sur des serveurs distants pendant que vous êtes hors ligne.
Ouvrez le menu contextuel sur un fichier ou un dossier et cliquez sur Sync. Cela téléchargera le fichier ou le dossier et l’enregistrera localement. Pour synchroniser l’ensemble du répertoire racine, cliquez sur la case à cocher dans la boîte de dialogue de création ou cliquez sur la télécommande dans le paramètre, puis cliquez sur la case à cocher dans la section Gérer .
Il y a quelques limitations :
- Vous ne pouvez pas supprimer un fichier ou un dossier lorsque vous êtes hors ligne.
- Vous ne pouvez pas ajouter, modifier ou supprimer des modèles lorsque vous êtes hors ligne.
Autres méthodes de stockage
Section intitulée « Autres méthodes de stockage »Si vous êtes sur un périphérique natif, vous pouvez également synchroniser le répertoire d’application avec votre plateforme préférée. Google Drive has an official app on Windows and there are unofficial ones on the Play Store. On Linux you can also use the native remote storage system and change your data directory to this or add a new external storage if you click on the add connection button.
Supported file types
Section intitulée « Supported file types »Butterfly supports importing SVG, Butterfly Note (.bfly), Butterfly Raw Note (.tbfly).
Butterfly Note (.bfly)
Section intitulée « Butterfly Note (.bfly) »This file type is the recommended format for saving notes.
It is a zip archive containing the information (mostly in JSON files) about the note. These included JSON files aren’t optimized to be readable by a human in its raw form.
Butterfly Raw Note (.tbfly)
Section intitulée « Butterfly Raw Note (.tbfly) »This file is recommended for use with version control software like git.
This file is not a zip archive; instead it is a JSON file. It contains all the information about the note in a single JSON file that is optimized for being readable and nicely formatted. It is slower to load than the normal Butterfly Note.
This file type doesn’t save information about the note! When this file is imported into Butterfly, it is treated as a single image.
Use this ONLY when the note shouldn’t be modified by Butterfly.