[feature-requests:#1570] Option to copy only matching lines to clipboard in filter view
Status: open
Group: Initial
Created: Fri Nov 14, 2025 03:42 PM UTC by Georger Araujo
Last Updated: Fri Nov 14, 2025 03:42 PM UTC
Owner: nobody
Attachments:
This is on SciTE 5.5.8 on Windows 11 24H2.
If I apply a filter, select the displayed matching lines, then Edit / Copy them, all lines from the first to the last, not just the matching ones, are copied to the clipboard. Please consider adding an option to allow SciTE to copy only the matching lines to the clipboard.
Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/feature-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Its likely possible to write a script that does this.
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: returns 1 if visible, 0 if hidden/contracted
local visible = editor:SendMsg(SCI_GETLINEVISIBLE, line, 0)
if visible ~= 0 then
-- Get line text (includes trailing newline)
local txt = editor:GetLine(line)
table.insert(result, txt)
end
end
-- Join and put into clipboard
scite.SetClipboard(table.concat(result))
end
It seems that get bool GetLineVisible=2228(line line,) from scintilla/include/Scintilla.iface is not available in the Pane API.
[1] https://www.scintilla.org/ScintillaDoc.html#SCI_GETLINEVISIBLE
[2] https://www.scintilla.org/PaneAPI.html
[feature-requests:#1570] Option to copy only matching lines to clipboard in filter view
Status: open
Group: Initial
Created: Fri Nov 14, 2025 03:42 PM UTC by Georger Araujo
Last Updated: Fri Nov 14, 2025 08:15 PM UTC
Owner: nobody
Attachments:
[feature-requests:#1570] Option to copy only matching lines to clipboard in filter view
Status: closed
Group: Initial
Created: Fri Nov 14, 2025 03:42 PM UTC by Georger Araujo
Last Updated: Sun Nov 16, 2025 09:29 PM UTC
Owner: nobody
Attachments:
[feature-requests:#1570] Option to copy only matching lines to clipboard in filter view
Status: closed
Group: Initial
Labels: scite
Created: Fri Nov 14, 2025 03:42 PM UTC by Georger Araujo
Last Updated: Mon Nov 17, 2025 09:00 PM UTC
Owner: nobody
Attachments: