Jump to content
You must now use your email address to sign in [click for more info] ×

Find and replace now includes scope and result count


Recommended Posts

  • Staff

Apps: Publisher
Platforms: All

The find and replace panel in Publisher now includes the ability to limit the scope of the search to document, current spread or page, current story, current selection or current section. Also included is a result count to quickly show the number of instances your search criteria fulfils.

Desktop:

Screenshot 2023-06-28 at 08.04.25.png

 

For iPad the scope option is available from the Cog button next to the search field:

image.png

Managing Director

Help make our apps better by joining our beta program!


MacBook Pro (16-inch, 2021) / Apple M1 Max / 64GB / macOS 12.0.1

iPad Pro 11-inch 3rd Gen / iPadOS 16.2

Link to comment
Share on other sites

The function seems to not work for me in 2 cases.
1. If you select "Selection" in Scope from the drop-down list, and do not select anything on the page, the function searches anyway.

2. If you select a text frame, the function finds the word in it. But if you click inside the frame and then immediately click the Move Tool button and search again, you won't get any results, even if the frame is still selected.

 

Link to comment
Share on other sites

  • Staff

For point 2 when the frame is selected I would expect the search to work as the selection is the text frame. Clicking inside moves the selection to be inside the text frame and in this case there are no characters selected.

Link to comment
Share on other sites

4 hours ago, Intuos5 said:

Could this be expanded to Designer, so you get the option to filter for artboards there as well?

Find and Replace doesn't exist in Designer at all. But it might be nice to include an Artboard option in this new scoping function, along with Spread, for the cases where you're working on a document that has Artboards rather than Spreads.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

  • 2 weeks later...

This enhancement works very well, thanks.

It would be nice if Publisher could:

  • change search scope automatically to Selection from Document, Spread, or Story if a range of text is selected, rather than deselecting the range and finding the next result in the document, spread, or story
  • change scope automatically to Document from Selection if no range of text is selected, rather than finding no results

Thanks

Download a free manual for Publisher 2.4 from this forum - expanded 300-page PDF

My system: Affinity 2.4.2 for macOS Sonoma 14.4.1, MacBook Pro 14" (M1 Pro)

Link to comment
Share on other sites

  • 2 weeks later...

This is a welcome change. One minor point: is there any reason why one can’t select the scope before search parameters are entered? If the search field is empty, and no find by format is select, then the scope drop down is disabled, retaining its previous selection. It just seems arbitrary, because scope, while a very welcome addition, is also a common point of user error where we forget to set it to the correct scope for a given search. So imagine this scenario that sounds like just the kind of thing I would do:

  1. Begin a new search.
  2. Notice that scope is still left at a previous setting that is not fitting for the current task. Normally I would wish to change it when I notice it, but I cannot do so with an empty search string.
  3. So, I start working on the search string. Often it is regex, so my mind is fully occupied in working out the desired regex, maybe even hopping back and forth with some tool such as my beloved regex101.com.
  4. My mind has moved away from the question of scope, as I have forgotten to come back and change scope.

I run the find (and maybe replace), and the results weren’t what I expected. It is not an end-of-the-world scenario, because often I would notice, fix scope, and run again. Occasionally I might miss it, with consequences showing up only later when my scope was larger than I thought, or things not fixed that I thought I had fixed because the scope was narrower than I intended.

The point is that I would like to be able to set scope as soon as it crosses my mind, because I cannot be sure that it will cross my mind again until it is too late.

Link to comment
Share on other sites

47 minutes ago, garrettm30 said:

One minor point: is there any reason why one can’t select the scope before search parameters are entered? If the search field is empty, and no find by format is select, then the scope drop down is disabled,

Works OK on Windows.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

I am having issues with find and replace of mor than 9.000 results of "<>" in my document.

Publisher stops responding when clicking "replace all".

Replacing them one-by-one works, so I'll manually replace a few hundred and try to find out where the line is where it crashes. Bit annoying, though ...

9300 results -> stops responding, needs restart
6800 results -> stops responding, needs restart
5000 results -> stops responding, needs restart
2500 results -> stops responding, needs restart

Cutoff point seems to be somewhere about 1.500 results.

Link to comment
Share on other sites

Hi @Jens Krebs,

I'm not seeing any immediate issue testing with around 85,000 instances of "<>" though I appreciate the instances of "<>" you have will be spread throughout a more complex document. What is the total word count and number of pages for the document in question...

 

Affinity Designer 2.4.2 | Affinity Photo 2.4.2 | Affinity Publisher 2.4.2
Affinity Designer  Beta 2.5.0 (2415) | Affinity Photo Beta 2.5.0 (2415) | Affinity Publisher Beta 2.5.0 (2415)

Affinity Designer 1.7.3 | Affinity Photo 1.7.3 | Affinity Publisher 1.10.8
MacBook Pro 16GB, macOS Monterey 12.7.4, Magic Mouse

Link to comment
Share on other sites

It's about 160 pages with about 60 different text styles and about 150 images.

The "<>" that needs removing are leftovers from HTML commands that are spread throughout the text.

As I haven't had any find-replace issues in the version 2.0 and 2.1 and fewer find-replace commands in 2.2 have worked fine, I'll update the post above as soon as I have found the cutoff point when it stops working.

I remember InDesign having something similar a few years ago, find-replace stopped working in texts with more than 10.000 characters and it messed up the ,replace' part by adding the numer "1" to the replaced text after the limit was reached. Fun times. 🙂

Update:
Cutoff point seems to be somewhere about 1.500 results.

Link to comment
Share on other sites

1 hour ago, Jens Krebs said:

As I haven't had any find-replace issues in the version 2.0 and 2.1 and fewer find-replace commands in 2.2 have worked fine, I'll update the post above as soon as I have found the cutoff point when it stops working.

