You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+64-61
Original file line number
Diff line number
Diff line change
@@ -3,21 +3,23 @@
3
3
All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) with respect to the public API, which currently includes the installation steps, dependencies, configuration, keymappings, commands, and other plugin functionality. At the moment this does *not* include the Lua `Client` API, although in the future it will once that API stabilizes.
6
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) with respect to the public API, which currently includes the installation steps, dependencies, configuration, keymappings, commands, and other plugin functionality. At the moment this does _not_ include the Lua `Client` API, although in the future it will once that API stabilizes.
7
7
8
8
## Unreleased
9
9
10
10
### Added
11
11
12
12
- Added `opts.follow_img_func` option for customizing how to handle image paths.
13
13
- Added better handling for undefined template fields, which will now be prompted for.
14
-
- Added support for the [`snacks.picker`](https://github.com/folke/snacks.nvim/blob/main/docs/picker.md) picker
14
+
- Added support for the [`snacks.picker`](https://github.com/folke/snacks.nvim/blob/main/docs/picker.md) picker.
15
15
- Added support for the [`blink.cmp`](https://github.com/Saghen/blink.cmp) completion plugin.
16
+
- Added `opts.legacy_commands` option which enables the old commands.
16
17
17
18
### Changed
18
19
19
20
- Renamed `opts.image_name_func` to `opts.attachments.img_name_func`.
20
-
- Default to not activate ui render when `render-markdown.nvim` or `markview.nvim` is present
21
+
- Default to not activate ui render when `render-markdown.nvim` or `markview.nvim` is present.
22
+
- Moved all commands into one `:Obsidian` command.
21
23
22
24
### Fixed
23
25
@@ -196,11 +198,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
196
198
There's a lot of new features and improvements here that I'm really excited about 🥳 They've improved my workflow a ton and I hope they do for you too. To highlight the 3 biggest additions:
197
199
198
200
1. 🔗 Full support for header anchor links and block links! That means both for following links and completion of links. Various forms of anchor/block links are support. Here are a few examples:
199
-
- Typical Obsidian-style wiki links, e.g. `[[My note#Heading 1]]`, `[[My note#Heading 1#Sub heading]]`, `[[My note#^block-123]]`.
200
-
- Wiki links with a label, e.g. `[[my-note#heading-1|Heading 1 in My Note]]`.
201
-
- Markdown links, e.g. `[Heading 1 in My Note](my-note.md#heading-1)`.
202
201
203
-
We also support links to headers within the same note, like for a table of contents, e.g. `[[#Heading 1]]`, `[[#heading-1|Heading]]`, `[[#^block-1]]`.
202
+
- Typical Obsidian-style wiki links, e.g. `[[My note#Heading 1]]`, `[[My note#Heading 1#Sub heading]]`, `[[My note#^block-123]]`.
203
+
- Wiki links with a label, e.g. `[[my-note#heading-1|Heading 1 in My Note]]`.
204
+
- Markdown links, e.g. `[Heading 1 in My Note](my-note.md#heading-1)`.
205
+
206
+
We also support links to headers within the same note, like for a table of contents, e.g. `[[#Heading 1]]`, `[[#heading-1|Heading]]`, `[[#^block-1]]`.
204
207
205
208
2. 📲 A basic callback system to let you easily customize obisidian.nvim's behavior even more. There are currently 4 events: `post_setup`, `enter_note`, `pre_write_note`, and `post_set_workspace`. You can define a function for each of these in your config.
206
209
3. 🔭 Improved picker integrations (especially for telescope), particular for the `:ObsidianTags` command. See <https://github.com/epwalsh/obsidian.nvim/discussions/450> for a demo.
@@ -211,44 +214,44 @@ Full changelog below 👇
211
214
212
215
- Added a configurable callback system to further customize obsidian.nvim's behavior. Callbacks are defined through the `callbacks` field in the config:
213
216
214
-
```lua
215
-
callbacks= {
216
-
-- Runs at the end of `require("obsidian").setup()`.
217
-
---@paramclientobsidian.Client
218
-
post_setup=function(client) end,
219
-
220
-
-- Runs anytime you enter the buffer for a note.
221
-
---@paramclientobsidian.Client
222
-
---@paramnoteobsidian.Note
223
-
enter_note=function(client, note) end,
224
-
225
-
-- Runs anytime you leave the buffer for a note.
226
-
---@paramclientobsidian.Client
227
-
---@paramnoteobsidian.Note
228
-
leave_note=function(client, note) end,
229
-
230
-
-- Runs right before writing the buffer for a note.
- Added configuration option `note_path_func(spec): obsidian.Path` for customizing how file names for new notes are generated. This takes a single argument, a table that looks like `{ id: string, dir: obsidian.Path, title: string|? }`, and returns an `obsidian.Path` object. The default behavior is equivalent to this:
0 commit comments