]> code.delx.au - gnu-emacs-elpa/commit
Make ivy--regex work with "[^ ]"
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 13 Apr 2016 17:04:58 +0000 (19:04 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 13 Apr 2016 17:04:58 +0000 (19:04 +0200)
commit65cf72467e45474595ceb2519a9e3fd5b411e541
tree01a66a8e19fa4cf25657ba4aed8ddb6b43a66ea1
parent41e2e413673158863b6a6b2e7627acb3f69bd56c
Make ivy--regex work with "[^ ]"

* ivy.el (ivy--split): Add a work around to not consider spaces like
"[^ ]". It's pretty hacky, the space has to come right after "[^".
But better than nothing.

* ivy-test.el (ivy--split): Add test.

Use-case: open a freedict file, where each word being defined is with no
indentation and the explanation is with indentation.

`swiper' or `counsel-grep' will now work properly with input "^[^ ]".
ivy-test.el
ivy.el