Find and Replace - Grand Unification Theory
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Navi-windows for Find All & keyword-recognition.
Find/Find All.
What I want (what I really really want, obviously [Spice Girls if I've completely lost you]) is a 'Find All' that lists all the results in the Clip Library pane (or something that pops up over the top of it). If the Clip Lib's not open, just the pop up. Then clicking one of the lines shown in the pop-up immediately navigates the document to that line/word (vertically centred of course).
A Search Results window is all well and good but that means flicking between windows.
I'm persistently amazed that no text editors I've found do this. As a similar type of thing, if anyone's used Toad (I believe the Delphi environment does something similar), Toad is an Oracle Dev Tool that provides a text editor to create/compile Oracle-pl/sql programs. When you compile and errors are generated, the bottom 1/4 of the screen shows the compile errors, and clicking on one of the errors moves the doc to that position instantly.
I have to say, I worked on a mainframe from the mid '90s and that already did the equivalent back then (and probably did it from the mid 80's). A mainframe display!
While I'm at it, is there any add-in to search the document text for keywords and similarly list those in a navi-window? eg./ie. to identify where all your 'function' statements are?
Don't get me wrong, TextPad is the only text editor worth using, I was VERY chuffed a few days ago, wanting to copy the filename, to find that lo! right click, Copy Other, Filename was right there!
Well done TextPad - keep up the dev. I don't think it's ever crashed on me either.
What I want (what I really really want, obviously [Spice Girls if I've completely lost you]) is a 'Find All' that lists all the results in the Clip Library pane (or something that pops up over the top of it). If the Clip Lib's not open, just the pop up. Then clicking one of the lines shown in the pop-up immediately navigates the document to that line/word (vertically centred of course).
A Search Results window is all well and good but that means flicking between windows.
I'm persistently amazed that no text editors I've found do this. As a similar type of thing, if anyone's used Toad (I believe the Delphi environment does something similar), Toad is an Oracle Dev Tool that provides a text editor to create/compile Oracle-pl/sql programs. When you compile and errors are generated, the bottom 1/4 of the screen shows the compile errors, and clicking on one of the errors moves the doc to that position instantly.
I have to say, I worked on a mainframe from the mid '90s and that already did the equivalent back then (and probably did it from the mid 80's). A mainframe display!
While I'm at it, is there any add-in to search the document text for keywords and similarly list those in a navi-window? eg./ie. to identify where all your 'function' statements are?
Don't get me wrong, TextPad is the only text editor worth using, I was VERY chuffed a few days ago, wanting to copy the filename, to find that lo! right click, Copy Other, Filename was right there!
Well done TextPad - keep up the dev. I don't think it's ever crashed on me either.
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
Re: Navi-windows for Find All & keyword-recognition.
Yes! Alas, I can only vote once for this poll
(*) sorry, just had to edit out some really naugty words
If you use the search here for "ctags" you will come across this link, http://findtag.sourceforge.net/ , it's an addon for TP and creates a function list for source code, a source navigator? HTHCloink wrote:Find/Find All. What I want (*) is a 'Find All' that lists all the results in the Clip Library pane (or something that pops up over the top of it). If the Clip Lib's not open, just the pop up. Then clicking one of the lines shown in the pop-up immediately navigates the document to that line/word (vertically centred of course).
(*) sorry, just had to edit out some really naugty words
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be
-
- Posts: 9
- Joined: Tue Dec 28, 2004 10:55 pm
- Location: Colorado
- Contact:
FWIW, I never use the Search->Find (F5) command or the Find dialog.
The Find dialog is an annoying and unnecessary subset of the Replace dialog. This same conceptual split is one of the more annoying "features" of Microsoft Word.
One of the first things I did when I installed TextPad was to change some shortcuts:
I left Find... as F5, since I never us Find... and seldom use the F-keys. If I could delete it from the menu, I would.
Just because F3 is the "official" Windows convention (but for which applications?) doesn't mean it's necessarily the best one. However, you could redefine them as above, but use F3 instead of Ctrl-F and F4/Shift-F4 instead of Ctrl-G/Ctrl-Shift-G. That would at least eliminate the Find dialog in favor or the Find-and-(maybe)-Replace dialog.
- Sam
The Find dialog is an annoying and unnecessary subset of the Replace dialog. This same conceptual split is one of the more annoying "features" of Microsoft Word.
One of the first things I did when I installed TextPad was to change some shortcuts:
- * Ctrl-F --> Replace... (opens dialog, includes selected text [if any] as search string).
* Ctrl-G --> Find Next
* Ctrl-Shift-G --> Find Previous
* Ctrl-H --> Replace Next
- * Ctrl-F = Find (and maybe replace).
* Ctrl-G = find aGain.
* Ctrl-Shift-G = find aGain the other way (or in reverse).
* Ctrl-H = Replace and find again. (Why H? Because that's what various applications that use F and G typically use, and I've used that convention for 20 years.)
I left Find... as F5, since I never us Find... and seldom use the F-keys. If I could delete it from the menu, I would.
Just because F3 is the "official" Windows convention (but for which applications?) doesn't mean it's necessarily the best one. However, you could redefine them as above, but use F3 instead of Ctrl-F and F4/Shift-F4 instead of Ctrl-G/Ctrl-Shift-G. That would at least eliminate the Find dialog in favor or the Find-and-(maybe)-Replace dialog.
- Sam
It's probably not relevant - but when searching for text that's visible on the screen I always select the text and hit F3 (search next). The only way I could improve on this is to have a default set of RE options rather than the last one I chose in the dialog (as this isn't visible, the RE flag can result in not finding the selected text, which is momentarily confusing)
My personal bugbear is the absence of a back key / button - for the duration of a session I'd like Textpad to remember every arbitrary location I've "jumped" to, and alow me to revisit them in reverse order. Having this on a both a session wide and file wide basis would be a bonus.
My typical edit sequence goes:
Find some code I want to change
Search to check for side effects
Get back to original point.
When I remember I use bookmarks, but it requires remembering an added step. Usually I have to navigate back from first prinicples, which is a pain.
My personal bugbear is the absence of a back key / button - for the duration of a session I'd like Textpad to remember every arbitrary location I've "jumped" to, and alow me to revisit them in reverse order. Having this on a both a session wide and file wide basis would be a bonus.
My typical edit sequence goes:
Find some code I want to change
Search to check for side effects
Get back to original point.
When I remember I use bookmarks, but it requires remembering an added step. Usually I have to navigate back from first prinicples, which is a pain.
I'd also like the facility - which seems to me simple - to allow more than one starting point for "Find in Files".
Some of the C projects I work on have multiple include directories. It would be really nice to have a list of all these - so that a search found all the occurrences that compile does.
Also a "special" of "the directory of the currently active window" would be nice.
Some of the C projects I work on have multiple include directories. It would be really nice to have a list of all these - so that a search found all the occurrences that compile does.
Also a "special" of "the directory of the currently active window" would be nice.
Hilight color of find
I find the color of found hilighted text hard to read. I would like an option to change the color of the found text.
Thanks
Thanks
Re: Hilight color of find
Why do you not use the existing option to change it?dmonti wrote:I find the color of found hilighted text hard to read. I would like an option to change the color of the found text.
Found text is selected. Therefore you have to change the colors of selected text (focused or not) in your document classes' color settings.
-
- Posts: 2
- Joined: Tue Feb 15, 2005 3:20 am
And just to add to this Find something that no-one has mentioned:
Find the word under cursor!
Having a hotkey (for programmers Ctrl-F3) that grabs the word under the cursor and does a search is invaluable. I don't need the Find Dialog every time. And I don't want to have to highlight the entire word first, let the computer do that work
Please? (I'm really sick of looking at the ASCII chart everytime I try this )
Regards,
- Clutchplate
Find the word under cursor!
Having a hotkey (for programmers Ctrl-F3) that grabs the word under the cursor and does a search is invaluable. I don't need the Find Dialog every time. And I don't want to have to highlight the entire word first, let the computer do that work
Please? (I'm really sick of looking at the ASCII chart everytime I try this )
Regards,
- Clutchplate
Re: Undo a Replace with regular expressions
I'd open a new file and save there the strings. Not only that, but this allows you to edit the strings, to save various variants, even to comment them.Andrewr66 wrote: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.
What I want is a Undo button in the Replace dialogue!
Is there any better way to do this?
-
- Posts: 15
- Joined: Sun Jun 27, 2004 5:18 pm
So my comments/suggestions are not missed I thought I'd list them here as well:
1) Allow Find In Files to search within hidden files/folders (http://www.textpad.info/forum/viewtopic.php?p=20966)
2) Add "Wrap searches" option to Replace dialog (http://www.textpad.info/forum/viewtopic.php?p=20253)
1) Allow Find In Files to search within hidden files/folders (http://www.textpad.info/forum/viewtopic.php?p=20966)
2) Add "Wrap searches" option to Replace dialog (http://www.textpad.info/forum/viewtopic.php?p=20253)
I was about to post a new enhancement suggestion about adding a "Scope" of "Bookmarked lines" to the replace function -- glad I searched through the already-posted messages first! I like the proposal to merge find and replace.
You know how, in vi/ex regular expressions, there are two different places in the expression for 1) what you're searching for (i.e., how to find the lines on which you want to do the replacement) and 2) the actual string or expression to replace (and of course, a third place for what to replace it with)?
For example, I want to add a trailing colon on every line that contains the text "PROCEDURE" (no matter what's after it). In vi, I would do In TextPad, I can do this only by bookmarking all the PROCEDURE lines, and then ... er, that's where I need the enhancement. OK, I know I could use regex to match the whole rest of the line and then substitute it back in with \1, but what a pain!
Wouldn't it be great for the replace dialog box to have three input fields: #1 is what to search for, #2 is what to replace on those targets, and #3 is the replacement string? If you leave box 2 empty, it defaults to the content of box 1.
Anyway, I'm glad I found this list.
You know how, in vi/ex regular expressions, there are two different places in the expression for 1) what you're searching for (i.e., how to find the lines on which you want to do the replacement) and 2) the actual string or expression to replace (and of course, a third place for what to replace it with)?
For example, I want to add a trailing colon on every line that contains the text "PROCEDURE" (no matter what's after it). In vi, I would do
Code: Select all
g/PROCEDURE/s/$/:/
Wouldn't it be great for the replace dialog box to have three input fields: #1 is what to search for, #2 is what to replace on those targets, and #3 is the replacement string? If you leave box 2 empty, it defaults to the content of box 1.
Anyway, I'm glad I found this list.
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm