You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
(#38, #39)
This project is written for macOS (because me, the author, uses a Mac) but not every user uses macOS. On Ubuntu the path to nano is different from macOS.
Proposed solution
Before showing the user the list of editors, we should "query" the system to see what binaries are available at what locations.
Note: If the command which [editor] returns 0 we can 1) know that the binary exists on the system, and 2) we get the path. So which would be a good command for this.
The text was updated successfully, but these errors were encountered:
Ideally I wouldn't want to add a dependency for this, but because it's cross-platform I think I'd be OK with it. I have no idea how the rest of this tool works on Windows though.
Background
(#38, #39)
This project is written for macOS (because me, the author, uses a Mac) but not every user uses macOS. On Ubuntu the path to
nano
is different from macOS.Proposed solution
Before showing the user the list of editors, we should "query" the system to see what binaries are available at what locations.
Note: If the command
which [editor]
returns0
we can 1) know that the binary exists on the system, and 2) we get the path. Sowhich
would be a good command for this.The text was updated successfully, but these errors were encountered: