Skip to content

Commit

Permalink
Add file completion to :ObsidianNew command
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Mar 18, 2024
1 parent e3d1b86 commit ade062a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/obsidian/commands/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ M.register("ObsidianTomorrow", { opts = { nargs = 0, desc = "Open the daily note

M.register("ObsidianDailies", { opts = { nargs = "*", desc = "Open a picker with daily notes" } })

M.register("ObsidianNew", { opts = { nargs = "?", desc = "Create a new note" } })
M.register("ObsidianNew", { opts = { nargs = "?", complete = "file", desc = "Create a new note" } })

M.register(
"ObsidianOpen",
Expand Down

0 comments on commit ade062a

Please sign in to comment.