# Searching

> One field filters the folder you’re in or searches below it, as you type. A search is a place: come back to it, open it in a tab, keep it under Saved. What you filter by stays with you as you go.

Page: https://skwir.org/docs/searching

## Filter or search

The address bar is one field to go somewhere, to filter the folder you’re in, and to search below it:

- Ctrl+Shift+F **filters the folder shown**: its files are narrowed at once, as you type.
- Ctrl+F, or the magnifier at the end of the address, **searches the folder and its subfolders**, after a short pause as you type. A search that reads inside the files (`content:`), the subfolders of a server, or the whole disk where no index answers at once, waits for Enter.

While you type, either key switches to its side and keeps your words, as the switch at the top of the list does. Enter keeps what you typed and gives the files the keyboard; Esc goes back to how it was. Words typed after Ctrl+L filter the folder too, and Alt+Enter searches your home folder instead.

A search is a **place**: it has Back and Forward, opens in a tab, and every view and the preview work on it. Its address keeps the folder’s trail, with what it looks for after it. A **Folder** column says where each result is, and **Show in Folder** (Ctrl+Alt+O) goes there. In the **Tree** view, what it finds is laid out under its folders, which fold, those only on the way dimmed; the list stays flat.

### Where words look

The folder stands before your words as a token: a funnel on it for the folder alone, a magnifier for below it too. Click the token, press Alt+↓, or type `@` first to look somewhere else: the folder above, your home folder, the whole disk, a sidebar folder, a tag, or Recent. Backspace at the start takes it away. With a folder or a place highlighted in the list, Ctrl+F searches in it.

## What to ask for

What a filter or a search looks for shows after the trail as **pills**: the first says how deep it looks (press it to switch), then each part, such as *Kind: Images*. Click a pill to change it, or **+ Filter** to add one. You can also type it all as text:

| Type | To find |
| --- | --- |
| `report` | names containing “report”; `dunes jpg` finds `dunes.jpg` |
| `*.pdf`, `ext:pdf` | files by extension |
| `kind:image,video`, `mime:application/pdf` | files by kind or type |
| `type:dir`, `type:file` | folders only, files only |
| `size>10M`, `size<1.5G`, `size>10MB`, `size<2MiB` | files by size: `k`, `M`, `G` alone and `KiB`, `MiB`, `GiB` count 1024 to the next, `kB`, `MB`, `GB` a thousand, whichever way the sizes shown are counted |
| `modified>=2026-01-01`, `modified<7d`, `modified:this-week` | files by date (`created:` and `accessed:` too) |
| `taken:2023-04`, `taken:2023-04-15..2023-04-17`, `taken>=last-year` | photos and videos by when they were taken, as the camera’s clock says |
| `#print`, `tag:Places/France`, `-#draft` | files with a tag, or without |
| `rating>=3`, `comment:holiday` | files by rating or comment |
| `content:"it's here"`, `content:/re+gex/i` | files holding a text, or matching a regex |
| `near:45.0,6.0~5km` | photos taken near a place |
| `in:"~/My Files"`, `depth:2`, `hidden:true` | where and how deep to look |
| `excluded:true` | in the folders searches leave out too (`node_modules`, tools’ stores) |
| `a OR b`, `NOT a`, `(a b)` | either, not, together |

Terms side by side must all match: `*.pdf modified<7d size>10M` finds last week’s large PDFs. Dates are read in your calendar, so `modified:this-week` starts on the day your week starts. `tag:Places` also finds what is tagged `Places/France/Paris`. A word starting with `#` is a tag: quote a name that starts with one (`"#3"`), and `#` alone offers your tags.

As you type, the address colors the terms it understands, completes their values (`kind:` lists the kinds, `#` your tags, `modified:` the periods), and underlines what it can’t read before you press Enter. Plain words that read as terms, such as `pdf last week`, are offered as such under the search for the words themselves. `?` alone, F1 or the **?** inside the address lists everything it takes, keeping what you typed.

## Filters that stay

What a filter or a search says about the files themselves (a kind, an extension, a tag, a date, a size or a rating) **stays as you go**: into a folder below or above, a search, the Trash, a tag, or a tab or a split opened from the pane, until you take its pill off. The words that find names stay with the folder you typed them in.

Such a filter **looks below**: a folder shows when something inside it matches, dimmed if it does not match itself, so you can go down to what you filter by. Folders arrive as they are found, while the footer says *Looking in folders…*; one Skwir cannot look into (on a server, a link, one you may not read) stays. A name you typed, or a pattern such as `*.md`, looks in the folder shown only: press its funnel pill for the subfolders, or use `ext:md`.

- A pill that stays says so in its tooltip, and the footer counts what is shown: *12 of 340 items*.
- A folder the filters hide everything in says *Hidden by filters*, with **Show everything**.
- Esc, with nothing selected, shows the folder whole, from a search too; so does taking off the last pill.
- **Back and Forward** show each place as you left it, with the filters it had then: a folder you had not filtered yet is shown whole.
- A tab you close and open again keeps its filters, as do the last window’s tabs when Skwir starts.

