correct way to deal with .obsidian and bookmarks
This commit is contained in:
parent
f50ba953f1
commit
df184ff9d8
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user