A sidenote, but Espanso can also be set up to communicate with eg chatgpt; you copy some text and type a trigger word such as ":ask" or ":debug" and it makes a request
from the trigger and the clipboard and returns the reply from openai https://github.com/rohitna/chatgpt-script