# Tags, ratings and comments

> Give any file tags, a rating and a comment. Skwir keeps them on the files, where your other applications read them too.

Page: https://skwir.org/docs/tags-ratings-and-comments

## Add them

- **Tags**: select files and press Ctrl+Shift+G (or right-click › *Tags › Edit Tags…*). Click a tag to put it on every selected file, again to take it off; type a new one and press Enter. Ctrl+Enter applies.
- **Rating and comment**: open **Properties** (Ctrl+I) and use *Add…* or *Edit…*, or click a star. Click the stars a file has to take the rating away.

Tags are drawn as the same chips everywhere: in every view, in the sidebar, the menus, the address’s trail, the preview’s header and Properties. Each chip has its name, giving way to dots, then to *+N*, as room shrinks; on the grid’s tiles, tags are named where the tiles are large enough. Pinned tags come first, and a tag named after its color is a dot of that color. A tag has its menu wherever a file shows it, and pointing at a tag in the sidebar rings its files.

Sort by *Rating* from the View menu; search with `#holiday` (or `tag:holiday`) and `rating>=4`. A change of notes is undone with Ctrl+Z, like any other.

## Where they are kept

Notes are kept on the files, where other applications keep them:

- the file’s **extended attributes**, as Dolphin and KDE do;
- **XMP sidecars** (`photo.jpg.xmp`), as darktable and Lightroom do;
- a **Mac’s tags**, and its `._` files on drives without attributes;
- **TagSpaces’** sidecars and tags in names (`name[a b].ext`), and filetags’ names (`name -- a b.ext`) once turned on.

*Settings › Tags and notes* chooses which to read and which to write. When two disagree, the latest change wins and Properties says so; its *Kept in* line says where a file’s notes are. A sidecar goes wherever its file goes.

## Tags in names

*Notes › Tags into Name* and *Tags out of Name*, in a selection’s menu, rename files to hold their tags or to drop them. Set a name’s *Write* to *Update existing* (*Settings › Tags and notes*, Tags in names) and adding or taking off a tag also renames a file whose name already holds tags: `IMG[vacation].jpg` becomes `IMG[vacation alps].jpg`. Undo takes back both. A name holds no spaces or categories; those stay in the other stores.

## Categories

A tag can sit inside another: `Places/France/Paris` is within `Places/France`, within `Places`. A search for `tag:Places` finds all three. A category can hold **one tag at a time**: giving a file `Status/Done` then takes `Status/Draft` off it.

## Tags are places

Every tag opens like a folder, listing its files from everywhere, with a Folder column and [Quick filters](https://skwir.org/docs/searching#quick-filters) to narrow them by their other tags and kinds.

- **All Tags**, in the sidebar, lists the tags of your home folder, outside the folders searches leave out. A tagged hidden file or folder (`~/.config`) is listed while hidden files are shown (Ctrl+H), and a tag with only hidden files says so. **The Tags button** at the end of the address (Alt+G) shows the tags of the folder you are in, and takes you back.
- **Drop files on a tag** to tag them. **Delete** in a tag takes the tag off the selected files; nothing goes to the Trash.
- Ctrl+Shift+N makes a tag inside the one shown; F2 on a tag renames it everywhere, as a plan to review.
- **Pin** the tags you use to the sidebar. Shift+click a pinned tag to keep only what has it too; Alt+click to look for it in the folder shown. Each pinned tag is also a command, which *Settings › Keyboard* can give a key.
- **Find in a tag** as in a folder: Ctrl+Shift+F filters the tag’s own files and the tags within it, Ctrl+F every file of the tags within it too. The switch at the top reads *This tag* or *With sub-tags* (in All Tags, *These tags* or *Every tagged file*). Words filter as you type; `content:` and the other terms that read the files search when you press Enter.

*The Studio folder’s tag “coast”: its files, and what they can be narrowed to.*

## Copies keep them

A **move** always keeps a file’s notes. A **copy** keeps its tags, rating, comment and where a download came from, onto a drive without attributes too: Skwir writes them where that drive can hold them (*Settings › Tags and notes*).
