yash icon indicating copy to clipboard operation
yash copied to clipboard

Autofill the command line

Open magicant opened this issue 2 years ago • 1 comments

(Feature request migrated from https://osdn.net/projects/yash/ticket/43094)

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?

magicant avatar Sep 11 '23 15:09 magicant

This feature request is discussed in #61.

magicant avatar Dec 22 '24 04:12 magicant