Ticket #1487 (new defect) — at Initial Version

Opened 15 years ago

Last modified 15 years ago

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:

  1. A bug in src/search/regex.c prevents using \b in regex search. There's a duplicate of \B.
  1. 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").
  1. "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.
  1. In Editor, replace remembers the last text entered, but Search does not. I think it should :P
  1. 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.
  1. 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

Changed 15 years ago by dborca

Note: See TracTickets for help on using tickets.