Add initial configs for obsidian and copy logic for files

obsidian seems to only have a per-vault config approach, so my approach
is to define settings within .config/obsidian, then copy to vault dirs
This commit is contained in:
2025-10-02 15:06:13 -05:00
parent 26028eb228
commit a3707b5ca9
7 changed files with 93 additions and 11 deletions

View File

@@ -0,0 +1,17 @@
{
"defaultViewMode": "preview",
"showLineNumber": true,
"spellcheck": false,
"autoPairBrackets": false,
"autoPairMarkdown": false,
"useTab": false,
"autoConvertHtml": false,
"vimMode": true,
"trashOption": "none",
"newFileLocation": "folder",
"newFileFolderPath": "inbox",
"showUnsupportedFiles": true,
"attachmentFolderPath": "inbox",
"showInlineTitle": false,
"readableLineLength": false
}

View File

@@ -0,0 +1,4 @@
{
"theme": "obsidian",
"accentColor": "#2f930e"
}

View File

@@ -0,0 +1,33 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"footnotes": false,
"properties": false,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false,
"bases": true,
"webviewer": false
}

View File

@@ -0,0 +1,16 @@
{
"markdown:toggle-preview": [
{
"modifiers": [
"Mod"
],
"key": "E"
},
{
"modifiers": [
"Alt"
],
"key": "R"
}
]
}

View File

@@ -31,6 +31,9 @@ export ZDOTDIR="$XDG_CONFIG_HOME/zsh" # may already be set, set anyway
# git
export GIT_EDITOR="$EDITOR"
# obsidian
export OBSIDIAN_WORKSPACES_TO_CONFIGURE=("$DIR_NOTES")
# clean-up of home dir
export __CF_USER_TEXT_ENCODING="0x0:0x0"