待辦事項 #43094

Autofill the command line

啟用日期: 2021-10-21 19:36 最後更新: 2021-10-23 13:32

回報者:
負責人:
類型:
狀態:
開啟 [Owner assigned]
元件:
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
檔案:
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

細節

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
  • 負責人 Update from (無) to magicant
  • 元件 Update from (無) to shell-lineedit
評語

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

編輯

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