# Global search and keyboard shortcuts

> How to use CNPJá global search with Ctrl+K to find CNPJs, partners, CEPs and documentation, plus the complete table of keyboard shortcuts in the app.

Global search finds companies, partners, CEPs and documentation pages from a single field, on any screen. It sits in the middle of the app header and in the website header (on a phone, behind the magnifier icon) and opens with `Ctrl+K` (`⌘K` on a Mac). It works with or without an account.

## Open the search

1. Press `Ctrl+K` (`⌘K` on a Mac) or click the **Search CNPJ, partners, CEP or docs** field, at the top of the screen. On a phone, tap the magnifier.
2. Type at least 2 characters. The search starts as soon as you pause typing.
3. Use `↑` and `↓` to pick a result and `Enter` to open it, or click it.
4. To close it, press `Esc` or `Ctrl+K` again. On a phone, tap the close button.

The search always opens blank. The same field shows in the body of some pages: on the website home page, in the help center, where it opens on the **Documentation** tab, and on the **This page isn't in the app** page.

## What the search finds

| Tab | What you can type | What each result shows |
| --- | --- | --- |
| **CNPJ** | Name, CNPJ or address | Legal name, CNPJ, municipality and state, and the registration status |
| **Partners** | Name, CPF or CNPJ | Name, CPF or CNPJ, the first company the person takes part in and how many more, and the person type |
| **CEP** | CEP or address | CEP, address, district, municipality and state, and the status when the CEP is not active |
| **Documentation** | Any topic | The section found, an excerpt of it and the page |

