You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
See atom-taito-cli as an example, but make this one better :) You should use Taito CLI development version by setting
taito_image=taitounited/taito-cli:cli-dev
in your~/.taito/taito-config.sh
and by checking outdev
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 runtaito -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
andopen 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:
&focus
, change focus to terminal and execute the command immediately.&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.
The text was updated successfully, but these errors were encountered: