Skip to content

Instantly share code, notes, and snippets.

View s3rvac's full-sized avatar

Petr Zemek s3rvac

View GitHub Profile
@s3rvac
s3rvac / copyq-whitespace-trimming.js
Created January 17, 2026 18:47
CopyQ command for removing leading/trailing whitespace upon copying content
//
// A CopyQ (https://github.com/hluk/CopyQ) command for removing leading/trailing
// whitespace upon copying content. Works for both plain and Rich (HTML) text.
//
// Installation:
// - Open CopyQ, go to File -> Commands (or press F6).
// - Click "+ Add", select "New command". Then, select type "Automatic".
// - Copy the following code there and click on "Apply".
//