fix(limactl): allow $EDITOR with flags#4935
Conversation
Allows $VISUAL/$EDITOR to have flags in it, eg for "code -w", or for some emacs setups Signed-off-by: nyanotech <nyanotechnology@gmail.com>
|
Can't comment on the code either; here is what I wanted to write:
I would recommend looking at the |
Good point, I should've looked at some prior art before making this. I'm thinking I'll do an implementation vaguely like git's, where it passes to a shell if the Adding extra logic to decide if a shell should be invoked or not makes the split between editutil.go/editorcmd.go feel a bit more intertwined than I'd like; any objections to moving the actual editor invocation to the latter (and keeping the file handling in the former), or merging them into one file? |

Allows $VISUAL/$EDITOR to have flags in it, eg for
code -w, or for some emacs setups