PageRenderTime 46ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/bundle/grepper/CHANGELOG.md

https://github.com/drmikehenry/vimfiles
Markdown | 136 lines | 110 code | 26 blank | 0 comment | 0 complexity | e6ed27f5a7673b8bd4b5b8a329d61da1 MD5 | raw file
  1. # Change Log
  2. All notable changes to this project will be documented in this file. (Thus, it
  3. won't list single bugfixes or improved documentation.)
  4. ## [1.4] - 2016-11-11
  5. ### Added
  6. - Probably the most exciting change: two new flags: `-buffer` and `-buffers`. By
  7. default Grepper recursively searches from the current working directory. Using
  8. `-buffer` will search the current "buffer" and `-buffers` all loaded
  9. "buffers". I put the buffers in quotes, because the grep tools obviously work
  10. on the underlying files, not the buffers itself. So, for best results, save
  11. before searching. Everyone loves demos, so here it is:
  12. [demo](https://raw.githubusercontent.com/mhinz/vim-grepper/master/pictures/grepper-demo2.gif).
  13. - `g:grepper` now gets exposed. That is, after running `:Grepper` for the first
  14. time, `:echo g:grepper` will show you exactly what default entries are used by
  15. the plugin. If you set `g:grepper` in your vimrc already, it will be enriched
  16. by all missing default entries. So, if you want to add a new tool or change
  17. the defaults of an existing tool, have a look at them via `:echo
  18. g:grepper.tools g:grepper.git`.
  19. - New option: `g:grepper.simple_prompt`. If you work in small windows or your
  20. grep tool just takes a lot of options, the prompt quickly becomes too long.
  21. When this option is set, only the name of the grep tool, without any options,
  22. will be shown.
  23. - When using the operator or visual selection to start a search, `--` is now put
  24. in front of the quoted query. This avoids issues when searching for anything
  25. starting with `-`, since it marks the end of options of the grep tool.
  26. - The quickfix/location window always shows the executed command in the
  27. statusline. Even after closing and reopening it! This requires your Vim to be
  28. recent enough to accept a third argument for `:h setqflist()`.
  29. ### Changed
  30. - Due to what I believe is a bug in Vim, ripgrep, pt, and ack are forced to run
  31. synchronuously at the moment. See:
  32. [#65](https://github.com/mhinz/vim-grepper/issues/65). Suggestions welcome.
  33. - Default commands got prefixed: `:Ag` -> `:GrepperAg` and so on.
  34. - Handle consecutive spaces in a query. Previously those were replaced by a
  35. single space, because of the way the flag parser for `:Grepper` worked.
  36. - The `:Grepper` command doesn't use `-bar` anymore. This avoids pipe escaping
  37. madness and you can use _exactly_ the same commands you would use in the
  38. shell. This would just work the way you expect it to work:
  39. ```
  40. :Grepper -tool ag -query 'foo|bar' | head -n2
  41. ```
  42. - I revamped the README to be a much shorter and put all the details in the wiki
  43. instead. Moreover, two new animated GIFs!
  44. ## [1.3] - 2016-09-26
  45. ### Added
  46. - Async support for Vim.
  47. - Default commands for all supported tools: `:Grep` for grep, `:Ack` for ack,
  48. etc. Only exception: `:GG` for `git` to avoid conflicts with
  49. [fugitive](https://github.com/tpope/vim-fugitive).
  50. - Support for [ripgrep](https://github.com/BurntSushi/ripgrep)
  51. - `-noprompt` flag. Especially useful together with `-grepprg` or `-cword`.
  52. - `-highlight` flag that enables search highlighting for simple queries.
  53. - Flag completion for `:Grepper`. Compare `:Grepper <c-d>` to `:Grepper -<c-d>`.
  54. - `$+` placeholder for `-grepprg`. Gets replaced by all opened files.
  55. - `$.` placeholder for `-grepprg`. Gets replaced by the current buffer name.
  56. ### Changed
  57. - Use stdout handler instead of tempfile for async output.
  58. - Use `'nowrap'` in quickfix window.
  59. - When using `-cword`, add the query to the input history.
  60. - `&grepprg` does not get touched anymore.
  61. ### Removed
  62. - Quickfix mappings in favor of dedicated plugins like [vim-qf](https://github.com/romainl/vim-qf) or [QFEnter](https://github.com/yssl/QFEnter).
  63. - `-cword!`. Was inconsistent syntax in the first place and can now be replaced
  64. with `-cword -noprompt`.
  65. - Support for vim-dispatch. See this
  66. [commit](https://github.com/mhinz/vim-grepper/commit/c345137c336c531209a6082a6fcd5c2722d45773).
  67. - Sift was removed as default tool, because it either needs `grepprg = 'sift $*
  68. .'` (which makes restricting the search to a subdirectory quite hard) or an
  69. allocated PTY (which means fighting with all kinds of escape sequences). If
  70. you're a Go nut, use
  71. [pt](https://github.com/monochromegane/the_platinum_searcher) instead.
  72. ## [1.2] - 2016-01-23
  73. This is mainly a bugfix release and the last release before 2.0 that will bring
  74. quite some changes.
  75. ### Changed
  76. - The default order of the tools is this now: `['ag', 'ack', 'grep', 'findstr',
  77. 'sift', 'pt', 'git']`. This was done because not everyone is a git nut like
  78. me.
  79. ## [1.1] - 2016-01-18
  80. 50 commits.
  81. ### Added
  82. - `CHANGELOG.md` according to [keepachangelog.com](http://keepachangelog.com)
  83. - Support for [sift](https://sift-tool.org)
  84. - `<esc>` can be used to cancel the prompt now (in addition to `<c-c>`)
  85. - `-grepprg` flag (allows more control about the exact command used)
  86. - For ag versions older than 0.25, `--column --nogroup --noheading` is used
  87. automatically instead of `--vimgrep`
  88. - FAQ (see `:h grepper-faq`)
  89. - Mappings in quickfix window: `o`, `O`, `S`, `v`, `V`, `T` (see `:h
  90. grepper-mappings`)
  91. - using `-dispatch` implies `-quickfix`
  92. - The quickfix window uses the full width at the bottom of the screen. Location
  93. lists are opened just below their accompanying windows instead.
  94. ### Changed
  95. - Option "open" enabled by default
  96. - Option "switch" enabled by default
  97. - Option "jump" disabled by default
  98. - The "!" for :Grepper was removed. Use `:Grepper -jump` instead.
  99. - improved vim-dispatch support
  100. - `g:grepper.tools` had to contain executables before. It takes arbitrary names
  101. now.
  102. - Never forget query when switching tools (previously we remembered the query
  103. only when the operator was used)
  104. ## [1.0] - 2015-12-09
  105. First release!
  106. [1.4]: https://github.com/mhinz/vim-grepper/compare/v1.3...v1.4
  107. [1.3]: https://github.com/mhinz/vim-grepper/compare/v1.2...v1.3
  108. [1.2]: https://github.com/mhinz/vim-grepper/compare/v1.1...v1.2
  109. [1.1]: https://github.com/mhinz/vim-grepper/compare/v1.0...v1.1
  110. [1.0]: https://github.com/mhinz/vim-grepper/compare/8b9234f...v1.0