Browser UI
getman opens the workspace in your browser, on 127.0.0.1. This page
covers the parts of the UI that save you work day to day. Press
? in the UI for the main shortcuts;
Keyboard shortcuts lists every one.
Tabs
Open tabs come back when you reload the page or restart getman, each
workspace with its own. So do changes you have not saved, and requests
you never saved at all. If a file was renamed or moved while the UI was
closed, Getman finds it by its name in the same folder or its file name
elsewhere; if a file with unsaved changes is gone, the changes open as a
new request rather than disappear.
The tabs live in this browser's storage. A different browser, or the UI on another port, starts with none.
| Keys | Does |
|---|---|
| Alt Shift T | Reopen the tab closed last, with its unsaved changes |
| Alt A | Search the open and recently closed tabs |
| Shift ← → | On a focused tab: move it |
| Del | On a focused tab: close it |
Browsers keep Ctrl Shift T for their own tabs; Getman answers it too where the browser lets it through. Drag a tab to move it. Right-click one, or press the menu key on it, to close others, close those to the right, close all, duplicate a request, reveal the item in the sidebar or copy its path.
Searching tabs
Alt A, the search button beside the tabs, or
Search open and recently closed tabs in the palette lists the open
tabs in order, then the last 20 you closed, newest first. Type to
filter by name and path: the letters you type must appear in that
order, so usrlst finds users/list.yaml. ↑ ↓
choose and Enter switches to an open tab, or reopens a closed
one with the changes it had. A tab with changes that are not saved says
so.
Sidebar
- Collapse all folds every folder.
- Sort A to Z shows each folder's items by name, folders first. It changes only the view in this browser; the files and their order stay as they are, and dragging to reorder is off while it is on.
- Ctrl click (Cmd on a Mac) picks several items, Shift click or Shift and the arrow keys a range, Ctrl Space the focused one, and Esc clears them. The menu of a picked item then duplicates, moves or deletes them all; Del deletes them and dragging one moves them all.
- Ctrl Z outside a text field undoes the latest rename or move, drag moves included, and Ctrl Shift Z (or Ctrl Y) does it again. The notice that follows each one has an Undo button too. Getman keeps the last 20 for as long as the page is open; reloading it starts the list empty. A delete is undone from its own notice or the trash, below.
The trash
Deleting a request or folder moves it to .getman/trash/ in the
workspace. A notice offers Undo, and so does Ctrl
Z outside a text field. The Trash tab of the sidebar lists
what was deleted and puts an item back where it was; if something new
has taken its name, the item comes back with a number. Empty trash
deletes everything in it for good, after asking. A request's
.examples folder with its example bodies goes to the trash with the
request, comes back with it, and is deleted with it when you empty the
trash.
.getman/ has its own .gitignore, so the trash is never committed. The
terminal UI deletes into the same trash.
Console
Console in the status bar, or Ctrl J
(Cmd J on a Mac), opens a log of everything this
window sent, newest at the bottom: HTTP and GraphQL requests, gRPC calls,
GraphQL schema reads, and one line for each WebSocket, event stream or
Socket.IO connection once it closes, with how long it lasted and how many
messages it carried. Each line shows the method, URL, status, time and
size. Choose one for its request and response headers and bodies, the
script's console output, warnings, failed checks and the error that
stopped it, and Copy to take it all as text.
- The box filters by URL, method, status or any word of the line, and every word must match. Errors only keeps what failed: an error, a status of 400 or more, a failed script or check. The kind buttons hide HTTP, GraphQL, gRPC or realtime lines.
- Clear empties it. Drag the top edge, or use ↑ and ↓ on it, to change its height.
- The log lives in the page's memory and nowhere else: it is not written to disk, and reloading the page clears it. It keeps the last 2000 lines, and the first 16 KB of each body.
History
Every request you send from the UI is kept with its response: status, headers, time, size, and the body up to its first MiB. The History tab groups them by day and searches them: every word you type must match the name, URL, method, status or path. Opening an entry opens the request as a new tab with the response it got; send it to run it again.
History keeps the last 200 requests in .getman/. Clear history
deletes them and their responses.
Variables in tables
The Params, Headers, form body, folder header and variable tables mark
{{variables}} as the URL bar does, red when no scope defines them.
Typing {{ offers the names the request can use; ↑
↓ choose and Enter or Tab takes one.
Point at a variable, or move the caret into it, to see its value and the
scope it comes from; pointing works in the URL bar and the body and
script editors too. Values the environment marks secret show as dots
until you choose Reveal.
Header presets
The Presets menu beside Bulk edit on a Headers tab adds a set of headers in one go. JSON, Form, XML and No cache come built in; a header already in the table takes the preset's value instead of being added twice.
Save these headers as a preset keeps the table's headers under a
name, for this workspace on this machine, in
.getman/header-presets.yaml. They are kept there rather than in the
browser, whose storage belongs to the port the UI happened to get, and
rather than in a committed file, which would share header values such as
tokens with everyone who clones the repository. The file is plain YAML,
so you can edit it or copy it to another workspace. Manage presets
deletes them.
Response bodies
- Hex shows any body as offsets, bytes and ASCII, the first 16 KB at once and more on request. Binary bodies open in it.
- Web addresses in the Pretty and Raw views are underlined; click one to open it in a new tab.
- Find (or Ctrl F in the body) searches with next and previous, match case, whole word and regular expressions.
- Select a value, such as a token, and choose Set as variable. The
name is suggested from the JSON key on that line, and a JSON string
loses its quotes. Save it in this request (an unsaved change), the
environment, the workspace or the globals. The last three go to
git-ignored local files, where a script's
gm.environment.set,gm.collectionVariables.setandgm.globals.setwould put them.
The request as sent
The response's Sent tab shows the request exactly as it went out:
the method, URL and headers after variables, folder settings,
authentication and pre-request scripts, and the body in the same viewer
as a response's, with Pretty, Raw, Hex, Find, Copy and Save. Click a
header's value to copy it. Below the request's own headers, Added by
Getman when sending lists the ones the HTTP client added because the
request did not set them: Host over HTTP/1, Accept,
Accept-Encoding, the cookie jar's Cookie and Content-Length. The
console lists them too.
Values of the variables the selected environment lists under secrets
show as [secret] there and in the console, also in their Base64 and
percent-encoded forms, such as inside a Basic Authorization header,
also when a script set them while the request ran, and also what a value
such as {{$env.GETMAN_TOKEN}} stands for. Show secrets
shows them in the Sent tab. Only the display is masked: the request went
out with the real values.
Environments
Duplicate, next to Rename, copies an environment with its local
values and secrets, as <name> copy.