Skip to content

Commit 35b2039

Browse files
committed
Mark before jumping.
1 parent 14e0427 commit 35b2039

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Added `opts.follow_img_func` option for customizing how to handle image paths.
1313
- Added better handling for undefined template fields, which will now be prompted for.
14+
- The follow-link function now marks the current position in the jump list before moving.
1415

1516
### Changed
1617

lua/obsidian/commands/follow_link.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ return function(client, data)
44
if data.args and string.len(data.args) > 0 then
55
opts.open_strategy = data.args
66
end
7-
7+
vim.cmd [[normal! m']]
88
client:follow_link_async(nil, opts)
99
end

0 commit comments

Comments
 (0)