- *CPF:* a complete CPF finds the partner by digits 4 to 9, the only ones the Receita Federal discloses ([Masked CPF](https://cnpja.com/en-us/docs/data/partners-and-qsa#masked-cpf)).
- *Highlight:* the part of each result that matches what you typed is marked.
- *Words:* how names, accents and punctuation are compared is explained in [Words, accents and punctuation](https://cnpja.com/en-us/docs/data/search-matching#text-matching).

## A complete CNPJ opens directly

A complete, valid CNPJ, with or without punctuation, numeric or [alphanumeric](https://cnpja.com/en-us/docs/data/alphanumeric-cnpj), opens its record right away, skipping the result list.

- The CNPJ must be the only thing typed. With other words alongside it, the search looks for the text as usual.
- A CNPJ with wrong check digits doesn't open the record and is searched as text.
- If the CNPJ isn't on file at the Receita Federal, the record opens saying it wasn't found ([When a record won't open](https://cnpja.com/en-us/docs/companies/lookup#not-found)).

## Tabs and results

- **All** shows the sources that found something, in groups one below the other, with up to 5 results each. The source that best answers what you typed comes first, and its first result is the one `Enter` opens, unless a question puts the Coruja line ahead of it ([Ask Coruja](#coruja)).
- The **CNPJ**, **Partners**, **CEP** and **Documentation** tabs show up to 20 results from that source and, once it is known, the total found beside the name.
- Switch tabs with `Tab` and `Shift+Tab` without leaving the field, or click the tab. On a phone, the tabs show only their icons.
- With nothing typed, the search shows **Type a name, CNPJ, CPF, CEP or any documentation topic.** With no results, it says nothing was found for the term.
- If one of the sources fails, it shows empty and the others keep answering.

## Ask Coruja

Once you are logged in, the **All** and **Documentation** tabs also bring **Ask Coruja**, a line with what you typed, among the result groups. It never sends anything on its own: only when you click it, or pick it with `Enter`, does [Coruja](https://cnpja.com/en-us/docs/app/coruja) open in a new chat with what you typed.

- *Order:* a question or a request, with a `?` or starting with a word such as *how*, *what* or *find*, such as *how do I export a list?* or *find the companies opened today*, puts the line first, and `Enter` picks it. A name of one or two words stays below the results that find it whole, even when it starts with one of those words. A sentence of four words or more, with no bare numbers, comes after the groups that find each of its words, and a short name, an address with a number, a number, an e-mail or a domain put the line last.
- *No results:* the line stays, and the search says below it that nothing was found for the term.
- *On the website:* the line takes you to the app's **Dashboard**, with Coruja open on the new chat.

## See all results

When a source finds more than it shows, the last line of its group says how many results there are in all (for example, **See all 1,234 results**). It opens that source's full search with your term already in it, where you can add filters and page through:

| Source | Opens in | Guide |
| --- | --- | --- |
| CNPJ | **Search CNPJ** | [Search CNPJs](https://cnpja.com/en-us/docs/search/companies) |
| Partners | **Search partners** | [Search partners](https://cnpja.com/en-us/docs/partners/search) |
| CEP | **Search postal codes** | [Search CEPs](https://cnpja.com/en-us/docs/postal-codes/search) |

The documentation has no such line. If what you are looking for didn't show up, try other words.

## Documentation results

- *What's included:* the help center, the API documentation, the terms and policies, and the website's product and segment pages.
- *Where it lives:* on wide screens, each result shows the space it comes from, **Help**, **API**, **Legal** or **Site**, and the page title.
- *Sections:* each page shows up with at most two sections, the ones that best match what you typed. In guides and documents, a click goes straight to the section; on website pages, to the page.
- *Order:* the page title weighs more than the section title, which weighs more than the text. Guides weigh more than the legal documents they explain and, within the documentation, pages of the space you are in weigh more.
- *Typing:* the search ignores case and accents, tolerates small typos in words longer than three letters and completes the last word typed.

How to read and navigate the documentation is in [Using these docs](https://cnpja.com/en-us/docs/support/using-the-docs).

## Keyboard shortcuts

| Key | Where | What it does |
| --- | --- | --- |
| `Ctrl+K` (`⌘K` on a Mac) | Any screen of the app and the website | Opens and closes global search |
| `Ctrl+J` (`⌘J` on a Mac) | Any screen of the app | Opens and closes [Coruja](https://cnpja.com/en-us/docs/app/coruja) |
| `↑` and `↓` | Global search, menus and option lists | Moves the selection |
| `Enter` | Global search, menus and option lists | Opens or picks the selected item |
| `Tab` and `Shift+Tab` | Global search | Switches tabs without leaving the field |
| `Esc` | Global search, menus, dialogs, the help drawer and Coruja's highlights and tours | Closes |
| `Ctrl+B` (`⌘B` on a Mac) | Apps with a sidebar, on wide screens | Collapses or opens the sidebar |
| `Tab`, right after a page opens | Any screen of the app | Shows **Skip to content**, which moves the focus straight to the page content |
| `Enter` | The **Search postal codes** field, with a complete CEP | Opens the CEP record |
| `Enter` and `Esc` | While renaming an API key | Saves the new name or undoes the change |
| `Enter` and `Shift+Enter` | Coruja's message field | Sends the message or starts a new line |
| `←` and `→` | Coruja's tours | Goes back or forward one step |
| `←` and `→` | The edge of Coruja's panel, with the focus on it, on wide and medium screens | Widens or narrows the panel |

In the **Network**, with the focus on the drawing:

| Key | What it does |
| --- | --- |
| Arrows | Walk between nodes |
| `Enter` | Shows the node's data or expands it |
| `Home` | Goes back to the origin |
| `Esc` | Releases the selection |
| `+`, `-` and `0` | Zoom in, zoom out and frame the drawing |
| `Del` or `Backspace` | Removes the node from the network, except the origin |

Mouse and touch gestures are covered in [Move, pin and navigate](https://cnpja.com/en-us/docs/partners/network#gestures).

## Quota usage

Global search doesn't use the organization's quota ([What is not charged](https://cnpja.com/en-us/legal/metering#not-charged)) and, without an account, doesn't count toward the [limit on use without an account](https://cnpja.com/en-us/docs/billing/limits#guest). Opening a result uses whatever that screen uses, such as a CNPJ record or a partner or CEP record ([Consumption on the web Platform](https://cnpja.com/en-us/legal/metering#platform)).
