Skip to content

Commit 7027d16

Browse files
committed
vault backup: 2025-01-09 19:03:32
1 parent fe2136f commit 7027d16

File tree

13 files changed

+1155
-46
lines changed

13 files changed

+1155
-46
lines changed

.obsidian/community-plugins.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"obsidian-icon-folder",
33
"dbfolder",
44
"dataview",
5-
"omnisearch"
5+
"omnisearch",
6+
"obsidian-git"
67
]

.obsidian/hotkeys.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"omnisearch:show-modal": [
3+
{
4+
"modifiers": [
5+
"Mod"
6+
],
7+
"key": "K"
8+
},
9+
{
10+
"modifiers": [
11+
"Mod",
12+
"Shift"
13+
],
14+
"key": "K"
15+
}
16+
],
17+
"omnisearch:show-modal-infile": [
18+
{
19+
"modifiers": [
20+
"Mod"
21+
],
22+
"key": "F"
23+
}
24+
],
25+
"editor:open-search": [],
26+
"global-search:open": []
27+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"commitMessage": "vault backup: {{date}}",
3+
"commitDateFormat": "YYYY-MM-DD HH:mm:ss",
4+
"autoSaveInterval": 0,
5+
"autoPushInterval": 0,
6+
"autoPullInterval": 0,
7+
"autoPullOnBoot": false,
8+
"disablePush": false,
9+
"pullBeforePush": true,
10+
"disablePopups": false,
11+
"disablePopupsForNoChanges": false,
12+
"listChangedFilesInMessageBody": false,
13+
"showStatusBar": true,
14+
"updateSubmodules": false,
15+
"syncMethod": "merge",
16+
"customMessageOnAutoBackup": false,
17+
"autoBackupAfterFileChange": false,
18+
"treeStructure": false,
19+
"refreshSourceControl": true,
20+
"basePath": "",
21+
"differentIntervalCommitAndPush": false,
22+
"changedFilesInStatusBar": false,
23+
"showedMobileNotice": true,
24+
"refreshSourceControlTimer": 7000,
25+
"showBranchStatusBar": true,
26+
"setLastSaveToLastCommit": false,
27+
"submoduleRecurseCheckout": false,
28+
"gitDir": "",
29+
"showFileMenu": true,
30+
"authorInHistoryView": "hide",
31+
"dateInHistoryView": false,
32+
"diffStyle": "split",
33+
"lineAuthor": {
34+
"show": false,
35+
"followMovement": "inactive",
36+
"authorDisplay": "initials",
37+
"showCommitHash": false,
38+
"dateTimeFormatOptions": "date",
39+
"dateTimeFormatCustomString": "YYYY-MM-DD HH:mm",
40+
"dateTimeTimezone": "viewer-local",
41+
"coloringMaxAge": "1y",
42+
"colorNew": {
43+
"r": 255,
44+
"g": 150,
45+
"b": 150
46+
},
47+
"colorOld": {
48+
"r": 120,
49+
"g": 160,
50+
"b": 255
51+
},
52+
"textColorCss": "var(--text-muted)",
53+
"ignoreWhitespace": false,
54+
"gutterSpacingFallbackLength": 5
55+
},
56+
"autoCommitMessage": "vault backup: {{date}}"
57+
}

.obsidian/plugins/obsidian-git/main.js

Lines changed: 414 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"author": "Vinzent",
3+
"authorUrl": "https://github.com/Vinzent03",
4+
"id": "obsidian-git",
5+
"name": "Git",
6+
"description": "Integrate Git version control with automatic backup and other advanced features.",
7+
"isDesktopOnly": false,
8+
"fundingUrl": "https://ko-fi.com/vinzent",
9+
"version": "2.31.1"
10+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
PROMPT="$1"
4+
TEMP_FILE="$OBSIDIAN_GIT_CREDENTIALS_INPUT"
5+
6+
cleanup() {
7+
rm -f "$TEMP_FILE" "$TEMP_FILE.response"
8+
}
9+
trap cleanup EXIT
10+
11+
echo "$PROMPT" > "$TEMP_FILE"
12+
13+
while [ ! -e "$TEMP_FILE.response" ]; do
14+
if [ ! -e "$TEMP_FILE" ]; then
15+
echo "Trigger file got removed: Abort" >&2
16+
exit 1
17+
fi
18+
sleep 0.1
19+
done
20+
21+
RESPONSE=$(cat "$TEMP_FILE.response")
22+
23+
echo "$RESPONSE"

0 commit comments

Comments
 (0)