-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nvim)!: split personal and work Corpus directories
As noted in the comments here I want: 1. Work notes stored in a local-only Git repo, with document files synced to Google Drive (but not Git metadata). 2. Personal notes stored in a normal local-only Git repo, but not synced to Google Drive. To achieve this, going to use the `--separate-git-dir` option to `git-init`, which will create a `.git` file in the work notes directory containing a "Git link"; ie. a plain-text file containing the path to the Git directory for the repo: gitdir: /absolute/path/to/Corpus.git BREAKING CHANGES: I moved the host-specific override block to _after_ plug-ins are loaded, because only then can I meaningfully set up the Corpus directories. If I ever need to do overrides before plug-ins get loaded, I'll have to do something similar to what I am doing in my SSH config, where I have "pre" and "post" includes.
- Loading branch information
Showing
5 changed files
with
120 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- Host-specific overrides for comp-ktw7q4c5jh. | ||
local has_corpus, corpus = pcall(require, 'wincent.corpus') | ||
if has_corpus then | ||
corpus({ | ||
bang_creation = true, | ||
directories = { | ||
['~/Documents/Corporate/Corpus'] = { | ||
autocommit = true, | ||
autoreference = 1, | ||
autotitle = 1, | ||
base = './', | ||
transform = 'local', | ||
}, | ||
['~/Documents/Personal/Corpus'] = { | ||
autocommit = true, | ||
autoreference = 1, | ||
autotitle = 1, | ||
base = './', | ||
transform = 'local', | ||
}, | ||
['~/code/masochist/content/content/wiki'] = { | ||
autocommit = false, | ||
autoreference = 1, | ||
autotitle = 1, | ||
base = '/wiki/', | ||
tags = { 'wiki' }, | ||
transform = 'web', | ||
}, | ||
}, | ||
sort = 'stat', | ||
}) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
-- Host-specific overrides for "latina". | ||
local has_corpus, corpus = pcall(require, 'wincent.corpus') | ||
if has_corpus then | ||
corpus({ | ||
bang_creation = true, | ||
directories = { | ||
['~/Documents/Corpus'] = { | ||
autocommit = true, | ||
autoreference = 1, | ||
autotitle = 1, | ||
base = './', | ||
transform = 'local', | ||
}, | ||
['~/code/masochist/content/content/wiki'] = { | ||
autocommit = false, | ||
autoreference = 1, | ||
autotitle = 1, | ||
base = '/wiki/', | ||
tags = { 'wiki' }, | ||
transform = 'web', | ||
}, | ||
}, | ||
sort = 'stat', | ||
}) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters