Releases: epwalsh/obsidian.nvim
v2.10.0
What's new
Added π
- Added note field
Note.title
to provide more useful info fornote_frontmatter_func
. - Added client method
Client:format_link()
for creating markdown / wiki links. - Added telescope action to insert a note link in certain finder scenarios.
Fixed β
- Fixed parsing header with trailing whitespace (#341 (comment)).
Commits
32de09d chore(release): bump version to v2.10.0 for release
9a737a4 chore(docs): auto generate docs
072e9ca Add title
field to Note
class (#375)
8db7c0c chore(docs): auto generate docs
cf7516d insert_link action (#367)
d1c8162 Fix parsing header with trailing whitespace
e35acb8 chore(docs): auto generate docs
27bc40c Add client method Client:format_link()
.
v2.9.0
What's new
Added π
- Added configuration option
image_name_func: (fun(): string)|?
for customizing the default image name/prefix when pasting images via:ObsidianPasteImg
. - Added client method
Client:current_note()
to get the note corresponding to the current buffer. - Added client method
Client:list_tags()
for listing all tags in the vault, along with async versionClient:list_tags_async(callback: fun(tags: string[]))
. - Added note method
Note.add_field(key: string, value: any)
to add/update an additional field in the frontmatter. - Added note method
Note.get_field(key: string)
. - Added note method
Note.save_to_buffer(bufnr: integer|?, frontmatter: table|?)
for saving the frontmatter to a buffer.
Changed β οΈ
:ObsidianTags
command can take a visual selection or look for a tag under the cursor instead of explicitly provided arguments.
Commits
8b10f0c chore(release): bump version to v2.9.0 for release
c83f9cb Minor fixes + clean up
a20754e chore(docs): auto generate docs
2cb2446 Update demo
426e1e0 chore(docs): auto generate docs
2e17d08 Update screenshots
31e7cfc chore(docs): auto generate docs
5ee32ec update readme
35afa8d chore(docs): auto generate docs
5fecc73 Open finder with all tags when no tag supplied to :ObsidianTags
97f0cfe feat(toggle_checkbox): transform non-checkbox line into a checkbox (#363)
d9be302 Allow viz selection or cursor location with :ObsidianTags
command
6b2e0f5 Fix type of note_id_func
a0fe470 chore(docs): auto generate docs
a6596be Make tag completion fuzzy
8d7842e chore(docs): auto generate docs
210874b Merge pull request #362 from epwalsh/epwalsh/list-tags
8ea05a3 Add description to toggle_checkbox keymap opts (#358)
f5e560b chore(docs): auto generate docs
ae39ba3 Add option to customize default image name
b6eba26 Improve foldtext in location list
d1782e4 chore(docs): auto generate docs
7e3ae5a Add method Note:get_field(key: string)
6231702 Make URL regex more robust
1a14849 chore(docs): auto generate docs
6094a23 fix type
89813ca chore(docs): auto generate docs
b0fd116 Add new client and note methods (#351)
64de405 fix(open): linux error spawning new obsidian process (#346)
v2.8.0
What's new
Added π
- Added
:ObsidianTags
command.
Changed β οΈ
- Changed API of client methods
Client:find_tags()
andClient:find_tags_async()
. The return value (or value passed to the callback) is now a list of objects representing the location of tags found. These objects have the following fields:tag: string
,path: string|Path
,line: integer
.
Fixed β
- Fixed a YAML parsing issue with unquoted URLs in an array item.
- Fixed an issue on Windows when cloning a template into a new note. The root cause was this bug in plenary: nvim-lua/plenary.nvim#489. We've added a work-around.
Commits
b101ad8 chore(release): bump version to v2.8.0 for release
f5176ea Add work-around for plenary path bug on Windows (#349)
217f7c7 Fix YAML parsing issues with unquoted URLs (#348)
194f9fc chore(docs): auto generate docs
c8b7d91 Add :ObsidianTags
command (#345)
5f469fa Separate quickfix win logic from backlinks
3b0020d chore(docs): auto generate docs
fecc91f Improve API of Client:find_tags()
and find_tags_async()
(#344)
v2.7.1
What's new
Fixed β
- Fixed powershell command for
:ObsidianPasteImg
in wsl - Fixed bug with YAML parser that led to incorrectly parsing double-quoted strings with escaped quotes inside.
Commits
f604a30 chore(release): bump version to v2.7.1 for release
59bc77b handle frontmatter parsing failures better
2c751d8 fix powershell command for :ObsidianPasteImg
on WSL (#340)
3b4c672 Fix bug with YAML parser
1c88899 chore(docs): auto generate docs
f293f7d Fix typo in README.md
a6b03f0 update release notes
v2.7.0
What's new
Fixed β
- Fixed fzf-lua implementation of insert template and linking.
- Fixed minor bug with
cmp_obsidian_new
.
Added π
- Added support for parsing single aliases specified as a string, not a list, in frontmatter. E.g.
aliases: foo
as opposed toaliases: [foo]
. Though when the frontmatter is saved it will always be saved as a YAML list, soaliases: foo
gets saved asaliases: [foo]
(or equivalent). - Added
Client
methodsClient:apply_async()
andClient:apply_async_raw()
.
Commits
c3e88c5 chore(docs): auto generate docs
cd0f9d3 add emphasis to readme
bb2ff83 chore(docs): auto generate docs
51ca4dd Add Client:apply_async()
and :apply_async_raw()
(#336)
50b67e2 fix minor bug with cmp_obsidian_new
bf8083f Add support for single aliases as string
342af36 minor refactor
abf772d Fix template usage for fzf_lua (#326)
v2.6.1
What's new
Added π
- Added extmarks that conceal "-", "*", or "+" with "β’" by default. This can turned off by setting
.ui.bullets
tonil
in your config.
Fixed β
- Fixed bug with resolving the vault-relative path when the vault is behind a symlink.
- Fixed bug with completion after changing workspaces.
Commits
8ffe0e4 Fix bug with completion after changing workspaces (#328)
02cb29f error when template file not found
aaba6eb Bullet marks for lists marked up with + or * (#324)
3160fe5 chore(docs): auto generate docs
c2a8ae4 Clarify that the example config is not default
86caccd Add note about how to disable UI features in warning
0bc8f68 Fix bug with Client:vault_relative_path
(#322)
6b232d4 chore(docs): auto generate docs
5ac4951 add bullet marks (#320)
v2.6.0
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()
andClient: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
v2.5.3
v2.5.2
What's new
Fixed β
- Fixed bug with
Client:resolve_note()
that missed checking the parent directory of the current buffer. - Made gathering backlinks work with links of different forms, like Markdown or Wiki with just an alias.
Commits
827668e Make gathering backlinks more robust
0f7517b fix big with Client:resolve_note()
fa201a5 chore(docs): auto generate docs
fd5322d Link to @omerxx's YouTube video in README