-
Notifications
You must be signed in to change notification settings - Fork 326
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
How do I execute scripts that take a choice via stdin without needing to press <enter>? #1616
Comments
Replace Btw, you could just |
I want the script output to be shown at the bottom. Using In POSIX, |
I have a weird idea that could be a last resort if nobody has better ideas:
|
Years ago in 2020 when I was configuring lf, I wanted the exact same thing you want. Back then, it was achievable by setting the shell to However, a few years ago, I don't remember when, it stopped to work. Now I think this may be a bug, but I've been too lazy to investigate or open my own ticket :P |
For years now it's been broken, because for whatever reason `read -q` doesn't work inside lf pipe anymore. lf has an open issue on something very similar: gokcehan/lf#1616
For years now it's been broken, because for whatever reason `read -q` doesn't work inside lf pipe anymore. lf has an open issue on something very similar: gokcehan/lf#1616
@UtkarshVerma @randoragon If you are willing to deal with tmux flow, you can try to do it like:
|
I am trying to create a
trash
command that mimics the built-indelete
command by doing the following:trash 'filename' ? [y/N]
<enter>
.So far, I have written this:
The script behaves well if I execute in my
dash
shell interactively. However, the input requires me to press<enter>
if I invoke the command vialf
. What could be the issue here?Secondly, is there any way I can suppress the ">" symbol that appears for
shell-pipe
commands for this command specifically. It's not a high priority thing, but would be nice to know if I could.Thanks.
The text was updated successfully, but these errors were encountered: