logsht — Terminal UI
logsht is an interactive terminal UI for querying and exploring your Logship data. It uses your existing logsh contexts and configuration.
Getting Started
logsht
logsht connects to the current logsh context automatically. Make sure you have at least one context configured:
logsh ctx add https://my.logship.server
logsht
Layout
logsht has three main panes:
- Schemas — browse and filter tables on the connected server
- Editor — write and edit queries with full text editing
- Results — navigate query results with keyboard controls
Use Tab and Shift+Tab to cycle focus between panes.
Keybindings
Global
| Key | Action |
|---|
Tab / Shift+Tab | Cycle focus: Schemas → Editor → Results |
Alt+Enter / Ctrl+R | Execute query |
Ctrl+K | Open context switcher |
Ctrl+S | Open saved queries |
Alt+Up / Alt+Down | Navigate query history |
: | Open command bar |
? / Ctrl+H | Show help |
Ctrl+Q / Ctrl+C | Quit |
Schemas Pane
| Key | Action |
|---|
j / k / ↑ / ↓ | Navigate tables |
Enter | Select table → editor |
r | Refresh schemas |
| Type | Filter tables by name |
Editor Pane
| Key | Action |
|---|
| Type | Enter query text (full text editor) |
Esc | Move focus to schemas |
Results Pane
| Key | Action |
|---|
j / k / ↑ / ↓ | Move cursor up/down rows |
h / l / ← / → | Navigate columns |
PgUp / PgDn | Scroll 20 rows |
g / G | Jump to top / bottom |
Overlays
| Key | Action |
|---|
| Type | Filter items in any overlay |
Backspace | Clear filter character |
Ctrl+D | Delete saved query (in saved overlay) |
Esc | Close overlay |
Commands
Commands are entered via the command bar. Press : to open it.
| Command | Description |
|---|
:quit | Exit logsht |
:refresh | Reload schemas from server |
:clear | Clear query and results |
:ctx | Open context switcher |
:help | Show keybindings |
:account | Open account picker |
:saved | Open saved queries |
:save | Save current query |
:cell | Fullscreen focused cell value |
:row | Expand focused row as key-value pairs |
:copy cell | Copy focused cell to clipboard |
:copy row | Copy focused row as JSON |
:copy json | Copy all results as JSON |