## Quick filters

**Quick filters** offer what a list can be narrowed to: the tags its files have, their kinds and their years, each with a count. Click one to keep only those files, again to see them all; your choice is a filter that stays as you go, like any other.

Over a search with a tag, or a tag’s own place, they show by themselves. Elsewhere, choose *View › Quick filters* to show them above the pane’s files wherever it goes; each pane has its own, and they say why when they have nothing to offer. (Before 0.3, they were called Narrow by; before 0.4, a setting showed them everywhere.)

## Keep it under Saved

Ctrl+D, or the address’s bookmark button, keeps what is shown in the sidebar:

- a **folder** as a bookmark;
- a **search** under **Saved**, run again each time you open it, so it always shows what matches now;
- a **folder, a tag or the Trash shown with a filter** under **Saved** too, with its filter, named after it (*Pictures · kind:image*).

A saved one opens just as you kept it, whatever filters you have on; a bookmark opens with them. Rename, move or hide a saved search like any place. A folder on a server is kept by its address, so it connects again.

**Recent searches** are offered when you press Ctrl+F. Shift+Delete forgets one, and *Settings › General › Remember recent searches* turns them off. A saved or recent search runs as it was, without the filters you have on now.

## Other ways to find things

- **First letters**: type them in the list to go to the next name that starts so, accents and case aside ([Browsing](https://skwir.org/docs/browsing-and-views#moving-around)).
- **Jump** (Ctrl+J) opens the address with nothing typed: the folders you go to most, then those whose paths hold every word you type.
- **Find Similar**, in a file’s menu, searches for files of the same kind, day, size or tags.
- **The timeline** (Ctrl+Shift+L) shows only a period’s files when you click its bar, or several periods’ when you drag across them; **the map** searches the area shown.

## Where results come from

A search asks the indexes of file names that run, to go faster, then checks the files themselves, so what it shows is what is on the disk now. Each index answers only as far as it can prove, and the footer says what an answer rests on; where none answers, the search walks the folders.

- **skwird**, Skwir’s own index of names, is installed apart ([Download](https://skwir.org/download#skwird)). Below a folder it keeps live, the answer comes at once and up to date; elsewhere in your home, skwird first checks what changed, in about half a second. Skwir’s first search starts it where none runs, unless *Settings › Index* says not to.
- **plocate** answers as its database was at its last update, and the footer says when (*as of Yesterday 03:00*): a file made or renamed since is not in it. Search a folder to walk it.
- Your desktop’s index (Baloo on KDE) tells which files hold a tag, which the search then checks.

A search by content reads the files it looks at. A search finds hidden files while the pane shows them (Ctrl+H), and runs again as you turn them on or off; `hidden:true` always finds them, `hidden:false` never does.

**A word is found however its accents are written**: `café` typed finds a name written with an `e` and a combining accent, as macOS’s programs often write names, and the other way round. With case ignored, a Greek word is found whatever its final sigma. An index answers such a word with skwird 0.2.0 or later; with an older one, the search walks.

### Folders kept live, and drives

*Settings › Index* chooses the folders skwird keeps live: your own folders (Documents, Pictures…) and your bookmarks, each group following its source as folders come and go, and those you add, there or with a folder’s **Keep Live for Searches**. Where the system’s watches run short, the folders you added come first, then your folders, then bookmarks.

A removable drive can be indexed too, with skwird 0.2.0 or later. Skwir asks once as a drive is plugged in while skwird runs, and a drive’s menu in the sidebar has **Index Its Names**. A drive’s index stays on this computer, never on the drive; *Settings › Index* lists the drives indexed, each with **Forget**, and Eject lets skwird go of a drive before unmounting it.

## What searches leave out

A search walks past the folders tools fill with what they manage themselves: `node_modules`, `.git`, `~/.cargo/registry`, caches, the Trash, the kernel’s own folders (`/proc`, `/sys`) and the Nix store. *Settings › Exclusions* lists them by kind (version control, build output, toolchains, caches…), about 280 of them, each with what it holds; tag counts and the timeline leave them out too. Add your own there as a name, a path, a pattern such as `*.log` or `cmake-build-*`, or a name only beside a tool’s file (`target` beside `Cargo.toml`), or turn Skwir’s off ([Settings](https://skwir.org/docs/settings#exclusions)).

The footer says how many it walked past (*· 3 excluded*). The where pill’s **Excluded files and folders**, or `excluded:true`, searches them too, and so does a search of an excluded folder itself.

A btrfs snapshot (snapper’s, Timeshift’s, btrbk’s) below the folder searched is passed over as well, and by tag counts and the timeline: it holds the same files again. `excluded:true` searches it, and so does a search in it.
