filemanager-plugin icon indicating copy to clipboard operation
filemanager-plugin copied to clipboard

VCS file-status colors

Open sum01 opened this issue 7 years ago • 0 comments

  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.

sum01 avatar Jan 16 '18 22:01 sum01