Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get textern to work with xvile, even with equivalent of gvim's "-f" option #19

Open
chrisisbd opened this issue Dec 11, 2017 · 4 comments

Comments

@chrisisbd
Copy link

I'm trying to get textern to work with my favourite editor xvile. This does have a "do not fork" option as follows:-

xvile +fork filename

This blocks the parent process until xvile exits (I've tried it and it really does block). However when I set my editor in textern to ["xvile", "+fork"] it acts exactly the same as it does without the +fork. The xvile window opens but has no text in it and one can't type into it etc. Text input works back in the selected textarea.

Is it possible that textern isn't handling the rather strange +fork correctly as a command line option?

@jlebon
Copy link
Owner

jlebon commented Dec 12, 2017

Is it possible that textern isn't handling the rather strange +fork correctly as a command line option?

Hmm, maybe? Are there any error messages from xvile in the browser console? Does it work fine if you use e.g .["gedit"] or ["gvim", "-f"]?

@chrisisbd
Copy link
Author

Yes, both ["gedit"] or ["gvim", "-f"] work OK.

I can get xvile to run OK from a wrapper using xterm (as opposed to my default xfce4-terminal), I think that's probably because xterm is a separate 'proper' process whereas however many xfce4-terminal windows you have they are all the same process. Like gnome-terminal xfce4-terminal used tohave a 'start a separate process' option but no longer.

I can probably get something acceptable going via an xterm.

@chrisisbd
Copy link
Author

OK, I have something that works, and some things that don't work!

["rxvt","-e","vile"] - works in that I can edit the textarea with vile but I end up not being able to exit from rxvt/vile. I had to kill it with 'kill -9'.

["rxvt","-e","xvile"] - works OK, on exiting the editor (which is a GUI editor like gvim) the rxvt exits as well and there's no problems.

["rxvt","-iconic","-e","xvile"] - also works fine with the extra bonus of no rxvt window appearing

["myedit"] where myedit is a bash script - "rxvt -e vile $1" works perfectly, I'm not quite sure why it acts differently from doing things directly.

Anyway I have a couple of reasonable workarounds now.

@jlebon
Copy link
Owner

jlebon commented Dec 14, 2017

I'm not familiar with rxvt, though I'm happy to know you got it working! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants