bits 10

I believe in the value of having less friction when taking notes. Today I added a function to create a timestamped file and edit it in Neovim.

function CreateTimestampedFile()
local zkdir = os.getenv("HOME") .. "/github.com/iesahin/garden/zk/"
local timestamp = os.date("%Y%m%d%H%M%S")
local filename = zkdir .. "/" .. timestamp .. ".md"
vim.cmd("edit " .. filename)
end

vim.api.nvim_set_keymap("n", "<leader>F", ":lua CreateTimestampedFile()<CR>", { noremap = true, silent = true })

Now I hit <Space>F and begin to add a note to my zettelkasten immediately.

/neovim/ /lazyvim/ /zettelkasten/ /lua/