jlebon / textern

A Firefox add-on for editing text in your favourite external editor!
GNU General Public License v3.0
138 stars 21 forks source link

Trouble with terminal editors in Konsole #74

Closed Roy-Orbison closed 2 years ago

Roy-Orbison commented 3 years ago

I couldn't get this work with terminal editors in Konsole at all, though the troubleshooting sh test worked fine. I used inotifywait -rm /run/user/$UID/textern/ to verify the files were created, but they were deleted before the editor could use them. Konsole was exiting early but has no --wait flag like gnome-terminal. It turns out it was due to a preference I had enabled in Konsole: Run all Konsole windows in a single process.

Screenshot_20210901_112229

Disabling that fixed the problem.

Roy-Orbison commented 3 years ago

Actually It was better fixed by changing the editor command to:

["konsole", "--separate", "-e", "vim", "+normal %lG%c|"]

Then I could leave the default single process pref on.