mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-05-07 16:21:51 +00:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ccbf1b2ffe | ||
|
|
a01079d4b1 | ||
|
|
1d71870fa3 | ||
|
|
0587a52d22 | ||
|
|
6c37f7bb05 | ||
|
|
d746c1cb52 | ||
|
|
39e2eab023 | ||
|
|
20bdf057fe | ||
|
|
531fb97cd9 | ||
|
|
518ae46cf9 | ||
|
|
57187a0926 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -7,7 +7,7 @@ node_modules
|
|||||||
package-lock.json
|
package-lock.json
|
||||||
|
|
||||||
# build
|
# build
|
||||||
# main.js
|
main.js
|
||||||
*.js.map
|
*.js.map
|
||||||
|
|
||||||
# obsidian
|
# obsidian
|
||||||
|
|||||||
61
README.md
61
README.md
@@ -1,32 +1,62 @@
|
|||||||
# obsidian-livesync
|
# obsidian-livesync
|
||||||
|
|
||||||
This is the obsidian plugin that enables livesync between multi terminals.
|
This is the obsidian plugin that enables livesync between multi-devices.
|
||||||
Runs in Mac, Android, Windows, and iOS.
|
Runs in Mac, Android, Windows, and iOS.
|
||||||
|
|
||||||
<!-- <div><video controls src="https://user-images.githubusercontent.com/45774780/137352386-a274736d-a38b-4069-ac41-759c73e36a23.mp4" muted="false"></video></div> -->
|
<!-- <div><video controls src="https://user-images.githubusercontent.com/45774780/137352386-a274736d-a38b-4069-ac41-759c73e36a23.mp4" muted="false"></video></div> -->
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
**It's beta. Please make sure to back your vault up!**
|
||||||
|
|
||||||
**It's beta. Please make sure back your vault up!**
|
Limitations: Folder deletion handling is not completed.
|
||||||
|
|
||||||
Limitations: File deletion handling is not completed.
|
|
||||||
|
|
||||||
## This plugin enables..
|
## This plugin enables..
|
||||||
|
|
||||||
- Live sync
|
- Live Sync
|
||||||
- Self-Hosted data synchronization with conflict detection and resolving in Obsidian.
|
- Self-Hosted data synchronization with conflict detection and resolving in Obsidian.
|
||||||
- Off line sync is also available.
|
- Off-line sync is also available.
|
||||||
|
- Receive WebClip from [obsidian-livesync-webclip](https://chrome.google.com/webstore/detail/obsidian-livesync-webclip/jfpaflmpckblieefkegjncjoceapakdf)
|
||||||
|
|
||||||
## How to use the beta build
|
## IMPORTANT NOTICE
|
||||||
|
|
||||||
1. download this repo and expand `[your-vault]/.obsidian/plugins/` (PC, Mac and Android will work)
|
**Please make sure to disable other synchronize solutions to avoid content corruption or duplication.**
|
||||||
1. enable obsidian livesync in the settings dialog.
|
If you want to synchronize to both backend, sync one by one, please.
|
||||||
1. If you use your self-hosted CouchDB, set your server's info.
|
|
||||||
1. or Use [IBM Cloudant](https://www.ibm.com/cloud/cloudant), take an account and enable **Cloudant** in [Catalog](https://cloud.ibm.com/catalog#services)
|
## How to use
|
||||||
Note please choose "IAM and legacy credentials" for the Authentication method
|
|
||||||
Setup details are in Couldant Setup Section.
|
1. Install from Obsidian, or clone this repo and run `npm run build` ,copy `main.js`, `styles.css` and `manifest.json` into `[your-vault]/.obsidian/plugins/` (PC, Mac and Android will work)
|
||||||
1. Setup LiveSync or SyncOnSave or SyncOnStart as you like.
|
2. Enable obsidian livesync in the settings dialog.
|
||||||
|
3. If you use your self-hosted CouchDB, set your server's info.
|
||||||
|
4. or Use [IBM Cloudant](https://www.ibm.com/cloud/cloudant), take an account and enable **Cloudant** in [Catalog](https://cloud.ibm.com/catalog#services)
|
||||||
|
Note please choose "IAM and legacy credentials" for the Authentication method
|
||||||
|
Setup details are in Couldant Setup Section.
|
||||||
|
5. Setup LiveSync or SyncOnSave or SyncOnStart as you like.
|
||||||
|
|
||||||
|
## Test Server
|
||||||
|
|
||||||
|
Setting up an instance of Cloudant or local CouchDB is a little complicated, so I made the [Tasting server of obsidian-livesync](https://olstaste.vrtmrz.net/) up. Try free!
|
||||||
|
Note: Please read "Limitations" carefully. Do not send your private vault.
|
||||||
|
|
||||||
|
## WebClipper is also available.
|
||||||
|
|
||||||
|
Available from on Chrome Web Store:[obsidian-livesync-webclip](https://chrome.google.com/webstore/detail/obsidian-livesync-webclip/jfpaflmpckblieefkegjncjoceapakdf)
|
||||||
|
Repo is here: [obsidian-livesync-webclip](https://github.com/vrtmrz/obsidian-livesync-webclip). (Docs are work in progress.)
|
||||||
|
|
||||||
|
## When your database looks corrupted
|
||||||
|
|
||||||
|
obsidian-livesync changes data treatment of markdown files since 0.1.0
|
||||||
|
When you are troubled with synchronization, **Please reset local and remote databases**.
|
||||||
|
_Note: Without synchronization, your files won't be deleted._
|
||||||
|
|
||||||
|
1. Disable any synchronizations on all devices.
|
||||||
|
2. From the most reliable device<sup>(_The device_)</sup>, back your vault up.
|
||||||
|
3. Click "Reset local database" on all devices.
|
||||||
|
4. From _The device_ click "Reset remote database".
|
||||||
|
5. From _The device_ click "Init Database again".
|
||||||
|
6. Enable any sync or Hit the Replication button.
|
||||||
|
|
||||||
|
And wait for a minute. your data will be uploaded and synchronized with all devices again.
|
||||||
|
|
||||||
## Cloudant Setup
|
## Cloudant Setup
|
||||||
|
|
||||||
@@ -38,7 +68,7 @@ Limitations: File deletion handling is not completed.
|
|||||||
1. In IBM Cloud Catalog, search "Cloudant".
|
1. In IBM Cloud Catalog, search "Cloudant".
|
||||||

|

|
||||||
|
|
||||||
1. You can choise "Lite plan" in free.
|
1. You can choose "Lite plan" for free.
|
||||||

|

|
||||||
|
|
||||||
Select Multitenant(it's the default) and the region as you like.
|
Select Multitenant(it's the default) and the region as you like.
|
||||||
@@ -107,4 +137,5 @@ example values.
|
|||||||
| CouchDB Password | (\*4) | c2c11651d75497fa3d3c486e4c8bdf27 |
|
| CouchDB Password | (\*4) | c2c11651d75497fa3d3c486e4c8bdf27 |
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
The source code is licensed MIT.
|
The source code is licensed MIT.
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"id": "obsidian-livesync",
|
"id": "obsidian-livesync",
|
||||||
"name": "Obsidian Live sync",
|
"name": "Obsidian Live sync",
|
||||||
"version": "0.0.8",
|
"version": "0.1.7",
|
||||||
"minAppVersion": "0.9.12",
|
"minAppVersion": "0.9.12",
|
||||||
"description": "obsidian Live synchronization plugin.",
|
"description": "Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
||||||
"author": "vorotamoroz",
|
"author": "vorotamoroz",
|
||||||
"authorUrl": "https://github.com/vrtmrz",
|
"authorUrl": "https://github.com/vrtmrz",
|
||||||
"isDesktopOnly": false
|
"isDesktopOnly": false
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.0.8",
|
"version": "0.1.7",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.0.8",
|
"version": "0.1.7",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"diff-match-patch": "^1.0.5",
|
"diff-match-patch": "^1.0.5",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.0.8",
|
"version": "0.1.7",
|
||||||
"description": "obsidian Live synchronization plugin.",
|
"description": "Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "rollup --config rollup.config.js -w",
|
"dev": "rollup --config rollup.config.js -w",
|
||||||
|
|||||||
@@ -18,3 +18,8 @@
|
|||||||
.op-pre {
|
.op-pre {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
.op-warn {
|
||||||
|
border:1px solid salmon;
|
||||||
|
padding:2px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user