# Keyboard

Source: https://laraport.app/docs/keys/

> Every keyboard shortcut of laraport, screen by screen, from the home screen and servers to containers and their tools. Press ? on any screen for its keys.

`?` on any screen shows its keys. This page collects them.

## Everywhere

| Key | Action |
|---|---|
| `↑` `↓` `j` `k` | Move |
| `enter` | Open, run |
| `esc` | Back, close |
| `?` | Keys of this screen |
| `ctrl+k` | Command palette |
| `ctrl+p` | [Jump to a container](https://laraport.app/docs/interface/#jump-to-a-container) or server |
| `pgup` `pgdn` | Page |
| `f2` | Line wrapping |
| `ctrl+c` | Quit |

While you type in a text field, `ctrl+k` and `ctrl+p` go to the field.

## Confirmations

| Key | Action |
|---|---|
| `y` | Yes |
| `n` `esc` | Cancel |
| `←` `→` | Choose a button |
| `enter` | Press the focused button (**Cancel** by default) |

## Home screen

| Key | Action |
|---|---|
| `a` / `e` / `d` | Add / edit / delete a server |
| `i` | Import servers from `~/.ssh/config` |
| `c` | Check every server |
| `h` | Journal of every server |
| `s` | Settings |
| `q` | Quit |

## Server form and settings

| Key | Action |
|---|---|
| `↑` `↓` | Fields |
| `←` `→` | Choose a value |
| `space` | Toggle |
| `ctrl+t` | Test the connection (server form) |
| `ctrl+s` | Save |
| `esc` | Close |

## Import from ~/.ssh/config

| Key | Action |
|---|---|
| `space` | Choose or unchoose a host |
| `a` | All or none |
| `enter` | Import |
| `esc` | Close |

## Journal

| Key | Action |
|---|---|
| `enter` | Entry in full |
| `a` | This server or every server (when opened from a server) |
| `r` | Reload |

## Container list

| Key | Action |
|---|---|
| `/` | Filter |
| `l` | Logs; on a group header, the group's logs |
| `t` | Shell |
| `f` | Files |
| `s` / `x` / `R` / `D` | Start / stop / restart / remove |
| `e` | Container settings |
| `.` | Hidden containers and old tasks |
| `v` | Grouping on or off |
| `enter` `space` | On a group header: collapse |
| `i` | Images, volumes and networks |
| `E` | Events of the server |
| `g` | Server cleanup |
| `p` | Server panel: full or one line |
| `r` | Refresh |

## Events

| Key | Action |
|---|---|
| `b` | Problems only, or all events |
| `t` | 24 hours, 1 hour, 7 days |
| `r` | Reload |

## Container screen

| Key | Action |
|---|---|
| `←` `→` `tab` | Switch tabs |
| `1`–`6` | Jump to a tab |

## Stats

| Key | Action |
|---|---|
| `c` / `m` | Sort processes by CPU / memory |

## Swarm service tasks

| Key | Action |
|---|---|
| `enter` | Task in full |
| `u` | Redeploy the service |
| `b` | Roll back the service |
| `S` | Scale the service |
| `r` | Reload |

## Logs

| Key | Action |
|---|---|
| `/` | Search |
| `enter` | Newest match (while searching) |
| `n` / `N` | Next / previous match |
| `l` | Level filter |
| `]` / `[` | Next / previous error |
| `f` `end` | Follow |
| `g` / `G` | Top / bottom |

In the Laravel logs picker, `e` opens the errors summary of a file.

## Errors summary

| Key | Action |
|---|---|
| `enter` | Latest occurrence with its stack trace |
| `o` | Order by count or by latest |
| `a` | Read the whole file (logs over 64 MB) |
| `l` | Open the log |
| `r` | Reload |

## Tinker

| Key | Action |
|---|---|
| `ctrl+r` `f5` | Run |
| `esc` | Stop |
| `ctrl+p` / `ctrl+n` | History |
| `ctrl+l` | Clear output |
| `pgup` `pgdn` | Scroll the output |

## Artisan, Composer and npm

| Key | Action |
|---|---|
| `enter` | Run the typed or selected command |
| `ctrl+t` `alt+enter` | Run it in the terminal, for commands that ask questions |
| `↓` `tab` / `↑` | Move through the recent commands and the suggestions |
| `pgup` `pgdn` | Page through the list |
| `ctrl+d` | Forget the selected recent command |
| `esc` | Clear the selection, then back |

## Schedule

| Key | Action |
|---|---|
| `enter` | Task in full |
| `t` | Run the task now (`schedule:test`) |
| `r` | Reload |

## Routes

| Key | Action |
|---|---|
| `/` | Filter (`esc` clears it) |
| `enter` | Route in full |
| `v` | Hide or show package routes |
| `r` | Reload |

## Queues and Horizon

| Key | Action |
|---|---|
| `tab` `1`–`6` | Tabs (Horizon) |
| `enter` | Job in full |
| `r` / `D` | Retry / forget a failed job |
| `A` / `F` | Retry all / forget all |
| `C` | Clear a queue (Horizon, Pending) |
| `p` / `T` | Pause or continue / terminate Horizon |
| `ctrl+r` | Reload |

## Environment

| Key | Action |
|---|---|
| `v` | Show secrets |
| `o` / `O` | Compare with another container / back |
| `e` | Edit `.env` |

## Table list

| Key | Action |
|---|---|
| type | Filter |
| `enter` | Browse the table |
| `tab` | Structure |

## Table view

| Key | Action |
|---|---|
| arrows `h` `j` `k` `l` | Move |
| `0` / `$` | First / last column |
| `g` / `G` | First / last row |
| `n` / `p` | Page |
| `s` | Sort |
| `/` | `WHERE` filter |
| `i` | Structure |
| `e` / `a` / `D` | Edit cell / add row / delete row |
| `x` / `X` | Export CSV / JSON |
| `y` | Copy cell |
| `r` | Reload |

In the cell editor and the add-row form, `ctrl+n` sets NULL and `ctrl+s` saves.

## Redis keys

| Key | Action |
|---|---|
| `/` | Edit the pattern |
| `enter` | Value |
| `D` | Delete the key |
| `r` | Scan again |

## Tunnel

| Key | Action |
|---|---|
| `u` | Copy the URL, with the password |
| `p` | Copy the password |
| `esc` | Close the tunnel |

## Restore a dump

| Key | Action |
|---|---|
| `↑` `↓` | Fields |
| `ctrl+s` | Restore |
| `esc` | Close |

## Files

| Key | Action |
|---|---|
| `enter` | Open |
| `backspace` | Up |
| `F3` `v` | View |
| `F5` `d` | Download |
| `F6` `u` | Upload |
| `/` | Filter |
| `s` / `S` | Sort / reverse |
| `.` | Dotfiles |
| `~` | App root |
| `r` | Refresh |

In the upload prompt, `tab` completes the path.

## File viewer

| Key | Action |
|---|---|
| `g` / `G` | Top / bottom |
| `c` | Colours |
| `n` | Line numbers |
| `f2` | Wrap |
| `e` | Edit |
| `d` | Download |

In the editor, `ctrl+s` shows the diff and saves.

## Images, volumes and networks

| Key | Action |
|---|---|
| `tab` `1`–`3` | Tabs |
| `D` | Remove |
| `P` / `A` | Prune unused / all unused images |
| `u` / `p` | Check for updates / pull |
| `r` | Reload |
