Replace All

General questions about using TextPad

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

Post Reply
gcotterl
Posts: 252
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Replace All

Post by gcotterl »

Why do I have to do EDIT/SELECT ALL [b]before[/b] I use SEARCH/REPLACE ALL?

If I don't, only one phrase will be replaced.
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

You don't need to. But make sure in the Replace dialog, Scope is set to Active document.
gcotterl
Posts: 252
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Post by gcotterl »

"Active Document" is ticked.
gcotterl
Posts: 252
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Post by gcotterl »

I just downloaded and installed TextPad version 8.4.0.

The REPLACE ALL problem seems to have been resolved.

I'll let you know if the problem reoccurs
gcotterl
Posts: 252
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Post by gcotterl »

I downloaded and installed TextPad 8.5.1.

"REPLACE ALL" now seems to work OK (I no longer need to "SELECT ALL" before using "REPLACE ALL").
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

If there is no current selection, the search text is initialised with the previous selection and Active document is selected.
If there is a current selection and it does not contain a newline, the search text is initialised with the current selection and Active document is selected.
If the current selection contains a newline, the search text is initialised with the previous selection and Selected text is selected.

Thus TextPad is quietly doing what you usually want, but occasionally you have to adjust the settings.
gcotterl
Posts: 252
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Post by gcotterl »

The cursor is at the top (before the first character) of the active document (i.e., the document on the screen).

The "Find What" box contains the expression to be replaced.

The "Replace with" box contains the replacement expression

For "Scope", "Active Document" is ticked.
Post Reply