micro-editor / micro-editor/micro
Suggestion: add instructions of installation on README.md for Cygwin
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
Micro is an amazing text editor and it works really well on my personal notebook (Debian - as snap) and also on my professional notebook (Windows). In Windows it was installed with Chocolatey, as described on README.md without any issue. However, when using it over Cygwin, on the same computer, it only works opening files in the current path. Micro on Windows does not natively support Cygwin’s unix-style paths (/cygdrive/*). When passed an absolute Cygwin path as an argument, an empty new file is displayed in place.
This can be solved by creating a wrapper, adding the following function to .bash_profile (for BASH shell) and/or .zprofile (for ZSH shell):
micro()
{
local index
local args=("$@")
for index in $(seq 0 ${#args[@]}) ; do
case "${args[index]}" in
-*) continue;;
*) [ -e "${args[index]}" ] && args[index]="$(cygpath --windows "${args[index]}")";;
esac
done
command micro "${args[@]}"
}
Please, add this information to README.md.
Thanks in advance.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the installation section of README.md and the reported Cygwin behavior, including the .bash_profile and .zprofile context. Ensure the documented guidance explains how Cygwin paths are handled and is clear for both Bash and Zsh users; verify the README wording and formatting before submitting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli, documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100