Replies: 1 comment
-
function my_func(bp)
local buffer = bp.Buf
local i = 0
while i < buffer:LinesNum() do
local line = buffer:Line(i)
do_something_with_line(line)
i = i + 1
end
end |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dustdfg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I understand that in my function called by registered key binding I get
BufferPane
. I want to iterate over each line of the file associated with but I don't understand how. I don't see the appropriate methods inBufferPane
orBuffer
... Do I need to use go std? If yes, where to see?Beta Was this translation helpful? Give feedback.
All reactions