usql icon indicating copy to clipboard operation
usql copied to clipboard

Support EDITOR with arguments

Open bersace opened this issue 1 year ago • 1 comments

Hello,

Using zed --wait as EDITOR triggers the following error:

error: exec: "zed --wait": executable file not found in $PATH

I expect usql to lex EDITOR as a shell command or use exec.Command().

Regards, Étienne

bersace avatar Sep 03 '24 09:09 bersace

I have exactly the same issue, which I've solved by setting EDITOR to point to a short bash script that in turn invokes zed --wait --new "$@"

tomafro avatar Nov 15 '24 14:11 tomafro