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

VS Code plugin for Taito CLI #80

Open
keskiju opened this issue Jul 3, 2019 · 0 comments
Open

VS Code plugin for Taito CLI #80

keskiju opened this issue Jul 3, 2019 · 0 comments
Assignees

Comments

@keskiju
Copy link
Member

keskiju commented Jul 3, 2019

See atom-taito-cli as an example, but make this one better :) You should use Taito CLI development version by settingtaito_image=taitounited/taito-cli:cli-dev in your ~/.taito/taito-config.sh and by checking out dev branch of Taito CLI.

This is how the plugin should work:

  • Run taito -q descriptions to get a list of all available commands. Cache available commands in the plugin so that you don't have to run taito -q descriptions every time.

  • Search for taito commands by text given by user. The query should try to match both commands and command descriptions. For example, if user wants to connect to dev environment database, you should find the right command both with db connect and open dev database. Use some existing VS Code command palette plugin as an example. Command palette is pretty basic functionality for an editor plugin. You probably can find existing libraries to implement this with only a few lines of code.

  • You should also improve command descriptions by modifying Taito CLI descriptions. Each description should contain the most important keywords that user might use while searching for the command. Make sure you edit descriptions located in the dev branch. TIP: You can run local development version of Taito CLI with the -d option (for example, taito -d -q descriptions).

  • Once user selects a command, execute the command on VS code terminal:

    • If the command contains arguments, change focus to terminal and write the command but do not execute it. Let the user provide the argument values.
    • If the command contains &focus, change focus to terminal and execute the command immediately.
    • If the command does not contain arguments or &focus, execute the command on terminal immediately but do not change focus to terminal.

If you get some good ideas to improve it, feel free to implement them. Once you have implemented the plugin, remember to update VS Code plugin links on installation instructions and on extensions. There are total of three links to be updated.

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

2 participants