Skip to main content
Quick Select mode allows you to rapidly identify and copy text that matches common patterns without using your mouse. It’s perfect for quickly grabbing URLs, file paths, git commit hashes, IP addresses, and other frequently-copied patterns.

Activating Quick Select

When activated, WezTerm searches the visible terminal content for matching patterns and highlights them with one or two character labels.

How It Works

1

Activate quick select mode

Press Ctrl+Shift+Space to scan the terminal for patterns.
2

View highlighted matches

Matching text is highlighted with letter/number prefixes (like a, b, aa, etc.).
3

Type the prefix to copy

Type the prefix in lowercase to copy the match to clipboard and exit.
4

Or type uppercase to paste

Type the prefix in UPPERCASE to copy AND paste the match immediately.

Default Patterns

Quick select automatically matches:
  • URLs: http, https, and other web addresses
  • File paths: Absolute and relative filesystem paths
  • Git hashes: SHA commit hashes (6+ hex characters)
  • IP addresses: IPv4 addresses
  • Numbers: Numeric values
  • UUIDs: Standard UUID format

Custom Patterns

Add your own patterns to match domain-specific text:

Quick Select Configuration

Custom Patterns

More Pattern Examples

Customizing the Alphabet

Change which characters are used for labels:
Custom Alphabet
The default alphabet is optimized for touch typing: asdfqwerzxcvjklmiuopghtybn1234567890

Visual Customization

Customize how matches are highlighted:
Highlight Colors

Remove Styling

For cleaner visual focus, remove color and styling from the pane:
Clean Display
This strips all colors and formatting before highlighting matches, making them easier to spot in busy terminal output.

Advanced Usage

Opening URLs

Quick URL Opening

Copying Multiple Matches

Sequential Copying

Selecting and Pasting

Use uppercase labels for instant paste:
Copy and Paste

Exiting Quick Select

Use Cases

Development Workflow

System Administration

Container Management

Network Operations

IP Addresses

Pattern Syntax

Quick select patterns use regular expression syntax:
Remember to escape backslashes in Lua strings: use \\\\ for a literal backslash in the regex.

Performance Considerations

  • Quick select only scans visible terminal content
  • Complex patterns may take longer to match
  • Large terminal windows have more content to scan
  • Consider using simpler patterns for better performance

Comparison: Quick Select vs Copy Mode

Use Quick Select when:
  • Copying URLs, hashes, IDs, or other patterns
  • Speed is important
  • Pattern is visible on screen
Use Copy Mode when:
  • Selecting arbitrary text
  • Needing multi-line selection
  • Pattern is not pre-defined
  • Wanting Vim-style navigation

Tips and Tricks

  1. Combine with scrollback: Scroll to make the desired text visible, then activate quick select
  2. Use uppercase for workflows: Uppercase paste is perfect for shell command construction
  3. Refine patterns over time: Add patterns you frequently need to your config
  4. Test patterns: Use regex testing tools to validate patterns before adding them
  5. Keep alphabet short: Fewer characters mean shorter labels and faster selection