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

new_notes_location

Open RetroTechCorner opened this issue 1 year ago • 3 comments

🚀 The feature, motivation and pitch

Could new_notes_location include a directory/folder as an option? I think a dir (inside a workspace) was an option at some point (as I'm sure it worked with my 0_Inbox) but now it doesn't..

  -- Where to put new notes. Valid options are
  --  * "current_dir" - put new notes in same directory as the current buffer.
  --  * "notes_subdir" - put new notes in the default notes subdirectory.
  new_notes_location = "notes_subdir",

Alternatives

No response

Additional context

No response

RetroTechCorner avatar May 15 '24 08:05 RetroTechCorner

    {
      name = "personal",
      path = "~/vaults/personal",
    },
    {
      name = "work",
      path = "~/vaults/work",
      -- Optional, override certain settings.
      overrides = {
        notes_subdir = "notes",
      },
    },
  },
  -- Optional, if you keep notes in a specific subdirectory of your vault.
  notes_subdir = "notes",

Is this what you are looking for?

huantrinh1802 avatar May 15 '24 09:05 huantrinh1802

No, not really. it's specifically for new notes (ie. I've my notes in ~/notes but new notes need to go to ~/notes/0_inbox so perhaps you could 'extend' "new_notes_location" to a directory (and not only "current_dir" and "notes_subdir")?

RetroTechCorner avatar May 19 '24 08:05 RetroTechCorner

If I understand your setup correctly, this is what you want from your example.

  {
    {
      name = "my_notes",
      path = "~/notes",
    },
    notes_subdir = "0_inbox",
    new_notes_location = "notes_subdir",
  },

huantrinh1802 avatar May 19 '24 23:05 huantrinh1802