Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06de1a4ab0 | ||
|
|
df184ff9d8 |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "remotely-save",
|
"id": "remotely-save",
|
||||||
"name": "Remotely Save",
|
"name": "Remotely Save",
|
||||||
"version": "0.5.22",
|
"version": "0.5.23",
|
||||||
"minAppVersion": "0.13.21",
|
"minAppVersion": "0.13.21",
|
||||||
"description": "Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.",
|
"description": "Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.",
|
||||||
"author": "fyears",
|
"author": "fyears",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "remotely-save",
|
"id": "remotely-save",
|
||||||
"name": "Remotely Save",
|
"name": "Remotely Save",
|
||||||
"version": "0.5.22",
|
"version": "0.5.23",
|
||||||
"minAppVersion": "0.13.21",
|
"minAppVersion": "0.13.21",
|
||||||
"description": "Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.",
|
"description": "Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.",
|
||||||
"author": "fyears",
|
"author": "fyears",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "remotely-save",
|
"name": "remotely-save",
|
||||||
"version": "0.5.22",
|
"version": "0.5.23",
|
||||||
"description": "This is yet another sync plugin for Obsidian app.",
|
"description": "This is yet another sync plugin for Obsidian app.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev2": "node esbuild.config.mjs --watch",
|
"dev2": "node esbuild.config.mjs --watch",
|
||||||
|
|||||||
+26
-11
@@ -203,21 +203,36 @@ export const checkIsSkipItemOrNotByName = (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// we have to check bookmarks.json firstly then check the whole .obsidian folder later
|
// sync config, not sync bookmarks: sync config and **force syncing bookmarks as well**
|
||||||
if (isBookmarksFile(key, configDir) && finalIsIgnored === undefined) {
|
// not sync config, sync bookmarks: sync bookmars, not other config
|
||||||
if (syncBookmarks) {
|
// not sync config, not sync bookmarks: not sync config
|
||||||
finalIsIgnored = false;
|
if (finalIsIgnored === undefined) {
|
||||||
} else {
|
|
||||||
finalIsIgnored = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// we have to check bookmarks.json firstly then check the whole .obsidian folder later
|
|
||||||
if (isInsideObsFolder(key, configDir) && finalIsIgnored === undefined) {
|
|
||||||
if (syncConfigDir) {
|
if (syncConfigDir) {
|
||||||
|
if (isInsideObsFolder(key, configDir)) {
|
||||||
|
// force sync everything
|
||||||
finalIsIgnored = false;
|
finalIsIgnored = false;
|
||||||
} else {
|
} else {
|
||||||
|
// not config files, do not judge now, do nothing
|
||||||
|
}
|
||||||
|
} else if (syncBookmarks) {
|
||||||
|
// not sync config, sync bookmarks
|
||||||
|
if (isBookmarksFile(key, configDir)) {
|
||||||
|
// sync everything of bookmarks
|
||||||
|
finalIsIgnored = false;
|
||||||
|
} else if (isInsideObsFolder(key, configDir)) {
|
||||||
|
// not sync any other thing in config
|
||||||
finalIsIgnored = true;
|
finalIsIgnored = true;
|
||||||
|
} else {
|
||||||
|
// not config files, do not judge now, do nothing
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// not sync config, and not sync bookmarks
|
||||||
|
if (isInsideObsFolder(key, configDir)) {
|
||||||
|
// not sync any thing in config
|
||||||
|
finalIsIgnored = true;
|
||||||
|
} else {
|
||||||
|
// not config files, do not judge now, do nothing
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user