-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
Fix external editor #3232
Fix external editor #3232
Conversation
9478440
to
b3ec277
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested everything (edit-with-external-editor
, edit-file-with-external-editor
and view-source-from-external-editor
) with external-editor-program
being set to string and a list.
When I used emacs
or emacsclient -c -a 'emacs'
, everything looked good.
For some reason, I couldn't get gedit
to work. When I try to run edit-file-with-external-editor
, a gedit
process would start and immediately become a zombie process. No errors are reported.
As for EDITOR
and VISUAL
, I'm having trouble getting emacs
(and by extension - Nyxt) to see the environment variables I set.
As a side-note, if EDITOR
and VISUAL
aren't set, we should echo a message that the slot isn't set properly and gracefully handle the error that uiop:launch-program
throws.
How are you testing? Did you produce a binary or are you running from the REPL? What happens when you issue
I'm not sure if I follow. In CL,
This should work as soon as I remove |
b3ec277
to
f1bd8be
Compare
Ah, yes. I was testing from the REPL, and adding
I didn't know that, I was looking for a
Well, that was part of the issue. Another part is that
The doc for
The reason |
This is a good point. But, actually, why do we check for |
9868be8 introduced the idea, but the implementation was flawed.
f1bd8be
to
c97554b
Compare
@hgluka the latest implementation should be clean. Can you detect a bug? |
@aadcg Seems good to me now. |
c97554b
to
b4f65ef
Compare
Delete move-caret-to-end. No longer needed since its logic is covered by ffi-buffer-paste. Simplify view-source-with-external-editor. Update comments.
Add "gio open" when available and prefer uiop:getenvp over uiop:getenv.
b4f65ef
to
0beba43
Compare
Description
Fixes #3215
Discussion
@hgluka I'm mostly looking for you to test the commands that this PR deals with. Set
external-editor-program
to a list, a string; or leave it with the default value and setVISUAL
/EDITOR
. Hunt for functional bugs.Checklist:
Everything in this checklist is required for each PR. Please do not approve a PR that does not have all of these items.
cd /path/to/nyxt/checkout git submodule add https://gitlab.common-lisp.net/nyxt/py-configparser _build/py-configparser
:documentation
s written in the aforementioned style. (It's OK to skip the docstring for really trivial parts.)changelog.lisp
with my changes if it's anything user-facing (new features, important bug fix, compatibility breakage).migration.lisp
entry for all compatibility-breaking changes.(asdf:test-system :nyxt)
and(asdf:test-system :nyxt/gi-gtk)
) and they pass.