> ## Documentation Index
> Fetch the complete documentation index at: https://wandersort.utkarshchourasia.in/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# TUI

> Do everything on screen with `wandersort`.

```bash theme={null}
wandersort
```

It opens full screen on the **Add** tab. The first time, it first downloads ExifTool and the place-name database. It opens the library you used last; a new one is created the first time you plan folders.

The top line shows four tabs: **Add**, **Organise**, **Copy** and **Settings**. `shift+tab` or a click moves to another; a `●` marks a tab with something waiting. Every screen shows its main keys at the bottom, and `?` shows them all.

## Add

Drag a folder onto the terminal to add it, or type its path and press `enter`; `tab` completes the name. Press `enter` on an empty line to start adding every folder listed. It keeps going if you switch tabs.

When it ends, choose **Organise folders** to edit the plan, **Copy into library** to copy it as it is, or **Add more folders**. If there is nothing new to copy, you go straight back to Add.

| Key | Does |
| - | - |
| drop | add a folder dragged onto the terminal |
| `enter` | add the folder typed; on an empty line, start adding the folders listed |
| `tab` | complete the folder name |
| `↑ ↓` | on an empty line: recent folders |
| `ctrl+x` | remove the last folder |
| `ctrl+g` | add again, reading every file again (slower) |
| `ctrl+r` | discard the plan: forget the files not copied yet |

## Organise

The planned folder tree, before anything is copied. Folders marked `+` (in blue) are new, made by the copy; the others are already in the library. Years and months stay fixed. Edits are kept as you make them, across sessions, and names you type are offered again later.

| Key | Does |
| - | - |
| `↑ ↓` | one folder |
| `← →` | previous / next at this level |
| `p` | peek at a few of its photos |
| `r` | rename |
| `space` | select folders (or `shift+↑ ↓`), then `m` to merge them into one, `x` to remove a folder (what's inside moves up a level), or `f` to flatten (everything below moves into it) |
| `u` | undo; again to keep going back |
| `ctrl+u` | undo every edit |
| `esc` | done; edits are kept for copy |

## Copy

Applies your edits and copies every file in, each one checked against its original. It stops before changing anything if the library's drive is short of space.

| Key | Does |
| - | - |
| `enter` | start copying |
| `esc` | not now |
| `shift+tab` | next tab; copying keeps going |
| `ctrl+c` | stop between files; the next copy carries on |
| `r` | after: open the report of files left out |
| `o` | after: open the library |

## Settings

Each row is one [setting](https://wandersort.utkarshchourasia.in/docs/usage.md#settings); `enter` changes it. A change re-plans at once. To use another library, drop a folder on the Library folder row: an existing library opens with its own settings, and any other folder starts a new one.

Emptying the library database is not on screen; use [`admin db --reset`](https://wandersort.utkarshchourasia.in/docs/usage/cli).

## Leaving

`esc` twice quits when nothing is running; while a scan or copy runs it warns instead. `ctrl+c` quits from any tab.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.