refact(dir): set home as default dir for everything (closes #177)

This commit is contained in:
Thomas Lambert
2023-04-29 01:54:47 +02:00
parent 82b00051b9
commit 4f60377454
2 changed files with 6 additions and 6 deletions

View File

@@ -218,21 +218,21 @@ telekasten.setup({opts})
Path to your daily notes, to separate them from 'normal' notes. Path to your daily notes, to separate them from 'normal' notes.
Accepts absolute path or sub-directory name. Accepts absolute path or sub-directory name.
Default: 'vim.fn.expand("~/zettelkasten/daily")' Default: 'vim.fn.expand("~/zettelkasten")'
*telekasten.settings.weeklies* *telekasten.settings.weeklies*
weeklies: ~ weeklies: ~
Path to your weekly notes, to separate them from 'normal' notes. Path to your weekly notes, to separate them from 'normal' notes.
Accepts absolute path or sub-directory name. Accepts absolute path or sub-directory name.
Default: 'vim.fn.expand("~/zettelkasten/weekly")' Default: 'vim.fn.expand("~/zettelkasten")'
*telekasten.settings.templates* *telekasten.settings.templates*
templates: ~ templates: ~
Path to your note templates. Path to your note templates.
Accepts absolute path or sub-directory name. Accepts absolute path or sub-directory name.
Default: 'vim.fn.expand("~/zettelkasten/templates")' Default: 'vim.fn.expand("~/zettelkasten")'
*telekasten.settings.image_subdir* *telekasten.settings.image_subdir*
image_subdir: ~ image_subdir: ~

View File

@@ -48,9 +48,9 @@ local function defaultConfig(home)
-- this syntax setting is independent from auto-set filetype -- this syntax setting is independent from auto-set filetype
auto_set_syntax = true, auto_set_syntax = true,
-- dir names for special notes (absolute path or subdir name) -- dir names for special notes (absolute path or subdir name)
dailies = home .. "/" .. "daily", dailies = home,
weeklies = home .. "/" .. "weekly", weeklies = home,
templates = home .. "/" .. "templates", templates = home,
-- image (sub)dir for pasting -- image (sub)dir for pasting
-- dir name (absolute path or subdir name) -- dir name (absolute path or subdir name)
-- or nil if pasted images shouldn't go into a special subdir -- or nil if pasted images shouldn't go into a special subdir