diff --git a/README.md b/README.md index a8aa745..c91ba09 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A Neovim (lua) plugin for working with a text-based, markdown [zettelkasten](htt Find notes by name, daily and weekly notes by date, search within all notes, place and follow links to your notes or create new ones, with templates. Current daily and weekly notes are (optionally) created if not present when searching for dailies or weeklies. Following a link to a non-existing note can also create the missing note (optional). -Telekasten.nvim can optionally plug into [calendar-vim](https://github.com/mattn/calendar-vim): Selecting a day in the calendar will open up a telescope search with preview that lets you open the daily note (or cancel out and keep browsing your calendar). The daily note will be created if it doesn't exist. Days with daily notes get marked in the calendar. +Telekasten.nvim can optionally plug into [calendar-vim](https://github.com/renerocksai/calendar-vim): Selecting a day in the calendar will open up a telescope search with preview that lets you open the daily note (or cancel out and keep browsing your calendar). The daily note will be created if it doesn't exist. Days with daily notes get marked in the calendar. If you have `xclip` installed, Telekasten.nvim can even **paste images from the clipboard** into a dedicated sub-directory and insert a wiki or markdown link at the current cursor position! @@ -40,7 +40,7 @@ Since this plugin uses [telescope.nvim](https://github.com/nvim-telescope/telesc #### calendar-vim Plugin (optional) -Telekasten.nvim can optionally plug into [calendar-vim](https://github.com/mattn/calendar-vim): Selecting a day in the calendar will open up a telescope search with preview that lets you open the daily note (or cancel out). The daily note will be created if it doesn't exist. Days with daily notes get marked in the calendar. +Telekasten.nvim can optionally plug into **my bugfixed version of** [calendar-vim](https://github.com/renerocksai/calendar-vim): Selecting a day in the calendar will open up a telescope search with preview that lets you open the daily note (or cancel out). The daily note will be created if it doesn't exist. Days with daily notes get marked in the calendar. See below for installing and using it. @@ -61,10 +61,10 @@ Install with your plugin manager of choice. Mine is [Vundle](https://github.com Plugin 'renerocksai/telekasten.nvim' ``` -I higly recommend using the calendar integration. For that you'll need [calendar-vim](https://github.com/mattn/calendar-vim): +I higly recommend using the calendar integration. For that you'll need [calendar-vim](https://github.com/renerocksai/calendar-vim): ```vim -Plugin 'mattn/calendar-vim' +Plugin 'renerocksai/calendar-vim' ``` @@ -302,6 +302,12 @@ When invoking `show_calendar()`, a calendar showing the previous, current, and n - days that have a daily note associated with them are marked with a + sign and a different color - pressing enter on a day will open up a telescope finder with the associated daily note selected and previewed. The daily note will be created if it doesn't exist. If you choose to not open the note, you will return to the calender so you can preview other notes. +If you want to see a big calendar showing the current month that fills your entire window, you can issue the following +command in vim: + +```vim +:CalendarT +``` ## Bind it Usually, you would set up some key bindings, though: @@ -317,6 +323,7 @@ nnoremap zn :lua require('telekasten').new_note() nnoremap zN :lua require('telekasten').new_templated_note() nnoremap zy :lua require('telekasten').yank_notelink() nnoremap zc :lua require('telekasten').show_calendar() +nnoremap zC :CalendarT nnoremap zi :lua require('telekasten').paste_img_and_link() nnoremap zt :lua require('telekasten').toggle_todo() diff --git a/doc/telekasten.txt b/doc/telekasten.txt index aa3b5cb..ad38164 100644 --- a/doc/telekasten.txt +++ b/doc/telekasten.txt @@ -507,6 +507,15 @@ next month is shown at the right side of vim. if it doesn't exist. If you choose to not open the note, you will return to the calender so you can preview other notes. +If you want to see a big calendar showing the current month that fills your +entire window, you can issue the following command in vim: +> + :CalendarT +< +Note:~ + Calendar functions are only available if you have the plugin `calendar-vim` + installed, which you can find at https://github.com/renerocksai/calendar-vim + ================================================================================ Section 4: Suggested Mappings *telekasten.mappings* @@ -524,6 +533,7 @@ However, here are some suggestions: nnoremap zN :lua require('telekasten').new_templated_note() nnoremap zy :lua require('telekasten').yank_notelink() nnoremap zc :lua require('telekasten').show_calendar() + nnoremap zC :CalendarT nnoremap zi :lua require('telekasten').paste_img_and_link() nnoremap zt :lua require('telekasten').toggle_todo()