k icon indicating copy to clipboard operation
k copied to clipboard

Add support for all the flags

Open supercrabtree opened this issue 9 years ago • 3 comments

Many requests for flag support, so that peeps can use it just like ls

supercrabtree avatar Jan 13 '15 13:01 supercrabtree

All Flags (from http://linux.die.net/man/1/ls)

Supported

-a, --all -A, --almost-all -d, --directory -h, --human-readable --help

Extra (no in ls)

--no-vcs do not get VCS status (much faster) -n don't show directorys

ToDo

--author -b, --escape --block-size=SIZE -B, --ignore-backups -c -C --color[=WHEN] -D, --dired -f -F, --classify --file-type --format=WORD --full-time -g --group-directories-first -G, --no-group

--si -H, --dereference-command-line --dereference-command-line-symlink-to-dir --hide=PATTERN --indicator-style=WORD -i, --inode -I, --ignore=PATTERN -k -l -L, --dereference -m -n, --numeric-uid-gid -N, --literal -o -p, --indicator-style=slash -q, --hide-control-chars --show-control-chars -Q, --quote-name --quoting-style=WORD -r, --reverse -R, --recursive -s, --size -S --sort=WORD --time=WORD --time-style=STYLE -t -T, --tabsize=COLS -u -U -v -w, --width=COLS -x -X -1 --lcontext -Z, --context --scontext --help --version

supercrabtree avatar Jan 28 '15 12:01 supercrabtree

The -h options requires numfmt, but the documentation does not say how to install it, perhaps it could be added

On osX, brew install coreutils installs gnumfmt, so a fix would be to detect whether numfmt exists or use gnumfmt on Darwn

maelp avatar Jun 25 '15 17:06 maelp

@maelp I added checks for gnumfmt in c08c3d3b8afcd1d5bd95deb5debd624bcc65ac5b, and I've just added notes to the readme for installing gnumfmt on OS X / Darwin with homebrew in 242a7040a561dd00f1f7fa6e44989fce558e0943 - excellent suggestion.

chrstphrknwtn avatar Jun 25 '15 21:06 chrstphrknwtn