Skip to content

Option to set shell title to thread name #159

@lfinbob

Description

@lfinbob

I use gnome-terminal with various tabs each using a named thread in interactive mode.
To be able to see which tab is which thread (conversation) the tab title should be set.
SSH does this and it's very useful.

Proposed Behaviour:

  • If named threads are used, set the title automatically.
  • Add an option to set the title (or not)

Workaround with a shell function:

# cin = chatgpt-cli interactive named. Use: cin MyThreadName
cin() {
	[ $# -eq 1 ] || return
	# Sets terminal title to easily find the correct thread
	echo -ne "\e]2;$1\a"
	chatgpt --thread "$1" --auto-create-new-thread=0 -i
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions