Thanks for the pointer. This is my script: function CopySelectedVisibleLines() local startLine = editor:LineFromPosition(editor.SelectionStart) local endLine = editor:LineFromPosition(editor.SelectionEnd) local lineTexts = {} local lineText = "" for line = startLine, endLine do if editor.LineVisible[line] then lineText = editor:GetLine(line) table.insert(lineTexts, lineText) end end editor:CopyText(table.concat(lineTexts)) end Please close the ticket.
Thanks for the pointer. This is my script: function CopySelectedVisibleLines() local startLine = editor:LineFromPosition(editor.SelectionStart) local endLine = editor:LineFromPosition(editor.SelectionEnd) local lineTexts = {} local lineText = "" for line = startLine, endLine do if editor.LineVisible[line] then lineText = editor:GetLine(line) table.insert(lineTexts, lineText) end end editor:CopyText(table.concat(lineTexts)) end
Thanks for the pointer. This is my script: function CopySelectedVisibleLines() local startPos = editor.SelectionStart local endPos = editor.SelectionEnd local startLine = editor:LineFromPosition(startPos) local endLine = editor:LineFromPosition(endPos) local lineTexts = {} for line = startLine, endLine do local visible = editor.LineVisible[line] if visible then local lineText = editor:GetLine(line) table.insert(lineTexts, lineText) end end editor:CopyText(table.concat(lineTexts)) end
Thanks for the pointer. I used the following code: function CopySelectedVisibleLines() local startPos = editor.SelectionStart local endPos = editor.SelectionEnd local startLine = editor:LineFromPosition(startPos) local endLine = editor:LineFromPosition(endPos) local lineTexts = {} for line = startLine, endLine do local visible = editor.LineVisible[line] if visible ~= 0 then local lineText = editor:GetLine(line) table.insert(lineTexts, lineText) end end -- Join and put into clipboard editor:CopyText(table.concat(lineTexts))...
Thanks for the pointer. I tried to use message SCI_GETLINEVISIBLE (see [1]) but got the error Pane function / readable property / indexed writable property name expected with the following code: function CopySelectedVisibleLines() local editor = editor local startPos = editor.SelectionStart local endPos = editor.SelectionEnd local startLine = editor:LineFromPosition(startPos) local endLine = editor:LineFromPosition(endPos) local result = {} for line = startLine, endLine do -- Query Scintilla directly:...
Thanks for the pointer. I tried to use message SCI_GETLINEVISIBLE (see [1]) but got the error Pane function / readable property / indexed writable property name expected with the following code: function CopySelectedVisibleLines() local editor = editor local startPos = editor.SelectionStart local endPos = editor.SelectionEnd local startLine = editor:LineFromPosition(startPos) local endLine = editor:LineFromPosition(endPos) local result = {} for line = startLine, endLine do -- Query Scintilla directly:...
Option to copy only matching lines to clipboard in filter view
It worked with w64devkit 2.4.0 [1], which ships gcc 15.2.0. [1] https://github.com/skeeto/w64devkit