Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autofill the command line #23

Open
magicant opened this issue Sep 11, 2023 · 0 comments
Open

Autofill the command line #23

magicant opened this issue Sep 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@magicant
Copy link
Owner

(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 magicant added the enhancement New feature or request label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant