editor.showFind initial search string param

Hello!

This is a very non-urgent request/question. Previously, the showFind method of the editor object had 2 optional parameters:

  1. initial search text (string);
  2. preferAdvancedFind (bool)

I noticed a while back the signature changed to only include the preferAdvancedFind boolean. Would it be very annoying to add back the optional search string, perhaps as second param?

(As i was writing this, it occured to me that the change might have something to do with the addition of ‘search history’ submenu in the advanced Find/Replace window, which is faaar more useful and, if so, is probably a huge pain to redo, in which case nvm!)

I’m currently on the latest ios beta — 49.1 (702) — if that is relevant.

thanks!!

1 Like

Looks like the docs did not get updated correctly. The initialQuery parameter is supported, it should be the second parameter, like editor.showFind(true, "query")

2 Likes

Many thanks and happy new year!