I used Emacs Everywhere on KDE and it worked well. However, since I
moved to Sway, it has been a struggle to get it working. I eventually
gave up on trying to make it work and wrote this make shift version in
my configuration instead.
My makeshift version currently types the content into the window
below. It seems to work well on Sway, since it automatically switches
focus to the correct text area after the frame is deleted. Emacs
Everywhere copies the text into the clipboard and then pastes it into
the text area; I think it also manually switches focus.
I was wondering if I should create a separate package for this,
exclusive to Sway or potentially other Wayland compositors, provided
it doesn’t require too much work.
I use niri as wm. Maybe with few tweaks we can get it working.
But previously to get similar functionality, I was using a custom keybind in WM to open emacsclient on some tmp/scratch file. Then with save and exit, wtype or dotool would insert those content into the browser or wherever focus is.
But still i dont find usecase for it, as I always have emacs window open. Manually i just do copy and paste if I really need emacs editing.
I use niri as wm. Maybe with few tweaks we can get it working.
I think the current code will just work™.
But previously to get similar functionality, I was using a custom
keybind in WM to open emacsclient on some tmp/scratch file. Then with
save and exit, wtype or dotool would insert those content into the
browser or wherever focus is.
I never save, I directly ask wtype to write the contents of the buffer
into whatever the focus is. I do not like the copy paste nature of
emacs-everywhere, because it is not universal (many programs have
different keybindings for copy-paste).
But still i dont find usecase for it, as I always have emacs window
open. Manually i just do copy and paste if I really need emacs
editing.
Same here, but emacs-everywhere is just more convenient. I can say
that after using my make-shift version for a while.
Thats not what I meant.
I meant, your make-shift version (ECFPAW/ee) works like charm. Instead of wtype I replaced it with dotool.
I could not get emacs-everywhere, since I use niri wm, I need to write own function.
Then I meant, with OG emacs-everywhere package by tecosaur, it did not work. Since it only has functions for Sway and KDE.
Some custom function is required to get windows from WM i guess.
Do you think we should package this code separately? I guess we can
make it support both wtype and dotool. I think tinee (This Is Not
Emacs Everywhere), as in it is not as featureful as Emacs Everywhere,
but it is tiny as a result, is a good name.
Yeah sounds good.
You can make it as package, support it with an blog post (or readme) and share with emacs community (reddit & mailing lists)
Edit: A caution: I have to admit that this might have unexpected outcome as well.
I think it was due to how dotool works or it did not read string properly.
I had different keybindings pressed doing many things to my system.
I guess it was due to not double quoting my input (bash) and word splitting