iLemming 8 hours ago

What's your wish for? Navigating the chats more efficiently, or simply typing the messages? If the latter, why haven't you figured out a workflow where you do all your typing in Emacs, or whatever your choice of an editor is?

I have done that years ago and I just can't imagine my life without this feature. I never even try to type directly, anything longer than three words - in Slack, Browser, Teams, Outlook, whatever. There are packages like emacs-everywhere, but I don't use that. My technique is simple and I usually get it to work on every WM and system I use. It basically simulates Cmd|Ctrl+A & Ctrl+X, and via emacsclient opens a dedicated buffer and sends the text+PID. When done, pressing a key copypastes the text back into the app of the PID.

I can't recommend that enough - being able to use all the tools you have in your editor - completions, spellchecking, thesaurus, etymology lookup, translation and dictionaries, search of all kinds, etc., is absolute and pure joy.

  • johanvts 6 hours ago

    Nice, so how do you trigger the client? I could see something like this working via autohotkey

    • iLemming 4 hours ago

      I don't use Windows these days. For Mac I wrote a simple Hammerspoon script; on Linux I do this on every WM I use - they typically have a way. You just need to call emacsclient to load a helper elisp script, e.g., https://github.com/agzam/spacehammer/blob/master/spacehammer...

      • SoftTalker an hour ago

        Amazing. I never considered this possiblity. Definitely going to spend some time looking into this. I use Awesome WM which is pretty extensible. I will have to figure out what to do when Wayland becomes the only display server.