summaryrefslogtreecommitdiffstats
path: root/color.c
Commit message (Collapse)AuthorAgeFilesLines
* stat: Unify the flags argumentsTavian Barnes2019-05-041-5/+5
|
* trie: Make trie_remove() take a leaf instead of a keyTavian Barnes2019-04-201-3/+3
|
* color: Implement ln=targetTavian Barnes2019-03-281-18/+57
| | | | | With ln=target in LS_COLORS, links should be colored according to their target's stat() info, not their own.
* color: Implement escape sequence parsingTavian Barnes2019-03-281-196/+396
| | | | | GNU ls allows custom escape sequences inside color values, including control characters and embedded NULs.
* trie: Store void* values rather than const void*Tavian Barnes2019-03-271-1/+1
| | | | Fewer casts needed this way.
* color: Match the behaviour of GNU ls more closelyTavian Barnes2019-03-171-23/+19
|
* color: Use a trie to store file extension colorsTavian Barnes2019-03-041-48/+82
| | | | | This new implementation is about 14% faster overall at printing colored files.
* Add some documentation commentsTavian Barnes2019-02-091-0/+20
|
* color.c: Fix an out-of-bounds read if LS_COLORS doesn't end in a colonTavian Barnes2019-01-111-9/+9
|
* posix1e: Split out ACL and capability handling from utilTavian Barnes2019-01-021-0/+1
|
* color: Fix more incompatibilities with GNU lsTavian Barnes2019-01-021-14/+17
|
* color: Check format strings + args for cfprintf()Tavian Barnes2019-01-021-82/+105
| | | | | | %{cc} is now ${cc} to avoid warnings about an unrecognized format specifier, and %P and %L are now %pP and %pL to make them look more like standard format strings.
* diag: Unify diagnostic formattingTavian Barnes2019-01-021-23/+22
| | | | | | This adds a bfs: prefix to error/warning messages for consistency with other command line tools, and leaves only the "error:"/"warning:" part colored like GCC. It also uniformly adds full stops after messages.
* color: Don't bail out on colors that exist but are NULLTavian Barnes2018-12-281-14/+7
|
* color: Support coloring files with capabilitiesTavian Barnes2018-12-171-0/+2
|
* color: Make extension detection case-insensitiveTavian Barnes2018-12-171-8/+18
| | | | It's what GNU ls does.
* color: Don't print the leading directory color if there's no leading directoryTavian Barnes2018-12-171-23/+22
|
* Update copyright datesTavian Barnes2018-09-241-1/+1
|
* stat: New wrapper around the stat() familyTavian Barnes2018-01-081-11/+12
| | | | | This lets bfs transparently support the new statx() system call on Linux, giving it access to file birth times.
* color: Optimize cfprintf() a bitTavian Barnes2017-11-131-76/+86
|
* color: Implement %m for cfprintf()Tavian Barnes2017-11-131-0/+7
|
* parse: Keep track of what files are already openTavian Barnes2017-10-211-2/+0
| | | | Fixes #22
* Report errors that occur when closing filesTavian Barnes2017-10-211-0/+2
| | | | Otherwise we miss write errors that occur when flushing the cache.
* util: Wrap faccessat() to fix some portability issuesTavian Barnes2017-09-201-1/+1
|
* Implement cost-based optimizationTavian Barnes2017-08-271-0/+16
|
* Re-license under the BSD Zero Clause LicenseTavian Barnes2017-07-271-10/+15
|
* Add colors to -D treeTavian Barnes2017-05-151-0/+6
|
* Pass AT_EACCESS to faccessat()Tavian Barnes2017-04-301-1/+1
| | | | | That's the form that actually answers the expected question ("can I open() this"), and the only form Hurd supports.
* Release 1.01.0Tavian Barnes2017-04-241-1/+1
|
* Make -help output prettier and more completeTavian Barnes2017-04-161-13/+53
|
* Color link targets for -lsTavian Barnes2017-03-161-0/+33
| | | | Fixes #18.
* Give struct expr a CFILE* instead of just a FILE*Tavian Barnes2017-03-161-9/+43
| | | | This unifies the behaviour of -print and -fprint /dev/stdout.
* Make a printf()-style API for colored messagesTavian Barnes2017-03-111-144/+158
|
* Update some copyright dates.Tavian Barnes2016-11-241-1/+1
|
* Check for errors in -print and friends.Tavian Barnes2016-10-161-22/+57
|
* bftw: Add support for some exotic file types, where available.Tavian Barnes2016-10-021-0/+6
|
* color: Ignore colors that are all zeros.Tavian Barnes2016-06-031-1/+6
| | | | | This keeps multi_hard from overriding extension colors if LS_COLORS says mh=00:, matching the behavior of ls.
* color: Add multi-hard link coloring support.Tavian Barnes2016-06-021-1/+14
|
* Fix uninitialized read in parse_colors().Tavian Barnes2016-02-271-0/+1
|
* Color broken symlinks correctly.Tavian Barnes2016-02-241-3/+10
|
* s/color_table/colors/.Tavian Barnes2016-02-141-9/+9
|
* Refactor color handling.Tavian Barnes2016-02-141-7/+27
| | | | The main benefit is colored warnings/errors during parsing.
* Don't modify the result of getenv().Tavian Barnes2016-02-141-3/+10
|
* Implement -[ac]?newer.Tavian Barnes2016-02-041-1/+1
|
* Don't use typedefs to avoid struct/enum tags.Tavian Barnes2016-02-041-15/+13
|
* bftw() interface improvements:Tavian Barnes2015-09-261-6/+8
| | | | | | - Use enums instead of ints where it makes sense - Move the file path inside struct BFTW - Expose a fd and relative path for *at() calls
* Implement -delete.Tavian Barnes2015-09-081-2/+2
| | | | Related to #5.
* Print the root file/directory too.Tavian Barnes2015-09-021-9/+6
|
* Recover from errors in diropen().Tavian Barnes2015-07-251-8/+23
| | | | Fixes #4.
* Assorted optimizations.Tavian Barnes2015-06-231-21/+35
|