ストレージ
There are multiple ways of storing notes in Butterfly. Either by using your device storage, or by using the cloud storage (WebDAV).
データディレクトリ
Section titled “データディレクトリ”データディレクトリは、ドキュメント、テンプレート、パックが格納されているディレクトリです。
デスクトップでは、~/Documents/Linwood/Butterflyで見つけることができます。
モバイルでは、 getExternalFilesDir(null)/Linwood/Butterfly にあります。
Data の設定で変更することもできます。
このディレクトリには、Documents、Templates、Packsフォルダがあります。
アプリケーションデータはブラウザに保存されます。 ローカルストレージに保存されます。 ブラウザで開発者ツールを開くと、データが表示されます。
ネイティブプラットフォーム
Section titled “ネイティブプラットフォーム”デフォルトでは、アプリケーションはドキュメントフォルダのデータを「Linwood/Butterfly」というサブフォルダに保存します。 このフォルダは、最初のデータを保存するときに作成されます。 このフォルダは設定で変更できます。
リモートストレージ
Section titled “リモートストレージ”アプリケーションはリモートサーバーに保存できます。 これは、データを他の人と共有したい場合や、複数のコンピュータをお持ちの場合に便利です。 現在 WebDAV プロトコルのみがサポートされています。
リモートサーバーを追加するには、設定に移動して Remotes をクリックします。 Add remote をクリックします。
リモートサーバーの URL とユーザー名とパスワードを追加します。 その後、データが格納されているフォルダを指定できます。
webdav URL を入手するには、以下のドキュメントを参照してください。
- Nextcloud (
https://nextcloud.example.com/remote.php/dav/files/username/、usernameとnextcloud.example.comは正しい値に置き換えてください)
オフライン同期
Section titled “オフライン同期”この機能を使用すると、オフライン中にリモートサーバー上のファイルを編集できます。
ファイルまたはフォルダのポップアップメニューを開き、Syncをクリックします。 ファイルまたはフォルダをダウンロードし、ローカルに保存します。 ルートディレクトリ全体を同期する 作成ダイアログでチェックマークをクリックするか、設定内のリモコンをクリックし、管理セクションのチェックマークをクリックします。
いくつかの制限があります。
- ディレクトリのトップレベルのみ同期できます。 例えば、
a/b/test.bflyディレクトリがある場合、このファイルは同期されません。 - オフライン中はファイルやフォルダを削除できません。
- オフライン中はテンプレートの追加、編集、削除はできません。
その他のストレージ方法
Section titled “その他のストレージ方法”ネイティブデバイスを使用している場合は、お気に入りのプラットフォームとアプリケーションディレクトリを同期することもできます。 Google ドライブは、format@@0(https://www.google.com/drive/download/)をウィンドウに表示しており、Playストアには非公式のアプリがあります。 Linuxでは、ネイティブのリモートストレージシステムを使用して、データディレクトリをこれに変更したり、接続の追加ボタンをクリックすると新しい外部ストレージを追加することもできます。
Supported file types
Section titled “Supported file types”Butterfly supports importing SVG, Butterfly Note (.bfly), Butterfly Raw Note (.tbfly).
Butterfly Note (.bfly)
Section titled “Butterfly Note (.bfly)”This file type is the recommended 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 for being human readable.
Butterfly Raw Note (.tbfly)
Section titled “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 than the normal Butterfly Note in loading speed.
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.