Closed psprint closed 1 year ago
Could the pr be merged, @vladdoster ? It's a safe change as it applies only to messages from +zinit-message
Why does it make a file three different colors?
To make extensions easily recognizable, with the ….tar.gz
and similar.
@vladdoster: I could make the colors to be applied in a different way, e.g.: 2 colors instead of 3… Is that ok for the PR to be merged?
Description
A new formatter function to allow pretty printing of file names with extension.
Motivation and Context
I wanted to have extension of a file colorized without complex expressions like
{file}$q:r{ext}$q:e
. The new formatter handles this automatically, via{file}$q
, and handles up to two extensions with different colors.Related Issue(s)
Usage examples
Before:
After:
How Has This Been Tested?
I've run
checkmake
github release installation and+zinit-message {file}somefile.tar.gz
function.Types of changes
Checklist: