Skif-off left a comment (geany/geany-plugins#1491)
For example,
```lua
-- (~ cross-platform)
-- 2025.07.23
--[[
https://github.com/geany/geany-plugins/issues/1491
]]
local sDirName = "~/.config/geany/plugins/geanylua"
if string.sub(sDirName, 1, 2) == "~/" then
sDirName = "$HOME/" .. string.sub(sDirName, 3, -1)
end
sDirName = string.gsub(sDirName, "%$([A-Z]+)", os.getenv)
local sFN = geany.pickfile("open", sDirName, nil)
if sFN == nil then return end
local iFN = geany.open(sFN)
if iFN == 0 then
geany.message("Fail.")
return
end
```
Supports `~/` and environment variables.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1491#issuecomment-3107391503
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany-plugins/issues/1491/[email protected]>