Commit Graph

3 Commits

Author SHA1 Message Date
Jorge Bucaran
c76ce97d03 Add ability to escape -s and -n options using a backslash.
Add notes in comments about escaping.
2015-01-09 14:10:02 +09:00
Jorge Bucaran
2542929eb9 Separate msg utility functions into their own file:
+ msg.util.get.color.fish
  + msg.util.random.color.fish
  + msg.util.set.color.fish
  + msg.util.str.get.fish
  + msg.util.str.has.fish
2015-01-09 14:08:47 +09:00
Jorge Bucaran
8e02073145 Add msg plugin. The technicolor message printer.
+ Print messages with style and color easily. Supported styles below:

     _text_                 Bold
     __text__               Underline
     ___text___             Bold and Underline
     `$variable`            Apply @<styles> to $variables
     /directory/            Directories
     [url]                  Links
     \n                     Line Break
     \t                     Tab Space

 + Recognizes 256 different color names and special @random @light @dark @error and @success labels.
 + Included also is `msg.ask` to print a message with `msg` and wait for y/n input. Returns true on y\*.
2015-01-08 04:46:29 +09:00