aboutsummaryrefslogtreecommitdiff
path: root/evil-search.el
AgeCommit message (Collapse)Author
2014-09-02Implement q/ and q? for editing searches (fixes #292)Emanuel Evans
2014-09-08require `evil-core` in `evil-search` (fix #415)Frank Fischer
2014-08-03search uses evil-input-method instead of defaultGordon Gustafson
default-input-method is only the default choice when the user is activating an input method, while evil-input-method is what evil uses in insert-state.
2014-05-29Generalize macro for input methods in normal-stateGordon Gustafson
We need to be able to set input methods locally (see evil-search.el) and globally (see following commit), so the macro should only deactivate the evil's input method hooks and leave the setting to be done in the body.
2014-04-12evil search uses current input methodGordon Gustafson
2014-04-11merge stable-1.0Frank Fischer
2014-04-11version 1.0.91.0.9Frank Fischer
2014-03-14make backward search more Vim compatibleFrank Fischer
If point is on a match but not on its first character, then backward search in Vim finds this match. However, standard Emacs search functions (in particular `re-search-backward`) only match if the end of the match is *before* the starting point. This change modifies Evil's search function so that it behaves like vim using an additional search step.
2013-12-04Make `*` and `#` search for symbols optionally (fix #360)Frank Fischer
The new custom variable `evil-symbol-word-search` determines whether the word search function family (bound to `*` and `#`) looks for the symbol (if non-nil) or word (if nil) under point. The variable is buffer-local so it can be set appropriately for each major-mode. The default value is `nil` to mimic Vim's default behaviour.
2013-11-28Start word search with word at point, not symbol (fix #356)Frank Fischer
Word search now uses the buffer's definition of a "word" to determine the boundaries of the object at point to be searched for. This is consistent with the generated search pattern that uses word boundaries \< ... \> and not symbol boundaries \_< ... \_> due to a recent change 6d3d4df57e81. This addresses #354.
2013-11-26Replace symbol search by word search (fix #354)Frank Fischer
2013-11-26Merge stable-1.0Frank Fischer
2013-11-26Version 1.0.81.0.8Frank Fischer
2013-08-11Refactor substitute code (fix #314).Frank Fischer
The new functions `evil-ex-make-search-pattern` and `evil-ex-make-substitute-pattern` are responsible to create patterns w.r.t. to flags and global options. Ensure that all replacement functions respect `case-replace` and `case-fold-search`, both variables are set according to the pattern's case flags.
2013-08-02Bump version to 1.0.71.0.7Frank Fischer
2013-07-11Change development version information to 1.0-devFrank Fischer
2013-07-06Merge stable-1.0Frank Fischer
2013-07-06Bump version to 1.0.61.0.6Frank Fischer
2013-06-07Merge stable-1.0Frank Fischer
2013-06-07Bump version to 1.0.51.0.5Frank Fischer
2013-06-07Merge stable-1.0Frank Fischer
2013-06-07Bump version to 1.0.41.0.4Frank Fischer
2013-06-01Fix isearch-filter-predicate related bugs happening with the latex emacs ↵Alessandro Piras
(fix #299). `isearch-filter-predicate` became a list `isearch-filter-predicates`.
2013-05-31Ensure buffer is alive in `evil-ex-hl-do-update-highlight`.Frank Fischer
2013-05-23Bump version to 1.0.31.0.3Frank Fischer
2013-05-20Bump version to 1.0.21.0.2Frank Fischer
2013-05-14Save match-data within `evil-ex-search-update-pattern` (fix #288)Barry O'Reilly
This function is called from change-hooks and these hooks are supposed to preserve the match-data according to the Elisp manual.
2013-02-27Bump version to 1.0.11.0.1Frank Fischer
2013-02-25Add `evil-ex-substitute-global` optionFrank Fischer
Setting this option to non-nil reverses the meaning of the 'g' flag in :substitute.
2013-02-19Implement unbounded search for isearch module (re #256)Frank Fischer
2013-02-17Fix the "r" flag for `evil-ex-substitute'.Frank Fischer
If the "r" flag is present and the pattern is empty, then either the previous search pattern or the previous substitute pattern should be used, whichever is more recent. Furthermore this flag is implicitly set for :substitute commands with argument (i.e. with pattern/replacement part). This fixes #252.
2013-02-16Change version tags to 1.0-devFrank Fischer
2013-02-04Bump version to 1.0.0.1.0.0Frank Fischer
2013-01-18Add version comments to all files.Frank Fischer
2012-12-10Raise error on `evil-ex-find-next' if no pattern availableFrank Fischer
2012-11-12Fix usage of `evil-ex-range' in substitution code.Frank Fischer
The ex-range can be an arbitrary range. The using code must not make any assumption on the type of the range or its expansion state.
2012-07-30Add GPL 3 license information to all source filesFrank Fischer
The headers of all source files are updated to be more standard conform and include the license information. Furthermore the license is put in the COPYING file.
2012-07-29Highlight zero size matches/substitutesFrank Fischer
Zero size matches are invisible but their substitute may not be. Therefore empty overlays are created in this case.
2012-07-06Create a defcustom for the idling delay before search highlighting updates.Barry O'Reilly
2012-05-25Initialize `evil-search-module' variable when evil is loadedFrank Fischer
This ensures that the search module is initialized correctly even if the variable had been set before evil is loaded.
2012-05-08Ensure symbol-search respects value of `evil-ex-search-case'Frank Fischer
This addresses issue #148.
2012-05-08Add pattern of symbol-search * or # to search historyFrank Fischer
The pattern is added to the search history if and only if it does not equal the first pattern in the history. This addresses issue #148.
2012-05-07Use face `evil-ex-substitute-matches' for highlights of :s commandFrank Fischer
Formerly we used `evil-ex-lazy-highlight' for both, search and substitute. Now it is only used for search and substitute uses face `evil-ex-substitute-matches' so both can be configured separately. This addresses issue #147.
2012-05-07Rename face `evil-ex-substitute' to `evil-ex-substitute-replacement'Frank Fischer
More descriptive name.
2012-05-07Save search pattern of failing search in ex search moduleFrank Fischer
Even if the search failed the search pattern should be stored for subsequent search commands like 'n', e.g. in another buffer. The pattern is not stored if the search is cancel with C-g. This addresses issue #147.
2012-05-07Remove all highlights when search pattern is emptyFrank Fischer
If the search pattern for some highlight is empty then all old overlays should be removed.
2012-05-07Fix update of search highlights with empty patternFrank Fischer
If the search pattern is empty and there was no previous search then an error has been raised because `evil-ex-search-pattern' is nil in this case. Now the condition is checked appropriately.
2012-04-28Fix positioning of point in isearch moduleVegard Øye
Ensure that point remains unchanged when the search fails, even if a prefix of the search string matched. Cf. commits 568480b and 6302c05.
2012-05-07Stop update of search highlights when reaching eobFrank Fischer
If the search pattern may match the empty string and the search during the update of the highlighting reaches the end of the buffer then the update went to an infinite loop. This change ensure highlighting is stopped when reaching the end of the buffer. This addresses issue #140.
2012-04-28Do not overwrite `case-replace'Frank Fischer
The new behavior is to always use the global value of `case-replace' and do not set it depending on the case setting of the search pattern. This addresses #140.