advice2020 left a comment (geany/geany-plugins#1560)
@Skif-off
Thank you for making these updates.
Again these work perfect.
1.) Oh okay that makes sense now, I had tried `~/` and `$HOME/`
I did not realize these would not work as is.
Strange because I also thought I added full path to the `sD` line in my tests
as well but it did not work at that time.
Cannot remember, maybe I did not add quotes?
Anyways I was able to get the two suggestions you mentioned to work (thank you
for providing both options).
Examples I tried with your suggestions
`local sD = "/home/<username>/Downloads/"`
and
`local sD = "~/Downloads/"` or `local sD = "$HOME/Downloads/"`
when used with
```
if geany.dirsep == "\\" then
sD = string.gsub(sD, "%%([A-Z]+)%%", os.getenv)
else
if string.sub(sD, 1, 2) == "~/" then
sD = "$HOME/" .. string.sub(sD, 3, -1)
end
sD = string.gsub(sD, "%$([A-Z]+)", os.getenv)
end
local sBF = sD .. geany.dirsep .. "bookmarks.txt"
```
Both worked perfectly.
As mentioned I think I am going to keep in config folder but nice to have
option to change if needed.
These scripts really give so much more functionality to the Bookmark feature
now that they can be recalled.
Hopefully you will find a use for these scripts as well.
Thank you again for providing these scripts and for all your help.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1560#issuecomment-4755819837
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany-plugins/issues/1560/[email protected]>