Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I'm refreshing the old pr #421 taking into account @vladdoster's objections about the number of colors used to highlight (now there is
1
color for extensions instead of2
). Also, a new feature – highlighting of the version number (like e.g.v1.5
). Furthermore, I'm submitting a branch that's on top of #550 , after merging this PR the commits will disappear from this PR.Related Issue(s)
#421
Motivation and Context
The flexibility behind
+zinit-message
allows for sophisticated highlighters. Here the{file}
style gets a private function-highlighter to color file extensions and version automatically with a distinct color.Usage examples
Default theme:
![2023-07-30-154441_1901x252_scrot](https://private-user-images.githubusercontent.com/6049288/257061281-7d7cd94d-bcca-4f83-b47e-d720b17218f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMjkwNzYsIm5iZiI6MTczOTEyODc3NiwicGF0aCI6Ii82MDQ5Mjg4LzI1NzA2MTI4MS03ZDdjZDk0ZC1iY2NhLTRmODMtYjQ3ZS1kNzIwYjE3MjE4ZjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTkxOTM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmYxMDljYTZhZDFiNzY4Y2RhOTA5ODUzYmRkZjA4NGVhODIwMGY4YjJiYzNmOGRkNmIyYjYxYTk3ODgzNDVlMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.tV6VE4vvDEqHssHKhl34q3UDOdg64CsFVnClJat-I1A)
Blue theme:
![2023-07-30-154422_1895x231_scrot](https://private-user-images.githubusercontent.com/6049288/257061290-b008052f-e8de-489b-ab30-d467417077b9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMjkwNzYsIm5iZiI6MTczOTEyODc3NiwicGF0aCI6Ii82MDQ5Mjg4LzI1NzA2MTI5MC1iMDA4MDUyZi1lOGRlLTQ4OWItYWIzMC1kNDY3NDE3MDc3YjkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTkxOTM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmU4NWQ1NDI0NDY2MzU1ZWMxMmRiYzY0MTk0MjI0NGY1ZDA1MmYyYWVkYmU4NjEzYWQ4YTU1ZWNkMTgzYWFmNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.GaEOgKGoB5RGxoQwYEypsCUp6tmcVq9UjhoUBKOH424)
Gold theme:
![2023-07-30-154502_1894x249_scrot](https://private-user-images.githubusercontent.com/6049288/257061301-c28c13da-5767-4aba-8bcf-91876d7769ae.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMjkwNzYsIm5iZiI6MTczOTEyODc3NiwicGF0aCI6Ii82MDQ5Mjg4LzI1NzA2MTMwMS1jMjhjMTNkYS01NzY3LTRhYmEtOGJjZi05MTg3NmQ3NzY5YWUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTkxOTM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTA5MzllOGVjOWM3NTA4NmY3ODU5YWVjNDBlMGFkZTM0MjJhZGVjNTQ3NGRhN2UwN2RmMDk2ZTZhZWNkMDE4MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.SKaRAOZT8K2Co6qRhSiPCs_lp4Ng8aiinJ7T7hV0m3k)
How Has This Been Tested?
Via the above invocations of
+zinit-message
interactively.Types of changes
Checklist: