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

VCS file-status colors #23

Open
sum01 opened this issue Jan 16, 2018 · 0 comments
Open

VCS file-status colors #23

sum01 opened this issue Jan 16, 2018 · 0 comments

Comments

@sum01
Copy link
Collaborator

sum01 commented Jan 16, 2018

  1. Add an option like filemanager-vcscolors
  2. Test the dir on-scan if it has VCS
  3. If VCS found, check the dir's "status" (i.e. git status)
  4. Add zero-width Unicode characters to the dirmsg property of the file, based on it's tracked/untracked/ignored/etc. status
  5. Add pattern-matching to the zero-width chars into syntax.yaml to colorize each file/dir based on status.

I'd like some input as to which of Micro's syntax types should be used for tracked/untracked/ignored/etc. so feel free to recommend them.

Having ignored files be "comments" is pretty obvious, but everything else is kind of up in the air.


Note that an onSave hook will need to be added, which will trigger a re-scan of VCS status on the file, and a change of the dirmsg, where appropriate. This will allow the colors to adjust as you work on files.


On second thought, instead of re-coloring files we could put little ascii indicators for the git status (or even combine indicator & color?). Maybe both could be made optional as well.

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

No branches or pull requests

1 participant