cli: add -. as short option for --hidden

This is somewhat non-standard, but it seems nice on the surface: short
flag names are in short supply, --hidden is probably somewhat common and
-. has an obvious connection with how hidden files are named on Unix.

Closes #1680
This commit is contained in:
João Marcos
2020-09-10 20:32:54 -03:00
committed by Andrew Gallant
parent 12dd455ee9
commit 4566882521
5 changed files with 13 additions and 8 deletions

View File

@@ -2,6 +2,8 @@ TBD
===
Unreleased changes. Release notes have not yet been written.
**BREAKING CHANGES**:
In this release, a small tweak has been made to the output format when a binary
file is detected. Previously, it looked like this:
@@ -31,6 +33,8 @@ Feature enhancements:
minified files, Mint, pofiles (from GNU gettext) Racket, VCL, Yang
* [FEATURE #1404](https://github.com/BurntSushi/ripgrep/pull/1404):
ripgrep now prints a warning if nothing is searched.
* [FEATURE #1680](https://github.com/BurntSushi/ripgrep/pull/1680):
Add `-.` as a short flag alias for `--hidden`.
* [FEATURE #1856](https://github.com/BurntSushi/ripgrep/pull/1856):
The README now links to a
[Spanish translation](https://github.com/UltiRequiem/traducciones/tree/master/ripgrep).