/README.md

https://github.com/nlamirault/ripgrep.el · Markdown · 107 lines · 58 code · 49 blank · 0 comment · 0 complexity · d2003d3ea471566cfccae1086053651d MD5 · raw file

  1. # ripgrep.el
  2. [![License GPL 2][badge-license]][LICENSE]
  3. [![Coverage Status](https://coveralls.io/repos/nlamirault/ripgrep.el/badge.png?branch=master)](https://coveralls.io/r/nlamirault/ripgrep.el?branch=master)
  4. Master :
  5. * [![MELPA Stable](https://stable.melpa.org/packages/ripgrep-badge.svg)](https://stable.melpa.org/#/ripgrep)
  6. * [![Circle CI](https://circleci.com/gh/nlamirault/ripgrep.el/tree/master.svg?style=svg)](https://circleci.com/gh/nlamirault/ripgrep.el/tree/master)
  7. Develop:
  8. * [![Melpa Status](https://melpa.org/packages/ripgrep-badge.svg)](https://melpa.org/#/ripgrep)
  9. * [![Circle CI](https://circleci.com/gh/nlamirault/ripgrep.el/tree/develop.svg?style=svg)](https://circleci.com/gh/nlamirault/ripgrep.el/tree/develop)
  10. ``ripgrep.el`` allows you to search using [ripgrep][] from inside Emacs.
  11. ## Installation
  12. The recommended way to install ``ripgrep`` is via [MELPA][]:
  13. M-x package-install ripgrep
  14. or [Cask][]:
  15. (depends-on "ripgrep")
  16. There is also [projectile-ripgrep](https://melpa.org/#/projectile-ripgrep) if you want to use it using [projectile](https://github.com/bbatsov/projectile)
  17. ## Usage
  18. <kbd>M-x ripgrep-regexp</kbd> or <kbd>M-x projectile-ripgrep</kbd>
  19. ## Development
  20. ### Cask
  21. ``ripgrep.el`` use [Cask][] for dependencies management. Install it and
  22. retrieve dependencies :
  23. $ curl -fsSkL https://raw.github.com/cask/cask/master/go | python
  24. $ export PATH="$HOME/.cask/bin:$PATH"
  25. $ cask
  26. ### Testing
  27. * Launch unit tests from shell
  28. $ make clean test
  29. * Using [overseer][] :
  30. Keybinding | Description
  31. ---------------------|------------------------------------------------------------
  32. <kbd>C-c , t</kbd> | launch unit tests from buffer
  33. <kbd>C-c , b</kbd> | launch unit tests
  34. <kbd>C-c , g</kbd> | launch unit tests with tag (find, regexp, ...)
  35. * Tips:
  36. If you want to launch a single unit test, add a specify tag :
  37. ```lisp
  38. (ert-deftest test-foobar ()
  39. :tags '(current)
  40. ```
  41. And launch it using : <kbd>C-c , g</kbd> and specify tag : *current*
  42. ## Support / Contribute
  43. See [here](CONTRIBUTING.md)
  44. ## Changelog
  45. A changelog is available [here](ChangeLog.md).
  46. ## License
  47. See [LICENSE](LICENSE).
  48. ## Contact
  49. Nicolas Lamirault <nicolas.lamirault@gmail.com>
  50. [ripgrep.el]: https://github.com/nlamirault/ripgrep.el
  51. [badge-license]: https://img.shields.io/badge/license-GPL_2-green.svg?style=flat
  52. [LICENSE]: https://github.com/nlamirault/ripgrep.el/blob/master/LICENSE
  53. [GNU Emacs]: https://www.gnu.org/software/emacs/
  54. [MELPA]: https://melpa.org/
  55. [Cask]: http://cask.github.io/
  56. [Issue tracker]: https://github.com/nlamirault/ripgrep.el/issues
  57. [overseer]: https://github.com/tonini/overseer.el
  58. [ripgrep]: https://github.com/BurntSushi/ripgrep