]> code.delx.au - gnu-emacs-elpa/commit
counsel-ag now works with ivy-occur-revert-buffer
authorOleh Krehel <ohwoeowho@gmail.com>
Mon, 4 Apr 2016 15:29:52 +0000 (17:29 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Mon, 4 Apr 2016 15:29:52 +0000 (17:29 +0200)
commit3f4f0809de70703fc3706c541d3fc27c5fc49a11
tree4185c748f2c5b5d3d89bf082689181dfa2a9e8ba
parent6757030a5b1c7b2fa80863ae08c06a73d88ad1e9
counsel-ag now works with ivy-occur-revert-buffer

* ivy.el (ivy-occur-revert-buffer): Add `counsel-ag' to the list.

* counsel.el (counsel-ag-occur): Don't call `ivy-occur-grep-mode' unless
  needed.

> (string-match "\"\\(.*\\)\"" (buffer-name))

Is a hack to recover the old `ivy-text', since it's not a field in
`ivy-last', and may have changed in the meantime.

TODO: Fix this sort of hacks, all necessary session data should really be in `ivy-last'.
counsel.el
ivy.el