configuring home directory |need help| #220
-
I tested it months before failed it and now I am trying to get it to work. But setting up directory I am not following it keeps making opposite from how I wanted. When I call telekasten to make a new note it makes directory "wiki" relative path (home = "wiki"), at home directory it just makes zettelekasten directory. However I would like to manage all my md files in .dotfiles/wiki directory like I did using vimwiki. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I am using linux I looked up wiki there is only for windows |
Beta Was this translation helpful? Give feedback.
-
What you want is something like that in your -- Zettelkasten directory
local home = vim.fn.expand("~/.dotfiles/wiki")
local journal = home .. "/journal"
require("telekasten").setup({
-- Define directories
home = home,
dailies = journal .. "/daily",
weeklies = journal .. "/weekly",
templates = home .. "/templates",
image_subdir = home .. "/img",
}) The line |
Beta Was this translation helpful? Give feedback.
What you want is something like that in your
init.lua
:The line
local home = vim.fn.expand("~/.dotfiles/wiki")
is where you define your actual wiki home. As you see, all other options are just subdirectory of that root dir.