summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-07-02Update version of `ignore` crate in README.mdJordan Danford
2017-06-27Add cabal files for Haskell packagesBryan Richter
2017-06-19bump wincolor depAndrew Gallant
2017-06-19wincolor-0.1.4wincolor-0.1.4Andrew Gallant
2017-06-19wincolor: Re-fetch the console on all callsAlex Crichton
The primary motivation for this commit was rust-lang/cargo#4189 where dropping a `wincolor::Console` would call `CloseHandle` to close the console handle. Cargo creates a few `Console` instances so it ended up closing stdout a little earlier as intended! The `GetStdHandle` function returns handles I believe aren't intended to be closed (as there's no refcounting). I believe libstd doesn't close these handles. This commit also moves to calling `GetStdHandle` on demand which libstd changed to doing so recently as well, preventing caching of stale handles that change over time with calls to `SetStdHandle`.
2017-06-15fix word boundary w/ capture groupEvan.Mattiza
fixes BurntSushi/ripgrep#506. Word boundary search as arg had unexpected behavior. added capture group to regex to encapsulate 'or' option search and prevent expansion and partial boundary finds. Signed-off-by: Evan.Mattiza <emattiza@gmail.com>
2017-06-12add yocto file typesSid-Ali Teir
2017-06-12Add julia as file typeGent Bajraj
2017-06-12Use clap's overrides_with and default_value_ifEric Nielsen
to better organize options. These are the changes: - color will have default value of "never" if --vimgrep is given, and only if no --color option is given - last overrides previous: --line-number and --no-line-number, --heading and --no-heading, --with-filename and --no-filename, and --vimgrep and --count - no heading will be show if --vimgrep is defined. This worked inside vim actually because heading is also only shown if tty is stdout (which is not the case when rg is called from vim). Unfortunately, clap does not behave like a usual GNU/POSIX in some cases, as reported in https://github.com/kbknapp/clap-rs/issues/970 and https://github.com/kbknapp/clap-rs/issues/976 (having all the bells and whistles, on the other hand). So we still have issues like rg failing when same argument is given more than once (unless for the few ones marked with `multiple(true)`), or having unintuitive precedence rules (and probably non-intentional, just there because of clap's limitations) like: - --no-filename over --vimgrep - --no-line-number over --column, --pretty or --vimgrep - --no-heading over --pretty regardless of the order in which options where given, where the desired behavior would be that the last option would override the previous ones given.
2017-06-12Add "msbuild" filetype for msbuild related filesBrian Gianforcaro
This commit adds a "msbuild" filetype grouping, with a few different file types being mapped to this grouping: - MSBuild project files: .csproj, .vcxproj, .fsproj, .proj - MSBuild shared property files: .props - MSBuild shared targets files: .targets
2017-06-12Add .inl as one of the c++ file typee definitions.Brian Gianforcaro
.inl files are often used by convention to include both inline functions, or function templates.
2017-06-06Add a cshtml ignore typeTaryn Hill
2017-06-01Use uppercase for required argument namesEric Nielsen
This reverts a couple of changes introduced in 4c78ca8 and keeps the `PATTERN` argument consistently uppercased, so error messages can look like: error: The following required arguments were not provided: <PATTERN>
2017-05-29Add Zsh completion fileFangrui Song
2017-05-29Fix another bug in -o/--only-matching.Andrew Gallant
The handling of the -o/--only-matching was incorrect. We cannot ever re-run regexes on a *subset* of a matched line, because it doesn't take into account zero width assertions on the edges of the regex. This occurs whenever an end user uses an assertion explicity, but also occurs when one is used implicitly, e.g., with the `-w` flag. This instead reuses the initial matched range from the first regex match. We also apply this fix to coloring. Fixes #493
2017-05-26Update help and man pagesEric Nielsen
Formatting of rg.1.md. Remove backticks from already indented code. Add missing italic to some arguments, Replace -n by --line-number in --pretty for better clarity. Add explicit example of `*.foo` instead of `<glob>` in examples. Add vim information to --vimgrep. In src/app.rs, also changed help text for pattern and regexp. Actually, "multiple patterns may be given" was not true for the standalone pattern.
2017-05-26Remove vestigial color function from src/args.rsEric Nielsen
It's usage was replaced by the `color_choice` function. Also, `color` was outdated, as it didn't include testing for the new "ansi" option.
2017-05-25Update documentation for --color ansiEric Nielsen
In `src/app.rs`, change typo "When ansi used" to "When ansi is used". Update man pages with missing `ansi` option for `--color`.
2017-05-24Should show filename for one file with vimgrepEric Nielsen
With vim configured with: set grepprg=rg\ --vimgrep set grepformat^=%f:%l:%c:%m and running the command `:grep 'vimgrep' doc/rg.1`, the output should be: doc/rg.1:446:8:.B \-\-vimgrep but the actual output was: 446:8:.B \-\-vimgrep Same issue would happen if results only match one file. Ag behaves as expected.
2017-05-24Fix typo, should be 'mode' instead of 'more'Eric Nielsen
in man pages.
2017-05-24Add support for QMake filesManuel Vives
2017-05-21bump deps, reduxAndrew Gallant
This only bumps the regex dependency. The new clap version causes a bump in unicode-segmentation, which in turn requires a Rust 1.15, which is above ripgrep's currently supported minimum Rust version of 1.12.
2017-05-21Revert "bump deps"Andrew Gallant
This reverts commit b860fa3acd99715935c4b9ad50d7965a93d8ecd6.
2017-05-21bump depsAndrew Gallant
2017-05-19Make --quiet flag apply when using --files optionMarc Tiehuis
Fixes #483.
2017-05-11update brew tapAndrew Gallant
2017-05-11bump ripgrep, ignore, globset0.5.2Andrew Gallant
The `ignore` and `globset` crates both got breaking changes in the course of fixing #444, so increase 0.x to 0.(x+1).
2017-05-11changelog 0.5.2Andrew Gallant
2017-05-08deps: update clap to 2.24Andrew Gallant
Fixes #442
2017-05-08Add Powershell tips and autocompletion instructionsEli Miller
2017-05-04Add snapcraft.yamlChris MacNaughton
[Snapcraft](https://snapcraft.io/) makes Linux packaging very simple in a cross-distro way. This adds the snapcraft.yaml file to setup a snap of ripgrep
2017-04-21Fix reiteration of the first found match with --only-mathing flagRoman Proskuryakov
Fixes #451
2017-04-12Add better error messages for invalid globs.Andrew Gallant
This threads the original glob given by end users through all of the glob parsing errors. This was slightly trickier than it might appear because the gitignore implementation actually modifies the glob before compiling it. So in order to get better glob error messages everywhere, we need to track the original glob both in the glob parser and in the higher-level abstractions in the `ignore` crate. Fixes #444
2017-04-12Use for_label_no_replacement.Andrew Gallant
This will cause certain unsupported legacy encodings to act as if they don't exist, in order to avoid using an unhelpful (in the context of file searching) "replacement" encoding. Kudos to @hsivonen for chirping about this!
2017-04-12Add dfa-size-limit and regex-size-limit argumentsMarc Tiehuis
Fixes #362.
2017-04-12Add nixBryan Richter
2017-04-09update brew tapAndrew Gallant
2017-04-090.5.10.5.1Andrew Gallant
2017-04-09bump depsAndrew Gallant
2017-04-09bump ignoreignore-0.1.9Andrew Gallant
2017-04-09changelog 0.5.1Andrew Gallant
2017-04-09Add ability to colorize column numbers.Andrew Gallant
Fixes #377
2017-04-09update man pageAndrew Gallant
2017-04-09Add `-o/--only-matching` flag.Roman Proskuryakov
Currently, the `--only-matching` flag conflicts with the `--replace` flag. In the future, this restriction may be relaxed. Fixes #34
2017-04-09Add short note on Windows TipsDouman
2017-04-05updates clap and removes home rolled -h/--help distinctionKevin K
This commit updates clap to v2.23.0 The update contained a bug fix in clap that results in broken code in ripgrep. ripgrep was relying on the bug, but this commit fixes that issue. The bug centered around not being able to override the auto-generated help message by supplying a flag with a long of `help`. Normally, supplying a flag with a long of `help` means whenever the user passes `--help`, the consuming code (e.g. ripgrep) is responsible for displaying the help message. However, due to the bug in clap this wasn't necessary for ripgrep to do unless the user passed `-h`. With the bug fixed, it meant the user passing `--help` and clap expected ripgrep to display the help, yet ripgrep expected clap to display the help. This has been fixed in this commit of ripgrep. All well now! v2.23.0 also brings the abilty to use `Arg::help` or `Arg::long_help` allowing one to distinguish between `-h` and `--help`. This commit leaves all doc strings in the `lazy_static!` hashmap however only for aesthetic reasons. This means all home rolled handling of `-h`/`--help` has been removed from ripgrep, yet functionality *and* appearances are 100% the same.
2017-04-05fix typo in commentKosta Welke
2017-03-31Enforce 79 column limit. Grr.Andrew Gallant
2017-03-31Bamp clap to 2.22.2Roman Proskuryakov
Fixes #426 , #418
2017-03-31Improves Printer, fixes some bugsRoman Proskuryakov