Skip to content

Keybind action to copy terminal title #7829

@mitchellh

Description

@mitchellh

Discussed in #7825

Originally posted by sj26 July 5, 2025
I'm not sure if this is a good idea or not, but I found myself today wanting to copy the title of a tab (into the macOS pasteboard):

image

Would a "copy title" option here be useful? I'd probably have a go at implementing if so.

Proposal

Let's introduce a copy_title keybind action that copies the current terminal title. This doesn't even need apprt integration (beyond invoking copy clipboard actions that already exist) because the title is known to the core.

The documentation can be that this will specifically copy the current terminal title as set by terminal programs (i.e. not manually). If a terminal title is NOT set, then this should do NOTHING (do not clear the clipboard).

We should make sure this is exposed via the command palette because this is unlikely to be something someone actually binds.

Metadata

Metadata

Assignees

Labels

contributor friendlyA well-scoped, approachable issue for someone looking to contribute.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions