project-tagger v2024.12.11
Project Tagger ๐
A lightweight CLI tool that simplifies project organization through a tag-based system. Create and manage project tags to efficiently categorize your projects.
How It Works ๐
Project Tagger creates .project.tag files in a hidden .tags directory within your project root. These .project.tag files act as searchable markers, making it easier to find and filter projects across your filesystem using tools like fzf or Everything.
Example
If you add react.project.tag to a React project, you can later search for react.project.tag to quickly locate all your React projects.
Installation ๐ฆ
NPM Global Installation
npm install -g project-taggerDirect Usage with npx
npx project-taggerUsage ๐
Navigate to Your Project Root:
cd /path/to/your/projectRun Project Tagger:
project-tagger
CLI Menu Options
โจ Add Tag
Add custom tags to your project. Spaces in tag names are replaced with underscores.๐ List Tags
View all existing tags in the.tagsdirectory.โ Remove Tag
Select specific tags to remove.๐งน Clear All Tags
Remove all tags from the current project at once.๐ Detect Project Type and Suggest Tags
Automatically detect common project structures (e.g.,package.jsonfor JavaScript,tsconfig.jsonfor TypeScript,requirements.txtfor Python) and suggest relevant tags to add.๐ช Exit
Quit the CLI.
Using the Source Code ๐ ๏ธ
Install Dependencies:
bun installRun the Application:
bun run index.tsManage Tags (CLI Interface):
Add a Tag:
Follow prompts to add custom tags.List Tags:
View all tags in.tags.Remove a Tag:
Select tags to remove.Clear All Tags:
Remove all tags at once.Detect Project Type and Suggest Tags:
Let the CLI suggest tags based on detected project files.
Compilation
To compile the project manually, run:
bun build ./index.ts --compile --outfile ./dist/project-taggerAlternatively, use the scripts defined in package.json:
Build for Current OS:
bun run buildBuild for Windows:
bun run build:windowsBuild for Linux:
bun run build:linuxBuild for macOS:
bun run build:mac
Feel free to open an issue if you have any questions or suggestions!
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago