mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-16 22:32:40 +00:00
URG, attachment doesn't captured.
This commit is contained in:
@@ -1284,11 +1284,12 @@ export default class ObsidianLiveSyncPlugin extends Plugin {
|
|||||||
let delay = this.settings.savingDelay;
|
let delay = this.settings.savingDelay;
|
||||||
if (delay < 200) delay = 200;
|
if (delay < 200) delay = 200;
|
||||||
if (delay > 5000) delay = 5000;
|
if (delay > 5000) delay = 5000;
|
||||||
this.watchVaultChange = debounce(this.watchVaultChange.bind(this), delay, false);
|
// this.watchVaultChange = debounce(this.watchVaultChange.bind(this), delay, false);
|
||||||
// this.watchVaultDelete = debounce(this.watchVaultDelete.bind(this), delay, false);
|
// this.watchVaultDelete = debounce(this.watchVaultDelete.bind(this), delay, false);
|
||||||
// this.watchVaultRename = debounce(this.watchVaultRename.bind(this), delay, false);
|
// this.watchVaultRename = debounce(this.watchVaultRename.bind(this), delay, false);
|
||||||
|
|
||||||
// this.watchVaultChange = this.watchVaultChange.bind(this);
|
this.watchVaultChange = this.watchVaultChange.bind(this);
|
||||||
|
this.watchVaultCreate = this.watchVaultCreate.bind(this);
|
||||||
this.watchVaultDelete = this.watchVaultDelete.bind(this);
|
this.watchVaultDelete = this.watchVaultDelete.bind(this);
|
||||||
this.watchVaultRename = this.watchVaultRename.bind(this);
|
this.watchVaultRename = this.watchVaultRename.bind(this);
|
||||||
this.watchWorkspaceOpen = debounce(this.watchWorkspaceOpen.bind(this), delay, false);
|
this.watchWorkspaceOpen = debounce(this.watchWorkspaceOpen.bind(this), delay, false);
|
||||||
@@ -1442,6 +1443,10 @@ export default class ObsidianLiveSyncPlugin extends Plugin {
|
|||||||
await this.showIfConflicted(file);
|
await this.showIfConflicted(file);
|
||||||
this.gcHook();
|
this.gcHook();
|
||||||
}
|
}
|
||||||
|
watchVaultCreate(file: TFile, ...args: any[]) {
|
||||||
|
if (this.settings.suspendFileWatching) return;
|
||||||
|
this.watchVaultChangeAsync(file, ...args);
|
||||||
|
}
|
||||||
watchVaultChange(file: TFile, ...args: any[]) {
|
watchVaultChange(file: TFile, ...args: any[]) {
|
||||||
if (this.settings.suspendFileWatching) return;
|
if (this.settings.suspendFileWatching) return;
|
||||||
this.watchVaultChangeAsync(file, ...args);
|
this.watchVaultChangeAsync(file, ...args);
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "obsidian-livesync",
|
"id": "obsidian-livesync",
|
||||||
"name": "Self-hosted LiveSync",
|
"name": "Self-hosted LiveSync",
|
||||||
"version": "0.1.12",
|
"version": "0.1.13",
|
||||||
"minAppVersion": "0.9.12",
|
"minAppVersion": "0.9.12",
|
||||||
"description": "Community implementation of self-hosted livesync. Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
"description": "Community implementation of self-hosted livesync. 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",
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.1.12",
|
"version": "0.1.13",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.1.12",
|
"version": "0.1.13",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"diff-match-patch": "^1.0.5",
|
"diff-match-patch": "^1.0.5",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.1.12",
|
"version": "0.1.13",
|
||||||
"description": "Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
"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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user