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

Autocomplete Options in flowR repl #257

Closed
EagleoutIce opened this issue Aug 26, 2023 · 4 comments · Fixed by #730
Closed

Autocomplete Options in flowR repl #257

EagleoutIce opened this issue Aug 26, 2023 · 4 comments · Fixed by #730
Assignees
Labels
cli Refers to a Command Line Interface enhancement New feature or request good first issue Good for newcomers

Comments

@EagleoutIce
Copy link
Member

After #249, it would be nice if when typing :slicer, the repl would allow to autocomplete based on the options of the slicer.
For this, it would be nice, if the command line options are linked in the scripts-info.ts.

@EagleoutIce EagleoutIce added enhancement New feature or request good first issue Good for newcomers cli Refers to a Command Line Interface labels Aug 26, 2023
@EagleoutIce
Copy link
Member Author

So in other words, I would want the following:

$ node dist/src/flowr.js
:sli<tab>
:slicer
:slicer <tab>
  -h, --help ...
  -d, --diff ...

With <tab> representing the tab key for the autocompletion.

@EagleoutIce
Copy link
Member Author

EagleoutIce commented Jan 24, 2024

@Core5563 Core5563 self-assigned this Jan 30, 2024
@EagleoutIce
Copy link
Member Author

@Core5563 Core5563 linked a pull request Feb 1, 2024 that will close this issue
@Ellpeck Ellpeck assigned Ellpeck and unassigned Core5563 Mar 15, 2024
@Ellpeck Ellpeck linked a pull request Mar 15, 2024 that will close this issue
@Ellpeck
Copy link
Member

Ellpeck commented Mar 15, 2024

  • for commands: autocomplete file:// protocol and then relative files
  • add an empty string to the autocomplete so that it doesn't force you to do the path or single dash
  • open an issue for using a library that allows displaying comments next to the autocomplete options
  • add a space after autocompletes so that they immediately allow autocompleting again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Refers to a Command Line Interface enhancement New feature or request good first issue Good for newcomers
Projects
None yet
3 participants