KWrite sign with gpg

What is the best way to electronically sign a text document (gpg)? Is there some sort of plugin?

I know I can do gpg --clearsign --local-user user@example.com security.txt but would love to do that without having to leave my editor. Just like Thunderbird lets me for emails.

i’ve signed pdf’s in okular, but it still involved a command line argument to create the certificate.