Please, help needed: I guess, I'm missing something obvious, but I haven't 
figured out what it is yet.

I tried to set bookmark for each line with marked text (after "Mark All" or 
related button in the Find dialog):
```lua
-- Marker mask: GEANY_INDICATOR_SEARCH = 8, so "mask = 1 << 8" or "1 * 2 ^ 8"
local iM = 0x100

-- SCI_MARKERGET
if geany.scintilla(2046, 0, 8) ~= 0 then
  -- SCI_MARKERADD
  geany.scintilla(2043, 0, 1)
end
local n1, n2
n2 = 0
while true do
  -- SCI_MARKERNEXT
  n1 = geany.scintilla(2047, n2 + 1, iM)
  if n1 == -1 then break end
  -- SCI_MARKERADD
  geany.scintilla(2043, n1, 1)
  n2 = n1
end
```
This script didn't work, so I tried another way:
```lua
local n1, n2, n3
n2 = 0
while true do
  -- SCI_INDICATORSTART
  n1 = geany.scintilla(2508, 8, n2)
  if n1 == -1 then break end
  -- SCI_LINEFROMPOSITION
  n3 = geany.scintilla(2166, n1, 0)
  -- SCI_MARKERADD
  geany.scintilla(2043, n3, 0)
  n2 = n1 + 1
end
```
but didn't work too.
Any ideas?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/4602
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/repo-discussions/[email protected]>

Reply via email to