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

Add optional arguments #887

Open
Signum21 opened this issue Mar 11, 2024 · 2 comments
Open

Add optional arguments #887

Signum21 opened this issue Mar 11, 2024 · 2 comments
Labels
new feature New feature or request

Comments

@Signum21
Copy link

It would be useful to have optional arguments for commands, possibly with selectable values.

An example that works for the ls command.

# List files
ls <parameters>

$ parameters: echo -e "-l\n-a\n"
screen

The last \n creates a blank line that can be selected to avoid choosing an option.

This method doesn't work for optional parameters that require a value, for example head -n 5

@Signum21 Signum21 added the new feature New feature or request label Mar 11, 2024
Copy link

welcome bot commented Mar 11, 2024

Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)

@tapyu
Copy link
Contributor

tapyu commented Jul 8, 2024

Totally agreed. This is a missing feature. What would be the syntax?

I've found a workaround solution for your case in #899 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants