This plugin is my primitive way of doing notes as i use NeoVim as my daily code editor.
Using lazy.nvim
return {
'pilarskikt/qnotes.nvim',
dependencies={
{'nvim-telescope/telescope.nvim', branch='0.1.x'}
},
}
You can configure the directory in which you want to keep your notes or stay with default which is ~/notes
to configure directory please use notes_dir
for example:
return {
'pilarskikt/qnotes.nvim',
dependencies={
{'nvim-telescope/telescope.nvim', branch='0.1.x'}
},
opts = {
notes_dir = "~/my_notes/custom/dir"
},
}
User can also create use own keymaps which are create_note_keymap
, search_note_keymap
, 'create_line_note_keymap' and 'delete_line_note_keymap':
return {
'pilarskikt/qnotes.nvim',
dependencies={
{'nvim-telescope/telescope.nvim', branch='0.1.x'}
},
opts = {
create_note_keymap = "<leader>n",
search_note_keymap = "<leader>f",
},
}
At the moment there are four keymaps:
<leader>qn
- for creating new note
<leader>qf
- for searching through notes
<leader>ql
- create new note for specific line of code(it will trigger creating(if doesnt exist) metadata file that keeps information about lines that have linked notes)
<leader>qd
- delete note for current line\
When creating new note you will be asked for filename of the notes and tags. If filename is not provided qnotes will create journalfile named {CURRENT_DATE}-JOURNAL.MD
the file is going to be created in journal
subdirectory of your notes directory.