Ticket #1487 (new defect) — at Initial Version
Search improvements/bugfixes in Find, Editor, View
Reported by: | dborca | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 4.7.0-pre2 |
Component: | mc-core | Version: | 4.7.0-pre1 |
Keywords: | whole words | Cc: | dborca@…, dmartina@… |
Blocked By: | Blocking: | ||
Branch state: | Votes for changeset: |
Description
There are a few things which came with the new search engine:
- A bug in src/search/regex.c prevents using \b in regex search. There's a duplicate of \B.
- There's no "Whole Words Only" option. One could use regex search with \btext\b, but see the bug above. Besides, it would be nice to have a quick "Whole Words Only" checkbox for text searches. I sometimes find it useful, even in File Find (a la "grep -rw").
- "First Occurence Only" in File Find. Ok, I just noticed it today in GIT, but after a quick glance, it is broken. Because it continues to scan the file after the first match, which beats the whole purpose of this option. There's NO point in continuing to read the file if only a single match is desired.
- In Editor, replace remembers the last text entered, but Search does not. I think it should :P
- Search backwards behaves erratically. Normal search gives other results than plain-word regex. Also, it even finds the text if it is a few chars to the right of the cursor.
- A nice addition would be "set bookmarks" option in Editor Search. Especially with colored bookmarks (Ticket #1484)
Attached is a patch (against 4.7.0-pre1) which addresses the above issues.
Change History
Note: See
TracTickets for help on using
tickets.