Tangle bug when filename has special chars (`_-/` etc)
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
This is a TS parser problem. The same problem that prevents you from giving a path to a sub-directory like that. It's really annoying. It's been around for while. New parser is in development, but things have been paused for a while as people wrap up school and exams.
I'd recommend specifying the file paths in the document meta-data, I know that's limiting, but it's the best workaround for now.