note.nvim icon indicating copy to clipboard operation
note.nvim copied to clipboard

Per project/repository notes?

Open felipesere opened this issue 2 years ago • 3 comments

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/).

felipesere avatar Oct 16 '23 08:10 felipesere

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.

gsuuon avatar Oct 16 '23 16:10 gsuuon

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?

felipesere avatar Oct 16 '23 19:10 felipesere

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.

gsuuon avatar Oct 17 '23 02:10 gsuuon