Helix doesnt work with run0edit #14627
Unanswered
stella-sf
asked this question in
Troubleshooting
Replies: 1 comment
-
|
Seems related to #11374 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use a little tool called
run0editto edit files that need elevated privileges. It works by first copying the file into a new file in /tmp, giving that file to your$EDITOR, and then when the editor exits, it checks if the tmp file changed. If it did change, it then invokesrun0to elevate privileges and copy the file to its actual location.This works perfectly fine with neovim, the editor I've been using so far. However, when I use the tool with Helix, it always claims that the file was unchanged, despite me clearly making and saving changes to the temporary file.
I can confirm that changes are made by saving the edited file with
:w, then looking at the tempfile in another window while the initial helix is still running. But then once helix exits, something must happen that causes the file to be what it was before being edited again, causingrun0editto think the file is unchanged, thus never copying changes to the real location.Since this works fine with other editors and the approach that
run0edittakes in its code seems very sensible to me, this looks like a bug on Helix's side to me.Beta Was this translation helpful? Give feedback.
All reactions