Keyboard and mouse
Work every page of HF Local and its PostgreSQL Manager with the keyboard and the mouse, from switching pages to editing table cells.
Every page of HF Local works with the keyboard as well as the mouse: switch pages, move through lists, select several rows, open a row's menu with a right-click and edit PostgreSQL rows like a spreadsheet.
Where: anywhere in HF Local. Press ? to see the shortcuts of the page you are on.
On a Mac, use ⌘ where the tables say Ctrl. Shortcuts never act while you type in a field, such as the Logs
filter, or while a dialog is open.
Everywhere
| Key | What it does |
|---|---|
Ctrl + 1 … 9 (or Alt + 1 … 9) |
goes to a page, in the side bar's order: Control panel, Sites, Databases, Tunnel, Mail, Logs, PHP, Components, Docker |
Ctrl + K, Ctrl + F |
the page's search or find (Logs: the filter; Mail: find in the open email) |
F5, Ctrl + R |
reads the page's data again (the window itself isn't reloaded) |
?, F1 |
lists the shortcuts |
Esc |
closes a menu or dialog, and clears the selection |
Lists
The lists of Sites, Databases, Tunnel, Mail, Docker, Ports, Components and PHP's extensions, and the servers on the Control panel, all work the same way.
| Key or mouse | What it does |
|---|---|
↑ ↓ Home End PgUp PgDn |
moves between the rows |
| letters | jumps to the row whose name starts with what you type |
Enter, double-click |
the row's main action (see below) |
Delete |
deletes or removes the row, after the same question as its button |
right-click, Shift + F10, the menu key |
the row's actions: the same as its buttons |
On Sites, Mail and Docker's containers and images you can select several rows: click,
Ctrl-click and Shift-click, Shift + ↑ ↓, Space to select or unselect, Ctrl + A for all and Esc to
clear. Delete and the right-click menu then act on every selected row, after one question.
| Page | Enter / double-click |
|---|---|
| Control panel | starts or stops the server (Space does too); its menu has Start, Stop, Restart, its admin page, config files and logs |
| Sites | opens the site in your browser (a WordPress site: its admin) |
| Databases | Browse in DB Studio |
| Tunnel | opens the public link, or Share for a site that has none |
| reads the email | |
| Docker | starts or stops the container; a compose file: Up; an app: Run |
| Components | the install button: install, update or switch to the chosen version |
| PHP | turns the extension on or off |
Logs and Mail
| Key | What it does |
|---|---|
← → |
Logs: the previous or next log |
| right-click a log's tab | Show, Open file, Empty log |
j k |
Mail: the next or previous email (it opens) |
Delete |
Mail: deletes the selected emails, or the one open |
Ctrl + F |
Mail: finds in the open email (an HTML email is searched in its text); Enter / Shift + Enter go to the next or previous match, Esc closes |
PostgreSQL Manager
The Browse tab's grid works like a spreadsheet. Click a cell, or press an arrow key with the grid focused.
| Key or mouse | What it does |
|---|---|
↑ ↓ ← →, Tab, Shift + Tab |
moves between the cells |
Home End, Ctrl + Home End, PgUp PgDn |
the row's first or last cell, the grid's first or last cell, ten rows up or down |
Shift + arrows, Shift-click |
selects a block of cells; Ctrl + A selects every cell |
Ctrl + C |
copies the selected cells as tab-separated text, ready to paste into a spreadsheet |
Enter, F2, double-click |
edits the cell; Enter or Ctrl + S saves it, Esc (or clicking elsewhere) cancels |
Delete |
deletes the selected rows, after you confirm |
| right-click | Copy, Edit cell, Edit row…, Copy as new row…, Delete row…, Refresh |
F5, Ctrl + R |
reads the rows again |
Ctrl + Enter |
runs the SQL in the query box |
Tip: to set a cell to NULL, use Edit row…: the row form has a NULL tick for every column that allows it.