um
um copied to clipboard
Config file flexibility and output readability
Hi there.
Just found this project. I've been rolling my own files for years, lovingly hand-crafted, err, crufted but I think this will suit much better. Installed fine in cygwin and currently importing some files. Kudos, etc...
Just a quick few edits in the um-config parser - break nothing and make the config formatting more flexible.
I like to comment my config files (why go searching through some other doc to find something when you can put it right there in the file), so I added that to the if... anchored to the beginning of the line and allow whitespace only before the #. Also, aligning the attribute,value,equals in config files makes it easier to read (at least to me), so I added also that to the if... anchored like the comments and a simple swap out of " " for "\s+".
So, the following lines that would previously throw an error, are now accepted:
# this is a comment
# and so it this
pager = less
editor = joe
I hope you like it and merge it in. Thanks for the read.
Cheers!