Find and Replace - Grand Unification Theory

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

How important is a unified find and replace to you?

Top priority
30
41%
Important
30
41%
Would be nice
12
16%
Somewhat unimportant
2
3%
Unimportant, despite the fact that the size/efficiency of TextPad would be improved
0
No votes
 
Total votes: 74

User avatar
gracefool
Posts: 76
Joined: Thu Jan 29, 2004 7:21 am
Location: Wellington, New Zealand
Contact:

Find and Replace - Grand Unification Theory

Post by gracefool »

Judging by the amount of threads and posts dedicated to the topic, I would say that improving find and replace functionality should be a top priority of Helios.

Here's a list I've compiled of the problems reported (many problems have been reported multiple times):
  1. Replace lacks "in Files" option
  2. Replace lacks "wrap" option
  3. Find lacks "in selected text" option
  4. Bug: bug in find in all documents
  5. Replace and Find lack search results for a single file (it can be done for find, but only as part of "Find in Files" which is rather awkward)
  6. Replace and Find lack "in marked lines" option
  7. Entry fields (especially for regular expressions) are too small / not resizeable
  8. "Cannot find" message is intrusive and unweildy
  9. Bug: "Search in files" dialog puts search in zombiemode when closed
For the sake of completeness, here is a list of additional features requested for find and replace (in order of estimated popularity):
  1. Search results overview
  2. Treat all documents of document type "binary" as binary files for the purposes of Find / Replace in Files
  3. Smart file selection (eg. exclude files)
  4. Upgraded regular expressions
  5. Type-ahead find
  6. "Find next" and "find previous" toolbar buttons
  7. Play a sound when wrapped search/replace reaches starting point (rather than start of file)
And additional features that are not especially for find and replace but directly improve them:
  1. Dockable windows & sear
  2. Editable GUI fonts (useful for some other-language users)
In my opinion, the best and simplest way to fix these problems would be to combine the find and replace functions. Merely merging the two would fix most problems (problems 1 to 6).

As it is, Replace is like a crippled version of a merged find and replace. Putting the two together is natural and easier to use (you don't have to remember two commands, and which has what features).

The best of both worlds. What do you think?
Last edited by gracefool on Thu Jul 08, 2004 12:31 am, edited 6 times in total.
User avatar
CyberSlug
Posts: 120
Joined: Sat Oct 04, 2003 3:41 am

Post by CyberSlug »

I agree :!:

Also, make the window dockable (like the Document Selector and Clip Library)!
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

There's also that button thing here and don't forget about my obsession
with Courier New in those entry fields ;)
Then I open up and see
the person fumbling here is me
a different way to be
User avatar
gracefool
Posts: 76
Joined: Thu Jan 29, 2004 7:21 am
Location: Wellington, New Zealand
Contact:

Cheers

Post by gracefool »

Thanks guys, I've edited the original post.
User avatar
gracefool
Posts: 76
Joined: Thu Jan 29, 2004 7:21 am
Location: Wellington, New Zealand
Contact:

Post by gracefool »

Added issue about files only being treated as binary if they have a null.
SteveB
Posts: 2
Joined: Tue Mar 16, 2004 11:20 am
Location: Somersert, UK

Finding in all documents

Post by SteveB »

I have also found it to be a pain that when finding in multiple open documents find reports that it found an occurance but does not give any way of getting to it if it is not in the current top document. Even if you mark them all you can not jump to them. I had to use find in files to get a list. Perhaps if find/replace/find in files were merged we would have a check box for show list or jump to entry?
Tzimisce
Posts: 3
Joined: Mon Nov 24, 2003 8:37 pm

Related Find/Replace requests

Post by Tzimisce »

If you select several lines, then do Replace, TextPad (wisely) defaults to a scope of Selected Text.

However, if you have a portion of a line selected, TextPad defaults to a scope of Active Document. This has bitten me before. It's a good thing you have Undo.

As a related request, if a word is selected and Find is done, TextPad places that word in the find dialog. However, other programs (specifically Borland's Delphi) go further - if the cursor is on a word and Find is done, the word is placed in the find dialog. I'd prefer that behavior - it saves time.
bihler
Posts: 1
Joined: Wed Apr 14, 2004 6:28 am
Contact:

Naming and Saving Find & Replace Expressions

Post by bihler »

I would very much like the following feature: Let the user save often used find & replace expressions as presets, together with a name for the preset to memorize it by.
I have many quite complex regular expressions that I often use, and having to re-type them every time is quite a pain. The dropdown-boxes make things a little bit better already, but having a list with named presets to select from would be really great. (Another dropdown-box with the list and an additional "Save preset" button on the dialog would do.)
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

I would very much like the following feature: Let the user save often used find & replace expressions as presets, together with a name for the preset to memorize it by.
You can do that now by making a Clip Library for RegEx strings.

Not quite the same as selecting from a drop down while in the Find/Search window, but is available to use today.
Hope this was helpful.............good luck,
Bob
iburns
Posts: 4
Joined: Thu Jul 01, 2004 2:08 pm

Post by iburns »

Here is another vote for replace for bookmarked lines. :D
Iain
Nial
Posts: 29
Joined: Fri May 09, 2003 12:04 pm

Re: Find and Replace - Grand Unification Theory

Post by Nial »

> Here's a list I've compiled of the problems reported (the links are just a
> sample; many problems have been reported multiple times):


I would also like a "Find all occurrences in the current File" option,
able to be called as a tool. Combined with...

Dockable windows

...it makes it much easier to track assignments when bug fixing etc, you
can see every occurrence that a variable is assigned etc.

It would also make...

[*] "Find next" and "find previous" toolbar buttons

.. this redundant as you could see all results in the search window (which
you've placed away from the Textpad main window).

This is so handy when you've used it, it's really frustrating not having
it available.


Nial.
User avatar
gracefool
Posts: 76
Joined: Thu Jan 29, 2004 7:21 am
Location: Wellington, New Zealand
Contact:

Report occurrences

Post by gracefool »

I think this is covered in "Search results overview".

It doesn't make the toolbar buttons redundant - most people will still like to find in the traditional way.
User avatar
gracefool
Posts: 76
Joined: Thu Jan 29, 2004 7:21 am
Location: Wellington, New Zealand
Contact:

Post by gracefool »

Added feature Type-ahead find.
User avatar
gracefool
Posts: 76
Joined: Thu Jan 29, 2004 7:21 am
Location: Wellington, New Zealand
Contact:

Edits

Post by gracefool »

Andrewr66
Posts: 4
Joined: Wed Sep 08, 2004 11:22 am
Location: Oslo, Norway

Undo a Replace with regular expressions

Post by Andrewr66 »

I have been using Replace with Regular expressions a lot.
Still, I seldom manage to write my Find what and Replace With expressions correctly at the first attempt. This means my work routine will be like this:
- Select text
- F8, type in two regular expressions in the textboxes.
- Esc (from replace dialogue)
- Undo (the replacement)
- select text again
- F8, correct regular expressions
- and so on.

What I want is a Undo button in the Replace dialogue!

Is there any better way to do this?
Post Reply