Skip to content

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

@anki-code

Description

@anki-code

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions