<!-- Generated by website/scripts/sync-docs.mjs from docs/guide/tui.md. Edit that file, not this one. -->

# Keybindings and configuration

> Every page of this site: https://dyokto.github.io/y509/docs/llms.txt

Opening a target without a subcommand starts the TUI.

## Keybindings

|     Key     | Action                                         |
| :---------: | :--------------------------------------------- |
| `↑/k` `↓/j` | Navigate list                                  |
| `←/h` `→/l` | Focus list / details                           |
|    `tab`    | Switch pane                                    |
|   `[` `]`   | Cycle through the details tabs                 |
|   `K` `J`   | Scroll the details                             |
|     `/`     | Search                                         |
|     `f`     | Filter (expired, expiring, valid, self-signed) |
|     `v`     | Validate certificate                           |
|     `p`     | Check against every bundled trust store        |
|     `r`     | Redial the server (live connections only)      |
|     `e`     | Export certificate (filename + format form)    |
|     `y`     | Copy selected certificate as PEM (OSC52)       |
|    `esc`    | Clear filter / close popup                     |
|     `?`     | Help                                           |
|     `q`     | Quit                                           |

## Configuration

`~/.y509.yaml`. Catppuccin Mocha by default.

```yaml
# Max "expiring soon" window in days (default 30). The actual window is the
# smaller of this and a third of the certificate's lifetime, so a 6-day
# certificate warns at 2 days left.
expiry_warning_days: 30

theme:
  text: "#cdd6f4"
  border: "#45475a"
  border_focus: "#89b4fa"
  background: "#1e1e2e"
  status_bar: "#181825"
  status_bar_text: "#cdd6f4"
  command_bar: "#313244"
  command_bar_text: "#cdd6f4"
  error: "#f38ba8"
  highlight: "#89b4fa"
  highlight_text: "#1e1e2e"
  highlight_dim: "#313244"
  status_valid: "#a6e3a1"
  status_warning: "#f9e2af"
  status_expired: "#f38ba8"
  title: "#89dceb"
  section_title: "#b4befe"
  detail_key: "#9399b2"
  list_row_alt: "#181825"
```
