about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
...
* add action 'skip' which is always falseLeah Neukirchen2017-11-124-0/+10
|
* revert making prune be falseLeah Neukirchen2017-11-122-5/+2
| | | | | This makes things more confusing in the end (and is not how find(1) works either).
* fitree_walk: don't crash on empty treeLeah Neukirchen2017-11-121-0/+2
|
* NEWS.md: updateLeah Neukirchen2017-11-101-0/+1
|
* replace use of <search.h> (tsearch etc.) with own tree implementationLeah Neukirchen2017-11-101-127/+242
| | | | | | | | tsearch(3) can be terribly inefficient on some systems, degrading to linear search. This AA-tree implementation is not measurably slower than e.g. musl's AVL tree implementation. Meanwhile, get rid of the silly tsearch API.
* replace GNU-extension tdestroy(3) with something portableLeah Neukirchen2017-11-081-3/+7
|
* lr.vim: updateLeah Neukirchen2017-11-081-3/+3
|
* fix -1 and -ALeah Neukirchen2017-11-081-2/+2
|
* make prune evaluate to falseLeah Neukirchen2017-11-083-1/+10
|
* add ternary (conditional) operatorLeah Neukirchen2017-11-084-4/+35
|
* new option -B for breadth first searchLeah Neukirchen2017-11-084-13/+68
| | | | | | | | We use two trees and add the newly found files to the other one, then loop until no more files are found. prune, -t, -L and -x work, depth needs a slight hack; loop detection and -U doesn't work.
* free fileinfo when -U is usedLeah Neukirchen2017-11-081-3/+15
|
* callback: use ino_t for entry count.Leah Neukirchen2017-11-081-2/+3
|
* define PATH_MAX to a sensible upper bound if undefinedLeah Neukirchen2017-11-071-0/+5
|
* readlin: check if buffer is too smallLeah Neukirchen2017-11-071-2/+2
|
* _lr: update completionLeah Neukirchen2017-11-051-0/+3
|
* scan_filesystems: on Linux, try /proc/mounts if _PATH_MOUNTED does not existLeah Neukirchen2017-11-041-0/+2
| | | | (Discovered on WSL 1703)
* eval: clean up codeLeah Neukirchen2017-11-031-11/+11
|
* NEWS.md: update for 1.1 v1.1Leah Neukirchen2017-10-291-1/+2
|
* README.md: updateLeah Neukirchen2017-10-291-2/+2
|
* scan_filesystems: support DragonFlyBSDLeah Neukirchen2017-10-171-1/+1
|
* lr.1: use single quotes around -Leah Neukirchen2017-09-241-1/+1
| | | | Closes #14.
* add -e REGEX as a shortcut to filter basenamesLeah Neukirchen2017-09-204-33/+48
|
* NEWS.md: updateLeah Neukirchen2017-09-201-0/+5
|
* recurse: guard DT_DIR optimizationLeah Neukirchen2017-09-171-0/+4
|
* detect when stat(2)-ing all files is not neededLeah Neukirchen2017-09-171-32/+83
| | | | | | | | | | | For plain file listing, no stat(2) information is needed; inspect the format string and ordering options to ensure this is true. We assume any custom test implies needing to stat for now. recurse detects in opendir/readdir whether to recurse on DT_DIR etc. This massively speeds up listing large trees, making lr -U almost as fast as plain GNU find(1).
* recurse: lstat on symlink loops, don't failLeah Neukirchen2017-09-171-1/+2
|
* lr: hyperlink_on: print hostname and use RFC3986-style URI encodingLeah Neukirchen2017-09-121-4/+34
|
* add -X for OSC 8 hyperlinksLeah Neukirchen2017-09-123-4/+49
|
* styleLeah Neukirchen2017-08-311-40/+40
|
* print_format: cleanupLeah Neukirchen2017-08-291-4/+4
|
* style: consistent castsLeah Neukirchen2017-08-291-7/+7
|
* NEWS.md: update for 1.0 v1.0Leah Neukirchen2017-08-291-0/+3
|
* recurse: need special case for "lr /"Leah Neukirchen2017-08-291-1/+2
|
* print_format: use snprintf for bounded strcpyLeah Neukirchen2017-08-291-1/+1
|
* print_format: compute time_t difference as longLeah Neukirchen2017-08-291-4/+5
|
* xattr_string: return empty static stringLeah Neukirchen2017-08-291-2/+4
|
* README/lr.1: fix some typos in documentation.olgeni2017-08-232-7/+7
| | | | Closes: #13 [via git-merge-pr]
* add strop negationsLeah Neukirchen2017-08-213-12/+31
|
* lr: add action "color <num>" to override colorsLeah Neukirchen2017-07-274-0/+25
|
* NEWS.md: updateLeah Neukirchen2017-07-271-2/+8
|
* _lr: update for -QLeah Neukirchen2017-07-271-1/+1
|
* lr: breaking change: swap meaning of -QLeah Neukirchen2017-07-274-20/+32
| | | | This is a bit unfortunate, but the better behavior in the long run.
* lr: use setlocale.Leah Neukirchen2017-07-191-0/+3
| | | | | | | | This will enable date stamp formatting for %A, %C, %T as known from date(1). Note that LC_COLLATE and LC_CTYPE is not respected, as we continue to use strcmp. Closes #12.
* lr: print errors and return status 1 when a toplevel argument cannot be stat'edLeah Neukirchen2017-07-131-4/+14
|
* lr: fix output of empty stringLeah Neukirchen2017-06-201-2/+5
|
* lr: add -C to allow coloring of filesLeah Neukirchen2017-06-202-8/+57
|
* lr: allow empty string for .Leah Neukirchen2017-06-202-7/+17
|
* lr: support @file to read file names from fileLeah Neukirchen2017-06-202-1/+18
|
* lr: set prefixl to 0 when reading from stdinLeah Neukirchen2017-06-201-1/+5
|