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

Configure mvim as cli tool via the settings #1404

Open
greenchapter opened this issue May 26, 2023 · 3 comments
Open

Configure mvim as cli tool via the settings #1404

greenchapter opened this issue May 26, 2023 · 3 comments
Labels
Feature Request New features request. Not an existing issue or bug.
Milestone

Comments

@greenchapter
Copy link

Most of the time I would start mvim from the command line, but that is only possible if you add a softlink into /usr/local/bin/ so I would recommend a more user friendly version.

Described solution
A clear and concise description of what you want to happen.

I would recommend a new check box within the settings panel which will add a softlink to /usr/local/bin/ from the GUI.
Screenshot 2023-05-08 at 16 30 52

Currently way to add mvim to the cli
A clear and concise description of any alternative solutions or features you've considered.

  1. Install macvim
  2. Add a softlink sudo ln -s /Applications/MacVim.app/Contents/bin/mvim /usr/local/bin/mvim
@ychin
Copy link
Member

ychin commented May 26, 2023

Most of the time I would start mvim from the command line, but that is only possible if you add a softlink into /usr/local/bin/ so I would recommend a more user friendly version.

These days we usually just recommend adding /Applications/MacVim.app/Contents/bin to your path directly so you don't have to make a symlink. See :h macvim-PATH. It has pros and cons compared to making a symlink to /usr/local/bin/mvim but I like the current recommendation more because it is easier and requires less permission to do.

The description already exists (see the above help link) but I admit it's a little hard to discover. It could be useful to have a button to do this for the user, but it's a little harder to add a folder to $PATH (since the user may have different shells they use) compared to a simple symlink, which is a simple command to call (albeit needing root permissions).

@greenchapter
Copy link
Author

Most of the time I would start mvim from the command line, but that is only possible if you add a softlink into /usr/local/bin/ so I would recommend a more user friendly version.

These days we usually just recommend adding /Applications/MacVim.app/Contents/bin to your path directly so you don't have to make a symlink. See :h macvim-PATH. It has pros and cons compared to making a symlink to /usr/local/bin/mvim but I like the current recommendation more because it is easier and requires less permission to do.

Thank you very much @ychin 🤩 good comment, I changed it directly…

The description already exists (see the above help link) but I admit it's a little hard to discover. It could be useful to have a button to do this for the user, but it's a little harder to add a folder to $PATH (since the user may have different shells they use) compared to a simple symlink, which is a simple command to call (albeit needing root permissions).

I think it can be very valuable to some users to bring the possibility to set this path into the macvim UI. Currently for me the macOS app kaleidoscope solved that very well.

Screenshot 2023-05-26 at 16 19 30

@ychin
Copy link
Member

ychin commented Jun 4, 2023

Right. Let me think about it a little. Just need to play around with it a bit and triage when I get time to work on this.

@ychin ychin added this to the Backlog milestone Jun 4, 2023
@ychin ychin added the Feature Request New features request. Not an existing issue or bug. label Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New features request. Not an existing issue or bug.
Projects
None yet
Development

No branches or pull requests

2 participants