From f3b4f6d9e2bd78335d9dcb1f2552f5554cad7dfc Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Sun, 21 Nov 2021 21:50:26 +0100 Subject: [PATCH] update readme --- README.md | 10 ++++++---- lua/telekasten.lua | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 59fa44c..10f29d5 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Every navigation action, like following a link, is centered around a Telescope s ### The preview is a powerful feature Leaving the opening of the note to Telescope, you can decide with one keypress whether you want to open the note in a split or in the current window - or if you've seen enough. -I find that pressing the enter key to confirm the search does not interrupt my flow, and I really enjoy being able to check the preview. I often get enough information from the preview so I don't actually have to "visit" every note in terms of being able to edit it. +I find that pressing the enter key to confirm the search does not interrupt my flow, and I really enjoy being able to check the preview. I often get enough information from the it alone so I don't actually have to "visit" every note in terms of being able to edit it. ## Install and setup @@ -27,7 +27,7 @@ Plugin 'renerocksai/telekasten.nvim' ### 2. Configure telekasten.nvim Somewhere in your vim config, put a snippet like this: -```vimscript +```lua lua << END local home = vim.fn.expand("~/zettelkasten") require('telekasten').setup({ @@ -180,8 +180,10 @@ nnoremap zt :lua require('telekasten').goto_today() nnoremap zw :lua require('telekasten').find_weekly_notes() nnoremap zn :lua require('telekasten').new_note() -" note: we define [[ in **insert mode** to call insert link -inoremap [[ :lua require('telekasten').insert_link() +" we could define [[ in **insert mode** to call insert link +" inoremap [[ :lua require('telekasten').insert_link() +" alternatively: leader [ +inoremap [ :lua require('telekasten').insert_link() ``` ## The hardcoded stuff diff --git a/lua/telekasten.lua b/lua/telekasten.lua index 9762f00..7ac7da7 100644 --- a/lua/telekasten.lua +++ b/lua/telekasten.lua @@ -322,7 +322,7 @@ end -- find the file linked to by the word under the cursor -- SearchNotes = function(opts) - input opts = {} or opts + opts = {} or opts if (check_local_finder() == true) then builtin.live_grep({