Skip to content
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

feat(common): a bit more intelligent version of open-editor #22

Open
midnqp opened this issue Mar 9, 2023 · 1 comment
Open

feat(common): a bit more intelligent version of open-editor #22

midnqp opened this issue Mar 9, 2023 · 1 comment

Comments

@midnqp
Copy link
Owner

midnqp commented Mar 9, 2023

For Windows, you can use open-editor for Sindre Sorhus.
For Linux, if vim or vi or vim.tiny or nvim is present then set $EDITOR to that.
For Linux, otherwise, use open()

@midnqp
Copy link
Owner Author

midnqp commented May 9, 2023

Many people wouldn't know how to exit vim/vi/nvim. Best if a list of available editors is shown. However if vscode is present, that's what you should go with.

I think, however, having the list of editors always shown before opening the json file would be the best course of action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant