Skip to content

v2.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Jan 17:21
· 408 commits to main since this release

What's new

Changed ⚠️

  • Creating new notes via :ObsidianFollowLink now matches the behavior of :ObsidianLinkNew, where the new note will be placed in the same directory as the current buffer note. This doesn't affect you if you use a flat directory structure for all of your notes.
  • :ObsidianRename will prompt for the new title/ID/path if not given as an argument.

Added 🎉

  • :ObsidianFollowLink now takes an optional "open strategy" argument. For example :ObsidianFollowLink vsplit or :ObsidianFollowLink vsp opens the note in a vertical split.
  • Added client method Client:command(...) for running commands directly. For example: :lua require("obsidian").get_client():command("ObsidianNew", { args = "Foo" }).
  • Added vim docs for the Lua API. See :help obsidian-api or :help obsidian.Client.
  • Added the option to create notes with a mapping from the telescope finder with :ObsidianQuickSwitch and :ObsidianSearch.
  • Added client methods Client:find_files() and Client:find_files_async() for finding non-markdown files in the vault.

Fixed ✅

  • Fixed bug with YAML encoder where strings with a colon followed by whitespace were not quoted.
  • Parent directories are created when using a template (for example, for daily notes).
  • Fixed bug with finder/picker in :ObsidianLink when current working directory is not vault root.
  • :ObsidianFollowLink will now work when the link contains spaces encoded with "%20" (as they are in URLs) to match the behavior of the Obsidian app.

Commits

9a6eb2a Allow spaces encoded with '%20' in links (#317)
bbe8ceb chore(docs): auto generate docs
f9a3f03 add warning about viewing readme from main
6cff32e Fix bug with picker in :ObsidianLink (#316)
a11a754 chore(docs): auto generate docs
eae7bfd Add Client:find_files(_async) method (#312)
3c99b2c prompt for new title/id/path with ObsidianRename
1e120b7 fix(templates): create parent directories (#311)
568f729 chore(docs): auto generate docs
0c0ef84 feat: create new note on C-x with telescope (#296)
2d02fe9 Fix bug with YAML encoder (#309)
4c3f8c1 refactor(ui.lua): only notify the user for conceallevel in markdown files once (#307)
e9a8fd0 fix logging of stderr
073c446 default to "yes" with confirmation prompt when nothing is entered (#306)
2378382 Fix: make :ObsidianFollowLink match behavior of :ObsidianLinkNew with new notes (#303)
5074f5a Fix docs CI on PRs
2fc107e clean up again
2a067ee keep file from being generated
bbdce9d chore(docs): auto generate docs
467cfe7 clean up
673cd6c chore(docs): auto generate docs
dfbd15c ensure _neovim not committed
e14df3a Integrate mini.doc to generate Lua API docs (#300)
2b8e8d1 chore(docs): auto generate docs
72d1ea1 Add warning when 'conceallevel' not set correctly
f8b6bb9 make language server happy
9839def Add client method for running commands directly (#298)
806e026 chore(docs): auto generate docs
44d2b97 Add optional open strategy arg to :ObsidianFollowLink
fe20be1 chore(docs): auto generate docs