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

Idea: xontrib-ask - command template with interactive sections #29

Open
anki-code opened this issue Mar 10, 2023 · 0 comments
Open

Idea: xontrib-ask - command template with interactive sections #29

anki-code opened this issue Mar 10, 2023 · 0 comments

Comments

@anki-code
Copy link
Member

anki-code commented Mar 10, 2023

Hello! I have an idea!

The ability to create command template. Before executing the command the placeholders should be filled interactively.

First step - Ask to input argument and with autocomplete:

echo I am saying @(ask('What to say'))
# What to say: hello
# I am saying hello

echo Give @(ask('Fruit', ['apple', 'banana', 'orange'])) to @(ask('To', [$(whoami).strip()]))
# Fruit: <Tab>
# Fruit: apple
# To: <Tab>
# To: user
# Give apple to user

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@anki-code anki-code added the idea label Mar 10, 2023
@anki-code anki-code changed the title Idea: command template Idea: command template with interactive placeholders Mar 10, 2023
@anki-code anki-code changed the title Idea: command template with interactive placeholders Idea: xontrib-ask - command template with interactive sections Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant