-
Notifications
You must be signed in to change notification settings - Fork 68
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
[Mac OS] Cannot set up default editor #466
Comments
@f978gDDfsa You'll definitely need to specify the full path, not just |
I tried using this:
But when I try to execute it I end up getting the error:
So I think it may require setting up an alias, which is somewhat annoying. If I come up with any other solution I'll definitely post it here. Wonder if @shirhatti might have any ideas. |
@bradygaster I'm not sure an alias will work - we do a Your editor path looks weird (why the |
Good catch, @tlmii - that was copypasta error on my part. I spent a little time tweaking my settings and ended up with this, which works:
Adding @scottaddie here, in case he'd like to add this to the doc or if he thinks this is too much of an edge case for it to be included. Either way, it was sort of tricky to find the exact combination. These two together work like a champ. I can do a |
@bradygaster What about |
I should have as well. #facepalm. :) I'll validate what @scottaddie already has in the docs works as well as if not better than what I already have tested here. Then i'll shake the vacation cobwebs out of my hair and get back on the tricycle. :) |
I digress slightly from the original issue but I would've expected setting environment variables $EDITOR/$VISUAL to work as is the case of a lot of CLI tools, e.g., https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration If I didn't read the docs, the first thing I would have tried is |
@shirhatti I went ahead and made a separate issue for that. We should be able to support the environment variables idea. |
I was also able to get this to work with |
I am using zsh |
Dear friends,
I have a problem with settings the default editor on my Mac OS.
Terminal:
code -w
It works
HttpRepl:
pref set editor.command.default "code"
Doesn't work: The specified default editor path, "code", does not exist.
I tried another option:
"/Applications/Visual Studio Code.app"
It doesn't work too.
Thank you in advance!
The text was updated successfully, but these errors were encountered: