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

Allow blank input lines for shell-pipe commands #1308

Merged
merged 1 commit into from
Jul 3, 2023
Merged

Allow blank input lines for shell-pipe commands #1308

merged 1 commit into from
Jul 3, 2023

Conversation

joelim-work
Copy link
Collaborator

This change allows the user to input blank lines during shell-pipe (%) commands simply by pressing Enter. Below is an example script to test with:

cmd test %{{
    echo "doing something..."
    sleep 1

    echo "press enter to continue"
    read dummy

    echo "continue doing something..."
    sleep 1
    echo "done"
}}

@joelim-work joelim-work marked this pull request as draft June 17, 2023 12:34
@joelim-work joelim-work marked this pull request as ready for review June 17, 2023 12:35
@gokcehan gokcehan merged commit 56ab5cc into gokcehan:master Jul 3, 2023
@joelim-work joelim-work deleted the shell-pipe-enter branch July 3, 2023 12:06
@gokcehan gokcehan mentioned this pull request Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script runs differently in lf and in zsh, also looking to improve the default delete command
3 participants