module Colorls::Styler
Defined in:
colorls/styler.crConstant Summary
-
COLORS =
{"default" => :default, "black" => :black, "red" => :red, "green" => :green, "yellow" => :yellow, "blue" => :blue, "magenta" => :magenta, "cyan" => :cyan, "light_gray" => :light_gray, "dark_gray" => :dark_gray, "light_red" => :light_red, "light_green" => :light_green, "light_yellow" => :light_yellow, "light_blue" => :light_blue, "light_magenta" => :light_magenta, "light_cyan" => :light_cyan, "white" => :white}
-
I have to map these, because we can't dynamically create a Symbol and a Symbol is required by Colorizer
Class Method Summary
-
.color(file : NamedTuple) : Symbol
Output colors are based on the file type and are limited to the colors supported by Colorize
-
.config
Maybe do these as file types later
-
.config_file
Look for a configuration file: - In the current directory (for overrides) - In the preferred configuration location - In the root of the users ~ directory
- .filename(file : NamedTuple) : Colorize::Object
- .icon(file : NamedTuple) : Colorize::Object
- .long_filename(file : NamedTuple) : Colorize::Object
Class Method Detail
def self.color(file : NamedTuple) : Symbol
#
Output colors are based on the file type and are limited to the colors supported by Colorize
def self.config_file
#
Look for a configuration file:
- In the current directory (for overrides)
- In the preferred configuration location
- In the root of the users ~ directory