
Keep text selection after copy in Grok Build
Keep text selection after copy in Grok Build
keep_text_selection under [ui] controls what happens to a highlighted range after you copy from the TUI. Official values: Settings reference.
Values
| Value | Default? | Meaning |
|---|---|---|
flash |
yes | Selection clears after a brief flash once the copy lands |
hold |
Selection stays highlighted after copy |
Pin it in user config
[ui]
keep_text_selection = "hold"
Or keep the default flash behavior:
[ui]
keep_text_selection = "flash"
File path: ~/.grok/config.toml / $GROK_HOME/config.toml. You can also change UI options from /settings (alias /config).
When each setting helps
Use hold when you copy several nearby spans and want the highlight to mark where you left off. Leave flash when a lingering selection makes the transcript feel sticky after every copy.
Related copy controls
Copy a model reply with /copy: Copy a response with /copy. Search scrollback before you select: Search scrollback with /find.
Pitfalls
- Editing project
.grok/config.tomlfor[ui]— putkeep_text_selectionin user config. - Expecting
holdto change clipboard contents — it only keeps the on-screen highlight after copy.