taste open
Open a taste package in your default editor. This command provides quick access to edit your taste files directly.
Basic usage
npx taste open <package>
| Argument | Description |
|---|---|
<package> | Required. The name of the package to open. |
| Option | Short | Description |
|---|---|---|
--global | -g | Open package from global (~/.commandcode/taste) |
Open a local package
Open local
npx taste open cli
Opens the cli taste package from your local project in your default editor.
Open from global
Open global
npx taste open cli -g
Opens the cli package from your global at ~/.commandcode/taste.
Example output
ā Opened 'cli' taste package from project
The command uses your system's default editor set via the $EDITOR environment variable. If not configured, you'll see setup instructions:
Editor setup
# VS Code
echo 'export EDITOR="code"' >> ~/.zshrc
# Vim
echo 'export EDITOR="vim"' >> ~/.zshrc
# Nano
echo 'export EDITOR="nano"' >> ~/.zshrc
# Sublime Text
echo 'export EDITOR="subl"' >> ~/.zshrc
After adding the export, restart your terminal or run source ~/.zshrc.
- Opens the taste file in your default editor
- For category-specific files: Opens at line 1
- For main
taste.mdfiles: Searches for the category heading and opens at that line - Automatically navigates to the correct location in the file
- Use
taste lintto validate your changes - Use
taste pushto upload edited packages - Use
taste listto view all packages