gsuuon / note.nvim

Notes in neovim
66 stars 1 forks source link

Per project/repository notes? #1

Open felipesere opened 1 year ago

felipesere commented 1 year ago

Hi, This plugin looks pretty interesting. I struggle with notes so I'm often looking around 😅

Does this plugin support keeping project-specific notes? I have a folder zzz-felipe/ in each repo that I would love to keep notes in (e.g. zzz-felipe/notes/).

gsuuon commented 1 year ago

Hi @felipesere! Yup you can add directories under spaces in config. Check the readme usage and config sections. You would just add zzz-felipe as the note root per each project, so spaces = { '~/my-foo-repo/zzz-felipe', '~/my-bar-repo/zzz-felipe' }. The directory given in spaces should contain a notes folder, but if not I think the folder will be created when you make your first note.

felipesere commented 1 year ago

Oh I have too many repos for that 😅 I wonder if there could be special syntax

spaces = {
  {
    git_root_relative = "zzz-felipe/"
  }
}

or something like that?

gsuuon commented 1 year ago

Oh I see -- well, you could always programmatically build the list of spaces. I think it'd be possible to add a feature where spaces could be defined by path matching.