KomtanKomtan is a Visual Studio Code extension for storing reusable prompts, snippets, commands, SQL queries, notes, references, and text templates in one local library. Use it to organize AI prompts, code snippets, terminal commands, SQL queries, configuration examples, email drafts, commit messages, checklists, and other reusable text under category folders. You can favorite items, search them, copy them to the clipboard, or insert them directly into the active editor. Project page: https://anbarli.github.io/komtan/ Use Cases
Features
Global and Workspace ScopeWhen you create an item, you can choose its scope:
Global items are useful for general prompts, common commands, and canned replies. Workspace items are useful for project-specific API notes, deployment commands, customer notes, SQL queries, and issue templates. Komtan separates items under TagsAdd comma-separated tags to items:
Tags work alongside categories. An item belongs to one category but can have multiple tags. Search scans titles, categories, scopes, types, tags, and content. Preview PanelPreview long prompts, snippets, SQL, commands, or documentation templates before using them. Command:
The preview panel shows:
From the preview panel, you can copy the item, insert it into the active editor, or open the edit screen. Fenced code blocks are rendered in a more readable format:
FilteringNarrow down the library from the Komtan panel. Available commands:
Filters work together with search. For example, you can choose the Bulk OperationsEdit multiple items at once. Available commands:
Bulk operations use the current search and filter result as the selectable set. This lets you filter first and then update only the relevant items. Starter PackInstall sample prompt, command, template, and reference items for first-time use. Command:
The starter pack includes a code review prompt, debug prompt, Git/NPM commands, an API request template, a bug report template, and short reference examples. When the Komtan panel is empty, quick actions for creating the first item, installing the starter pack, and importing JSON appear directly in the panel. Sensitive Content WarningKomtan warns before saving content that looks like an API key, token, password, private key, JWT, or connection string. This check does not block saving. It asks for confirmation so you do not accidentally store sensitive values. Quick CommandsUse items from the Command Palette without opening the side panel. Available commands:
These commands let you search items, fill template variables, copy content, or insert content into the active editor. Duplicate ItemsDuplicate similar prompts, snippets, commands, or templates instead of writing them from scratch. Command:
The duplicated item keeps the same type, scope, category, tags, and content. The favorite state starts disabled for the new item. If the title already exists, Komtan creates a unique title such as Demo ScreenshotsRecommended screenshots for README or Marketplace:
When screenshots are ready, add them under a Import and ExportBack up the Komtan library as a JSON file or move it to another machine. Available commands:
Import modes:
Suggested CategoriesKomtan suggests categories based on the selected content type. The category field remains free-form, so you can also type your own category name. Prompt
Code Snippet
Text / Copy
Template
Command
Reference
Template VariablesUse Example:
When this item is used, Komtan asks for TestingOpen the project in VS Code and install dependencies:
Run the syntax check:
Run unit tests:
If PowerShell script execution blocks npm scripts, use:
To test the extension in development mode, press Create a VSIX Package
This creates:
Install from VSIXIn VS Code:
Marketplace ReadinessThe manifest includes the main Marketplace fields:
The current extension identifier is:
If your repository address changes, update The CI workflow runs After installation, Komtan appears in the left Activity Bar. LicenseThis project is released under the MIT License. See |