Tutorial: Toolbar Search


A quick way to search through the current editor or documentation page is to enter your search string into the toolbar's search field. In Wing's Modern and Emulate user interface looks this is the Search files & commands field toward the right end of the toolbar; in the Classic look it is the search area in the toolbar:

/images/doc/en/intro/toolbar-search.png/images/doc/en/intro/toolbar-search.png

If you enter only lower case letters, then the search will be case-insensitive. Entering one or more upper-case letters causes the search to become case-sensitive.

Try this now in example1.py: Type GetItem into the toolbar search field. Wing will search incrementally, starting when the first letter is typed. Press the Enter key to move on to the next match, wrapping around to the top of the file if necessary.

Toolbar-based searches always go forward in the file from the current editor caret position.

See Toolbar Quick Search for details.

Searching Files and Commands

In the Modern and Emulate looks, the same field also finds project files, commands, tools, preferences, and documentation pages by name. In the default keyboard personality, Ctrl-K, or Command-K on macOS, moves the keyboard focus into it.

Try this now: Click on the field and type test. Wing lists the best matches as you type, starting with test_example1.py and followed by the Testing tool, commands, preferences, and documentation pages:

/images/doc/en/intro/command-field.png/images/doc/en/intro/command-field.png

Use the arrow keys to select a match and press Enter to open the file, run the command, show the tool, open Preferences at the preference, or open the documentation page. Press Esc to clear the field and return to the editor. When the field is empty, it lists recently opened files instead.

See User Interface Look for details.