use $PWD instead of directory of current file
parent
683b422944
commit
b46b5c33cb
|
|
@ -33,7 +33,7 @@ end
|
||||||
---Performing common file operation tasks
|
---Performing common file operation tasks
|
||||||
---@param op string rename|duplicate|new|newFromSel
|
---@param op string rename|duplicate|new|newFromSel
|
||||||
local function fileOp(op)
|
local function fileOp(op)
|
||||||
local dir = expand("%:p:h")
|
local dir = fn.getcwd()
|
||||||
local oldName = expand("%:t")
|
local oldName = expand("%:t")
|
||||||
local oldFilePath = expand("%:p")
|
local oldFilePath = expand("%:p")
|
||||||
local oldNameNoExt = oldName:gsub("%.%w+$", "")
|
local oldNameNoExt = oldName:gsub("%.%w+$", "")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue