neorg
neorg copied to clipboard
Tangle bug when filename has dash (-) or underscore (_)
Prerequisites
- [X] I am using the latest stable release of Neovim
- [X] I am using the latest version of the plugin
Neovim Version
NVIM v0.9.5
Neorg setup
return {
"nvim-neorg/neorg",
dependencies = {
"folke/zen-mode.nvim",
{
"vhyrro/luarocks.nvim",
config = true,
},
},
ft = "norg",
opts = {
load = {
["core.completion"] = { config = { engine = "nvim-cmp" } },
["core.concealer"] = {},
["core.defaults"] = {},
["core.export"] = {},
["core.keybinds"] = { config = { neorg_leader = " " } },
["core.presenter"] = { config = { zen_mode = "zen-mode" } },
},
},
}
Actual behavior
Have this block of code in an neorg
file
#tangle a-a
@code sh
echo dash
@end
Run :Neorg tangle
, a file named -a
is then created. Having the more than 1 dash makes the tangle skip it entirely.
Expected behavior
A file with the correct name created.
Steps to reproduce
As described in the Actual Behavior section
Potentially conflicting plugins
No response
Other information
No response
Help
None
Implementation help
No response