Are you saying this is only an issue in 2.2, and this works fine with your file in 2.0 and 2.1? If so, can you share the file?

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

On occasion if I have Story selected for the Scope I will have as a result absolutely everything is found. I noticed this when searching for text that is italicized. I used the Regex (.+) for the search string and Format Italic on.

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

20 hours ago, Old Bruce said:

On occasion if I have Story selected for the Scope I will have as a result absolutely everything is found. I noticed this when searching for text that is italicized. I used the Regex (.+) for the search string and Format Italic on.

It reproduces easily for me. Sample document and video attached. Before the video, I created italic words in the expanded Filler Text by selecting some random words and clicking the "I" button in the Context Toolbar. The Document and Spread scopes for the Find work fine, but Story finds the complete text of every paragraph.

 

 

find-italic-bug.afpub

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

4 minutes ago, Seneca said:

I've just tested your file on MacOSX with the latest Publisher Beta (1903) and I can't reproduce it.

Likewise, I see the following on macOS:

Walt | Mac

Doc - 6 | 18
Spread - 2 | 7
Story - 108 | 18
Selection - n/a | 18

Affinity Designer 2.4.2 | Affinity Photo 2.4.2 | Affinity Publisher 2.4.2
Affinity Designer  Beta 2.5.0 (2415) | Affinity Photo Beta 2.5.0 (2415) | Affinity Publisher Beta 2.5.0 (2415)

Affinity Designer 1.7.3 | Affinity Photo 1.7.3 | Affinity Publisher 1.10.8
MacBook Pro 16GB, macOS Monterey 12.7.4, Magic Mouse

Link to comment
Share on other sites

2 minutes ago, Hangman said:

Likewise, I see the following on macOS:

Apologies for hiding my earlier post @Hangman.

I reran the test with the Find Field: (.)+ and then I got the same results as Walt.

One might argue that we don't need anything in the Find Field to find all occurrences of italics.

It seems that the Find Field trumps any additional specs included in the Format Dialog which might be a bug. 

2017 27” iMac 4.2 GHz Quad-Core Intel Core i7 • Radeon Pr 580 8GB • 64GB • Ventura 13.6.4.

iPad Pro (10.5-inch) • 256GB • Version 16.4

Link to comment
Share on other sites

10 minutes ago, Seneca said:

I reran the test with the Find Field: (.)+ and then I got the same results as Walt.

Strange, I've tried it with (.+) and (.)+ and I get the same results. i.e., neither of which matches @walt.farrell's 🤔

10 minutes ago, Seneca said:

It seems that the Find Field trumps any additional specs included in the Format Dialog which might be a bug.

I think this has been raised before though I'm unsure if it's been logged as a bug...

Affinity Designer 2.4.2 | Affinity Photo 2.4.2 | Affinity Publisher 2.4.2
Affinity Designer  Beta 2.5.0 (2415) | Affinity Photo Beta 2.5.0 (2415) | Affinity Publisher Beta 2.5.0 (2415)

Affinity Designer 1.7.3 | Affinity Photo 1.7.3 | Affinity Publisher 1.10.8
MacBook Pro 16GB, macOS Monterey 12.7.4, Magic Mouse

Link to comment
Share on other sites

2 minutes ago, Hangman said:

Strange, I've tried it with (.+) and (.)+ and I get the same results. i.e., neither of which match @walt.farrell's 🤔

And @Old Bruce also seems to be on Mac, and got results like I got on Windows.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

10 minutes ago, walt.farrell said:

And @Old Bruce also seems to be on Mac, and got results like I got on Windows.

Curiouser and curiouser thought Alice...

A bit of a long shot but I think @Old Bruce is on Big Sur, I'm on Monterey and @Seneca is on Ventura but I'd be amazed if that is a factor...

Affinity Designer 2.4.2 | Affinity Photo 2.4.2 | Affinity Publisher 2.4.2
Affinity Designer  Beta 2.5.0 (2415) | Affinity Photo Beta 2.5.0 (2415) | Affinity Publisher Beta 2.5.0 (2415)

Affinity Designer 1.7.3 | Affinity Photo 1.7.3 | Affinity Publisher 1.10.8
MacBook Pro 16GB, macOS Monterey 12.7.4, Magic Mouse

Link to comment
Share on other sites

It might be helpful to sue a simpler test doc.

This is what I'm seeing on macOS [edit] when searching for a word in italics [/edit]:

  • For a story with a single frame, choosing Story will find just the result in that frame.
  • For a story with two linked frames, choosing Story will find two copies of each result in that story.
  • For a story with three linked frames, choosing Story will find four copies of each result in that story.

story.afpub

 

Download a free manual for Publisher 2.4 from this forum - expanded 300-page PDF

My system: Affinity 2.4.2 for macOS Sonoma 14.4.1, MacBook Pro 14" (M1 Pro)

Link to comment
Share on other sites

Um, that's not what I'm seeing... 🤔

  • For a story with a single frame, choosing Story will find just the result in that frame.
  • For a story with two linked frames, choosing Story will find one copy of each result in that story.
  • For a story with three linked frames, choosing Story will find one copy of each result in that story.

Edit: Ignore this screen recording and the comments above - user error!

Affinity Designer 2.4.2 | Affinity Photo 2.4.2 | Affinity Publisher 2.4.2
Affinity Designer  Beta 2.5.0 (2415) | Affinity Photo Beta 2.5.0 (2415) | Affinity Publisher Beta 2.5.0 (2415)

Affinity Designer 1.7.3 | Affinity Photo 1.7.3 | Affinity Publisher 1.10.8
MacBook Pro 16GB, macOS Monterey 12.7.4, Magic Mouse

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.