# Keyboard shortcuts

Shortcuts are also shown next to the menu items. **Help > Keyboard Shortcuts** opens this page.

## Files and tabs

| Shortcut | Action |
|---|---|
| Ctrl+O | Open file(s) |
| Ctrl+Shift+O | Open folder in the Explorer |
| Ctrl+Shift+N | New Linked Window (another window of this TKTail - [Linked windows](https://tktail.dev/help/windows/)) |
| Ctrl+W, Ctrl+F4 | Close the active tab |
| Ctrl+Shift+W | Close all tabs |
| Ctrl+Tab, Ctrl+PgDn | Next tab |
| Ctrl+Shift+Tab, Ctrl+PgUp | Previous tab |
| Ctrl+\\ | Split right |
| Ctrl+Shift+\\ | Split down |
| Ctrl+Shift+S | Export: the selection, the line, the record, the whole file or the matching lines, to a file |

## Following and moving

| Shortcut | Action |
|---|---|
| F5 | Go Live (follow the end) |
| Shift+F5 | Pause |
| Pause | Toggle LIVE / PAUSED |
| Ctrl+Home / Ctrl+End | Beginning / end of the file |
| Up, Down, PgUp, PgDn, Home, End | Scroll in the pane (scrolling up pauses) |
| Left, Right (Ctrl: faster) | Scroll sideways |
| Ctrl+G | Go to a line or byte offset |
| Ctrl+Shift+G | Go To Time - the record nearest a date and time |
| Alt+Down / Alt+Up | Next / previous record (a log entry - a stack trace is skipped as one; in an event tab the next / previous event); in a drop-down list Alt+Down opens it as usual |
| Esc | Clear selection and search highlight |

## Selecting, copying, finding

| Shortcut | Action |
|---|---|
| Ctrl+C, Ctrl+Insert | Copy - what has the focus: the file view's selection, the RECORD text, the selected Inspector value, or the selected rows of a bottom-panel list |
| Ctrl+Shift+C | Copy with line numbers |
| Ctrl+A | Select all - in the file view the whole file; in the RECORD view this line or record; in a list every row |
| Ctrl+F | Find |
| F3 / Shift+F3 | Find next / previous |
| Enter / Shift+Enter (in the find bar) | Find next / previous |
| Ctrl+Shift+F | Global search: the toolbar's search box (open files, a folder or file names); results in the bottom panel |
| Ctrl+Alt+F | Advanced Search (the bottom panel's builder: several sources, conditions, time, sequences) |
| Ctrl+Shift+A | Add alert for the selection |
| F8 / Shift+F8 | Next / previous alert in the current file (from the caret) |

## View

| Shortcut | Action |
|---|---|
| Ctrl+Shift+L | Line numbers |
| Alt+Z | Word wrap (wrap long lines to the window) |
| Ctrl+Shift+T | Observation time |
| Ctrl+Plus, Ctrl+Minus, Ctrl+wheel (also Ctrl+Num + / Ctrl+Num -) | Bigger / smaller font |
| Ctrl+0, Ctrl+Num 0 | Reset the font size |
| Ctrl+B | Show / hide the Explorer |
| Ctrl+Shift+E | Focus the Explorer |
| Ctrl+Shift+I | Show / hide the Inspector |
| Ctrl+J | Show / hide the bottom panel |
| Ctrl+Shift+` | New terminal (bottom panel) |
| F6 / Shift+F6 | Next / previous pane (Explorer, viewer, bottom panel, Inspector) |
| Ctrl+, | Settings ([Settings](https://tktail.dev/help/settings/)) |
| F1 | TKTail Help - the page of what you are working in (the Explorer, the Inspector, a tool view, an event tab, a dialog) |

## In the terminal

Every key goes to the program running in the terminal, except:

| Shortcut | Action |
|---|---|
| F6 / Shift+F6 | Next / previous pane |
| Ctrl+J | Show / hide the bottom panel |
| Ctrl+Tab / Ctrl+Shift+Tab | Next / previous document tab |
| Ctrl+V, Ctrl+Shift+V, Shift+Insert | Paste (asks first for several lines without bracketed paste) |
| Shift+PgUp / Shift+PgDn, mouse wheel | Scroll back / forward through the last 10,000 lines |
| Enter (after the shell ended) | Restart it in the same folder |
| Ctrl+Shift+` / Ctrl+Shift+W | New terminal / close this terminal |
| Ctrl+Shift+PgUp / Ctrl+Shift+PgDn | Previous / next terminal tab |
| Ctrl+C | Sent to the program (interrupts it) - it does not copy |
| Ctrl+Shift+C | Copy the selection |
| Ctrl+Shift+F | Find in the terminal's text (Enter: older, Shift+Enter: newer, Esc: close) |

## In an event tab

| Shortcut | Action |
|---|---|
| Up / Down, Page Up / Page Down, Home | Move the current event (Shift extends the selection; moving away from the newest pauses) |
| End, F5 | The newest event, LIVE again |
| Shift+F5 | Pause (new events keep arriving) |
| Left / Right | Scroll sideways |
| Ctrl+A, Ctrl+C | Select all events, copy the selected events (complete messages) |
| Ctrl+F, F3, Shift+F3 | Find in the events (message, provider, event ID, level); next / previous |
| Enter, double-click | The event in RECORD (Summary / Fields / XML) |

## In a Metrics View

| Shortcut | Action |
|---|---|
| Space | Pause / go live (collection continues while paused) |
| End, F5 / Shift+F5 | Go live / pause |
| Left / Right (Ctrl: further), mouse wheel | Move in time (wheel up: older) |
| Home | The oldest time kept |
| + / -, Ctrl+wheel | Zoom in / out |
| Up / Down, Shift+wheel | Select the previous / next series; scroll the lanes |
| Click, drag | Time cursor; select a range |
| Esc | Clear the cursor and the range |
| Ctrl+C | Copy the values at the cursor, or the range's statistics |

## In the METRICS panel

| Shortcut | Action |
|---|---|
| Ctrl / Shift + click, Ctrl+A | Select several metrics, a range, all of them |
| Delete | Remove the selected metrics (a metric a Metrics View collects stays for that view) |
| Enter, double-click | Open the selected metrics in a Metrics View |
| Ctrl+C | Copy the selected rows (all of them when none is selected) |

## In the counter picker (View > Metrics...)

| Shortcut | Action |
|---|---|
| Double-click a counter or an instance | Add it to Selected |
| Delete (in Selected) | Remove the selected counters from the selection (never from a saved set) |
| Click a swatch in Selected, right-click a row | Series Color: Auto, a preset color, Custom... |
| Ctrl / Shift + click | Several counters, instances or selected rows |
| Enter | Open (or Add): the selection, else what the lists show, else the chosen Metric Set |

## In the Explorer

| Shortcut | Action |
|---|---|
| Alt+Left / Alt+Right | Back / Forward |
| Alt+Up, Backspace | Up one level |
| F5 | Refresh |
| Enter | Open the selected files / open an event log / expand a folder / go to the typed path |
| Ctrl+Enter | Open in a split to the right |
| Ctrl+A, Ctrl+C | Select all files, copy their paths |
| Shift+right-click | Windows context menu |

---

The HTML page: https://tktail.dev/help/keyboard-shortcuts/
