Skip to content

Commit 96fe2c9

Browse files
pysan3vhyrro
authored andcommitted
fix(dirman): norg link with . was misinterpreted as the extension
1 parent e0690fa commit 96fe2c9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/luarocks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
lua-utils.nvim == 1.0.2
3131
plenary.nvim == 0.1.4
3232
nui.nvim == 0.3.0
33-
pathlib.nvim ~> 2
33+
pathlib.nvim ~> 2.1

build.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ vim.schedule(function()
1616
"lua-utils.nvim == 1.0.2",
1717
"plenary.nvim == 0.1.4",
1818
"nui.nvim == 0.3.0",
19-
"pathlib.nvim ~> 2",
19+
"pathlib.nvim ~> 2.1",
2020
})
2121

2222
package.loaded["neorg"] = nil

lua/neorg/modules/core/dirman/module.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ module.public = {
305305
return
306306
end
307307

308-
local destination = (fullpath / path):with_suffix(".norg")
308+
local destination = (fullpath / path):add_suffix(".norg")
309309

310310
-- Generate parents just in case
311311
destination:parent_assert():mkdir(Path.const.o755 + 4 * math.pow(8, 4), true) -- 40755(oct)

lua/neorg/modules/core/dirman/utils/module.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module.public = {
6464
}, " "))
6565
return
6666
end
67-
filepath = filepath:with_suffix(".norg")
67+
filepath = filepath:add_suffix(".norg")
6868
end
6969
return filepath
7070
end,

neorg-scm-1.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies = {
1616
-- "norgopolis-client.lua >= 0.2.0",
1717
-- "norgopolis-server.lua >= 1.3.1",
1818
"lua-utils.nvim",
19-
"pathlib.nvim ~> 2",
19+
"pathlib.nvim ~> 2.1",
2020
}
2121

2222
source = {

0 commit comments

Comments
 (0)