mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
fix: rename links with spaces (closes #117)
This commit is contained in:
@@ -313,11 +313,11 @@ local function recursive_substitution(dir, old, new)
|
||||
sedcommand = "sed -i ''"
|
||||
end
|
||||
|
||||
local replace_cmd = "rg -l -t markdown '"
|
||||
local replace_cmd = "rg -0 -l -t markdown '"
|
||||
.. old
|
||||
.. "' "
|
||||
.. dir
|
||||
.. " | xargs "
|
||||
.. " | xargs -0 "
|
||||
.. sedcommand
|
||||
.. " 's|"
|
||||
.. old
|
||||
|
||||
Reference in New Issue
Block a user