Skip to content

Commit

Permalink
fix(dirman): norg link with . was misinterpreted as the extension
Browse files Browse the repository at this point in the history
  • Loading branch information
pysan3 authored and vhyrro committed Mar 29, 2024
1 parent e0690fa commit 96fe2c9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/luarocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
lua-utils.nvim == 1.0.2
plenary.nvim == 0.1.4
nui.nvim == 0.3.0
pathlib.nvim ~> 2
pathlib.nvim ~> 2.1
2 changes: 1 addition & 1 deletion build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ vim.schedule(function()
"lua-utils.nvim == 1.0.2",
"plenary.nvim == 0.1.4",
"nui.nvim == 0.3.0",
"pathlib.nvim ~> 2",
"pathlib.nvim ~> 2.1",
})

package.loaded["neorg"] = nil
Expand Down
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/dirman/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ module.public = {
return
end

local destination = (fullpath / path):with_suffix(".norg")
local destination = (fullpath / path):add_suffix(".norg")

-- Generate parents just in case
destination:parent_assert():mkdir(Path.const.o755 + 4 * math.pow(8, 4), true) -- 40755(oct)
Expand Down
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/dirman/utils/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.public = {
}, " "))
return
end
filepath = filepath:with_suffix(".norg")
filepath = filepath:add_suffix(".norg")
end
return filepath
end,
Expand Down
2 changes: 1 addition & 1 deletion neorg-scm-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies = {
-- "norgopolis-client.lua >= 0.2.0",
-- "norgopolis-server.lua >= 1.3.1",
"lua-utils.nvim",
"pathlib.nvim ~> 2",
"pathlib.nvim ~> 2.1",
}

source = {
Expand Down

0 comments on commit 96fe2c9

Please sign in to comment.