Skif-off left a comment (geany/geany-plugins#1560)

> I am glad you were able to figure out a way to go with this more manual 
> approach, rather then Geany having to check each open/close using events 
> folder feature, for this use case.

It was easier than using events :)

1.) Using 
[geany.appinfo](https://plugins.geany.org/geanylua/geanylua-ref.html#appinfo) 
is the easiest way.
`sD` is a directory and if you want to change, use full path as is. (but with 
"\\" instead of "\" in Windows!).

For any path (with environment variables too, but not relative path) try 
something like
```lua
local sD = "your-custom-dir"
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"
```

2.) 0, 1 and so on is the internal representation of line numbers in Scintilla 
and I didn't change that.
Fixed.

3.) Fixed.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1560#issuecomment-4716202443
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/issues/1560/[email protected]>

Reply via email to