Tíquete #43094

Autofill the command line

: 2021-10-21 19:36 Última Atualização: 2021-10-23 13:32

Relator:
Dono:
Estado:
Aberto [Owner assigned]
Componente:
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Nenhum
Arquivo:
Nenhum
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

Hello, yash is excellent, thank you for it. One alias I like is the following history alias:

alias h="history | sort --reverse --numeric-sort | fzy | sed 's/\[[:digit:]]*[[:space:]]*//' | tr -d '\n' | xclip -selection clipboard"

That uses fzy to search the history, and when something is selected it gets copied to the clipboard. However, instead of copying it to the clipboard, I would like to send it to yash's command line prompt, so I can press enter and run the command, or edit the command before running it.

Is there a way to automatically fill in the command line prompt?

Ticket History (3/4 Histories)

2021-10-21 19:36 Updated by: bdax
  • New Ticket "Autofill the command line" created
2021-10-21 19:38 Updated by: bdax
  • Details Updated
2021-10-21 19:39 Updated by: bdax
  • Details Updated
2021-10-23 13:32 Updated by: magicant
  • Dono Update from (Nenhum) to magicant
  • Componente Update from (Nenhum) to shell-lineedit
Comentário

Is there a way to automatically fill in the command line prompt?

Unfortunately, there is not such a feature now, but it would be helpful if implemented.

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login