Skip to content

Transient prompt does not write new line after filler and before command, making copying previous commands difficult #6890

@AlyamanMas

Description

@AlyamanMas

Code of Conduct

  • I agree to follow this project's Code of Conduct

What would you like to see changed?

Currently, when using oh-my-posh's transient prompt feature, after a command is typed and the transient prompt is displayed, after double/triple clicking on the command, which selects the current line, not only is the command selected, but the entire transient prompt template and filler are selected as well. This makes it very difficult to copy previous commands with a mouse, as that generally involves double/triple clicking the command (which selects all of it in the case of single line commands) and then copying it with CTRL-SHIFT-C. But due to oh-my-posh's having both the transient prompt with its template and filler, and the command both on the same line (no newline character to separate them), when double/triple clicking, everything is selected, which makes copying difficult as it forces the user to have to manually select only the command which can be tedious.

An example can be seen as follows, with the first image having no text selected, while the second image has the ls command double clicked, resulting in the whole thing getting selected.

Image Image

I have tested this in nushell and fish, and foot terminal and konsole. On the newest version.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions