Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Front matter alias duplicates itself on save. #341

Closed
rileyhawk1417 opened this issue Jan 23, 2024 · 4 comments
Closed

Front matter alias duplicates itself on save. #341

rileyhawk1417 opened this issue Jan 23, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@rileyhawk1417
Copy link

🐛 Describe the bug

When saving a file the alias tag value duplicates itself. Noticed that it happened a few times on that particular file. Although I think its just an edge case. I took a screen recording of the bug happening.

2024-01-23.06-27-14.mp4

Versions

❯ nvim --version
nvim --headless -c 'lua require("obsidian").info()' -c q
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1702233742

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
[obsidian.nvim (v2.7.0)] Commit SHA: e2d6ce7b07941b0788177e1297699ad99c1470dc
[plenary.nvim] Commit SHA: 663246936325062427597964d81d30eaa42ab1e4
[nvim-cmp] Commit SHA: 538e37ba87284942c1d76ed38dd497e54e65b891
[telescope.nvim] Commit SHA: d90956833d7c27e73c621a61f20b29fdb7122709
ripgrep 14.1.0%
@rileyhawk1417 rileyhawk1417 added the bug Something isn't working label Jan 23, 2024
@epwalsh
Copy link
Owner

epwalsh commented Jan 23, 2024

Hey @rileyhawk1417, I just pushed a fix in 3b4c672.

@rileyhawk1417
Copy link
Author

Hi @epwalsh thanks for the fix its working :)
Have been daily driving Neovim so having a plugin for note taking is a game changer 😄

@pranavTripathi02
Copy link

Hi @epwalsh, this issue still seems to occur if there is whitespace following the header without quotes
# Heading<space> duplicates the alias while # Heading does not and neither does # "Heading<space>"

@epwalsh
Copy link
Owner

epwalsh commented Feb 5, 2024

Hey @pranavTripathi02, thanks for letting me know. I just fixed that in d1c8162.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants