Julio Biason
2 years ago
7 changed files with 56 additions and 36 deletions
@ -0,0 +1,6 @@ |
|||||||
|
require("mind").setup({ |
||||||
|
persistence = { |
||||||
|
state_path = "~/Documents/Mind/main.json", |
||||||
|
data_dir = "~/Documents/Mind/data", |
||||||
|
} |
||||||
|
}) |
@ -1,35 +1,36 @@ |
|||||||
local home = vim.fn.expand("~/Documents/Telecasten") |
-- local home = vim.fn.expand("~/Documents/Telecasten") |
||||||
local tele = require('telekasten') |
-- local tele = require('telekasten') |
||||||
local options = { noremap = true, silent = true } |
-- local options = { noremap = true, silent = true } |
||||||
|
|
||||||
tele.setup({ |
-- tele.setup({ |
||||||
home = home, |
-- home = home, |
||||||
take_over_my_home = true, |
-- take_over_my_home = true, |
||||||
auto_set_filetype = true, |
-- auto_set_filetype = true, |
||||||
|
|
||||||
dailies = home .. "/journal", |
-- dailies = home .. "/journal", |
||||||
dalies_create_nonexisting = true, |
-- dalies_create_nonexisting = true, |
||||||
template_new_daily = home .. "/templates/daily.md", |
-- template_new_daily = home .. "/templates/daily.md", |
||||||
|
|
||||||
extension = ".md", |
-- extension = ".md", |
||||||
|
|
||||||
image_link_style = "markdown", |
-- image_link_style = "markdown", |
||||||
|
|
||||||
plug_into_calendar = true, |
-- plug_into_calendar = true, |
||||||
|
|
||||||
}) |
-- }) |
||||||
|
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>zn', tele.new_note, options) |
-- vim.keymap.set('n', '<leader>zn', tele.new_note, options) |
||||||
vim.keymap.set('n', '<leader>zT', tele.goto_today, options) |
-- vim.keymap.set('n', '<leader>zT', tele.goto_today, options) |
||||||
vim.keymap.set('n', '<leader>zt', function() |
-- vim.keymap.set('n', '<leader>zt', function() |
||||||
local line = vim.api.nvim_get_current_line() |
-- local line = vim.api.nvim_get_current_line() |
||||||
local nline = os.date("## %H:%M ") |
-- local nline = os.date("## %H:%M ") |
||||||
vim.api.nvim_command(":normal Go") |
-- vim.api.nvim_command(":normal G2o") |
||||||
vim.api.nvim_set_current_line(nline) |
-- vim.api.nvim_set_current_line(nline) |
||||||
vim.api.nvim_command(":normal o") |
-- vim.api.nvim_command(":normal o") |
||||||
end) |
-- end) |
||||||
vim.keymap.set('n', '<leader>zs', tele.search_notes, options) |
-- vim.keymap.set('n', '<leader>zs', tele.search_notes, options) |
||||||
vim.keymap.set('n', '<leader>zg', tele.follow_link, options) |
-- vim.keymap.set('n', '<leader>zg', tele.follow_link, options) |
||||||
vim.keymap.set('n', '<leader>zp', tele.panel, options) |
-- vim.keymap.set('n', '<leader>zp', tele.panel, options) |
||||||
vim.keymap.set('n', '<leader>zc', tele.show_calendar, options) |
-- vim.keymap.set('n', '<leader>zc', tele.show_calendar, options) |
||||||
|
-- vim.keymap.set('n', '<leader>zo', tele.toggle_todo, options) |
||||||
|
Loading…
Reference in new issue