Skip to main content

Categories & Organization

Keep your snippet library organized and easy to navigate with categories, tags, and smart organization strategies.

What are Categories?โ€‹

Simple Explanation: Categories are folders that group related snippets together, making them easier to find and manage.

Example:

๐Ÿ“ Docker Commands
โ”œโ”€ Container Start
โ”œโ”€ Container Stop
โ”œโ”€ View Logs
โ””โ”€ Cleanup

๐Ÿ“ Git Operations
โ”œโ”€ Create Branch
โ”œโ”€ Pull & Rebase
โ””โ”€ Merge Branch

๐Ÿ“ Database Tasks
โ”œโ”€ MySQL Backup
โ”œโ”€ PostgreSQL Restore
โ””โ”€ MongoDB Export

Why Use Categories?โ€‹

1. Quick Navigationโ€‹

Without categories:

All Snippets (83 items)
- Container Start
- MySQL Backup
- Create Branch
- Server Health
- PostgreSQL Restore
- View Logs
- ...and 77 more (scroll, scroll, scroll)

With categories:

Docker (12) โ†’ Click โ†’ See only Docker snippets
Git (8) โ†’ Click โ†’ See only Git snippets
Database (15) โ†’ Click โ†’ See only Database snippets

2. Better Organizationโ€‹

Group by:

  • Technology (Docker, Git, Database)
  • Purpose (Backup, Deployment, Monitoring)
  • Frequency (Daily, Weekly, Emergency)
  • Environment (Dev, Staging, Production)
  • Team (Frontend, Backend, DevOps)

3. Easier Maintenanceโ€‹

Want to update all Docker snippets?
โ†’ Filter by Docker category
โ†’ See all at once
โ†’ Update as needed

4. Team Collaborationโ€‹

๐Ÿ“ Team Standards (shared)
๐Ÿ“ Personal Tools (yours only)
๐Ÿ“ Experimental (testing)

Creating Categoriesโ€‹

Method 1: From Categories Viewโ€‹

1. Click "Snippets" in sidebar
2. Switch to "Categories" tab
3. Click "NEW CATEGORY" button
4. Fill in details:
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ New Category โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Name: * โ”‚
โ”‚ [Docker Commands ] โ”‚
โ”‚ โ”‚
โ”‚ Description: โ”‚
โ”‚ [All Docker-related operations including โ”‚
โ”‚ container management, image building, โ”‚
โ”‚ and compose operations] โ”‚
โ”‚ โ”‚
โ”‚ Color: โ”‚
โ”‚ โฌค Blue โ—‹ Green โ—‹ Red โ—‹ Purple โ”‚
โ”‚ โ—‹ Orange โ—‹ Yellow โ—‹ Gray โ—‹ Pink โ”‚
โ”‚ โ”‚
โ”‚ Icon: (optional) โ”‚
โ”‚ [๐Ÿณ Docker Whale ] โ”‚
โ”‚ โ”‚
โ”‚ [Cancel] [Create] โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

5. Click "Create"

Method 2: While Creating Snippetโ€‹

1. Create new snippet
2. In "Category" dropdown
3. Click "+ Create New Category"
4. Fill in details
5. New category created
6. Automatically assigned to snippet

Method 3: Quick Createโ€‹

1. In category filter dropdown
2. Type new category name
3. Press Enter
4. Category created instantly

Category Propertiesโ€‹

Name (Required)โ€‹

Clear, descriptive category name:

Good Names:

โœ“ Docker Commands
โœ“ Git Operations
โœ“ Database Management
โœ“ System Administration
โœ“ Backup & Recovery
โœ“ Deployment Scripts
โœ“ Monitoring Tools

Bad Names:

โœ— Commands
โœ— Scripts
โœ— Misc
โœ— Other
โœ— Temp

Naming Patterns:

By Technology:

Docker Commands
Git Operations
Kubernetes Resources
Node.js Scripts
Python Tools

By Purpose:

Backup Operations
Deployment Procedures
Health Checks
Log Analysis
Security Scans

By Frequency:

Daily Tasks
Weekly Maintenance
Monthly Reports
Emergency Procedures

What belongs in this category:

Good Description:

All Docker-related operations including:
- Container lifecycle management
- Image building and pulling
- Docker Compose operations
- Network configuration
- Volume management

Use for any Docker command snippets.

Include:

  • What belongs here
  • What doesn't belong here
  • Common use cases
  • Team conventions

Color (Optional)โ€‹

Visual identification:

Color Strategy:

By Type:

๐Ÿ”ต Blue - Infrastructure (Docker, Kubernetes)
๐ŸŸข Green - Deployment & CI/CD
๐Ÿ”ด Red - Emergency & Critical
๐ŸŸฃ Purple - Monitoring & Logs
๐ŸŸ  Orange - Development Tools
๐ŸŸก Yellow - Testing & QA
โšช Gray - Miscellaneous
๐Ÿ”ด Pink - Deprecated

By Environment:

๐Ÿ”ต Blue - Development
๐ŸŸข Green - Staging
๐Ÿ”ด Red - Production
๐ŸŸก Yellow - Testing

By Team:

๐Ÿ”ต Blue - Frontend
๐ŸŸข Green - Backend
๐ŸŸฃ Purple - DevOps
๐ŸŸ  Orange - QA

Icon (Optional)โ€‹

Emoji or icon for quick recognition:

Common Icons:

๐Ÿณ Docker
๐Ÿ“ฆ Packages
๐Ÿ”ง Tools
๐Ÿ—„๏ธ Database
๐ŸŒ Network
๐Ÿ“Š Monitoring
๐Ÿ”’ Security
๐Ÿš€ Deployment
๐Ÿ”„ CI/CD
๐Ÿ“ Logging
โšก Performance
๐Ÿ› Debugging
๐Ÿงช Testing
๐Ÿ“š Documentation

Finding Icons:

  • Use emoji picker (Win+. or Cmd+Ctrl+Space)
  • Copy from Emojipedia
  • Use icon libraries

Organizing Snippetsโ€‹

Assign to Categoryโ€‹

During Creation:

1. Create new snippet
2. Select category from dropdown
3. Save

After Creation:

1. Edit snippet
2. Change category
3. Save

Bulk Assignment:

1. Select multiple snippets (Ctrl+Click)
2. Right-click selection
3. "Assign to Category"
4. Choose category
5. Apply to all

Move Between Categoriesโ€‹

1. Select snippet(s)
2. Drag and drop to category

Or:

1. Right-click snippet
2. "Move to Category"
3. Select destination
4. Confirm

Remove from Categoryโ€‹

1. Edit snippet
2. Category dropdown
3. Select "Uncategorized"
4. Save

Or:

1. Right-click snippet
2. "Remove from Category"
3. Moves to Uncategorized

Category Managementโ€‹

View Snippets by Categoryโ€‹

Method 1: Filter Dropdown

1. Category filter
2. Select category
3. View filtered list

Method 2: Category Cards

1. Categories tab
2. Click category card
3. Shows all snippets in category

Method 3: Sidebar

โ”œโ”€ All Snippets (83)
โ”œโ”€ Uncategorized (5)
โ”œโ”€ Docker (12)
โ”œโ”€ Git (8)
โ”œโ”€ Database (15)
โ””โ”€ ...

Edit Categoryโ€‹

1. Categories tab
2. Click category card
3. Click "Edit" button (pencil icon)
4. Modify details:
- Name
- Description
- Color
- Icon
5. Save changes

Affects:

  • Category display name
  • All snippets in category
  • Filter dropdown
  • Visual appearance

Delete Categoryโ€‹

1. Categories tab
2. Find category to delete
3. Click "Delete" button (trash icon)
4. Choose what happens to snippets:
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Delete Category โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ What should happen to the 12 snippets โ”‚
โ”‚ in "Docker Commands"? โ”‚
โ”‚ โ”‚
โ”‚ โฆฟ Move to Uncategorized โ”‚
โ”‚ โ—‹ Move to another category: โ”‚
โ”‚ [Git Operations โ–ผ] โ”‚
โ”‚ โ—‹ Delete snippets too (dangerous!) โ”‚
โ”‚ โ”‚
โ”‚ [Cancel] [Delete] โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Options:

  1. Move to Uncategorized (Safe, recommended)
  2. Move to another category (If merging)
  3. Delete snippets too (โš ๏ธ Cannot be undone!)

Merge Categoriesโ€‹

Combine two categories:

1. Select category to merge FROM
2. Click "Merge" button
3. Select category to merge INTO
4. Confirm merge
5. Snippets moved
6. Old category deleted

Example:

Before:
- Docker Commands (8 snippets)
- Docker Tools (4 snippets)

After merge:
- Docker Commands (12 snippets)

Rename Categoryโ€‹

1. Edit category
2. Change name
3. Save

Updates everywhere:

  • Category list
  • Filter dropdown
  • Snippet assignments
  • Sort order

Organization Strategiesโ€‹

Strategy 1: By Technology Stackโ€‹

For: Development teams

๐Ÿ“ Frontend
โ”œโ”€ npm commands
โ”œโ”€ React builds
โ””โ”€ Testing

๐Ÿ“ Backend
โ”œโ”€ Node.js
โ”œโ”€ Python
โ””โ”€ Database

๐Ÿ“ DevOps
โ”œโ”€ Docker
โ”œโ”€ Kubernetes
โ””โ”€ CI/CD

Strategy 2: By Workflow Stageโ€‹

For: Deployment processes

๐Ÿ“ 1. Build
โ””โ”€ Compile, bundle, test

๐Ÿ“ 2. Deploy
โ””โ”€ Upload, restart, verify

๐Ÿ“ 3. Monitor
โ””โ”€ Logs, metrics, alerts

๐Ÿ“ 4. Rollback
โ””โ”€ Emergency procedures

Strategy 3: By Frequencyโ€‹

For: Task prioritization

๐Ÿ“ Daily Tasks
โ””โ”€ Used every day

๐Ÿ“ Weekly Tasks
โ””โ”€ Regular maintenance

๐Ÿ“ Monthly Tasks
โ””โ”€ Periodic operations

๐Ÿ“ Emergency
โ””โ”€ Critical procedures

Strategy 4: By Environmentโ€‹

For: Multi-environment setups

๐Ÿ“ Development
โ””โ”€ Local dev commands

๐Ÿ“ Staging
โ””โ”€ Testing procedures

๐Ÿ“ Production
โ””โ”€ Live deployment

Strategy 5: By Service/Projectโ€‹

For: Microservices

๐Ÿ“ API Service
โ””โ”€ API-specific commands

๐Ÿ“ Frontend App
โ””โ”€ Frontend operations

๐Ÿ“ Worker Service
โ””โ”€ Background jobs

๐Ÿ“ Shared
โ””โ”€ Common utilities

Strategy 6: Hybrid Approachโ€‹

Combine strategies:

๐Ÿ“ Production
โ”œโ”€ Docker
โ”œโ”€ Database
โ””โ”€ Monitoring

๐Ÿ“ Staging
โ”œโ”€ Docker
โ”œโ”€ Database
โ””โ”€ Testing

๐Ÿ“ Development
โ”œโ”€ Local Setup
โ””โ”€ Tools

Advanced Organizationโ€‹

Nested Categories (Workaround)โ€‹

Not directly supported, but use naming:

๐Ÿ“ Docker: Containers
๐Ÿ“ Docker: Images
๐Ÿ“ Docker: Compose
๐Ÿ“ Docker: Networks
๐Ÿ“ Docker: Volumes

Filter by "Docker:" to see all

Category Conventionsโ€‹

Team standards:

# Team Snippet Organization

## Naming Convention
[Team] - [Technology] - [Purpose]

Examples:
- DevOps - Docker - Deployment
- Backend - Database - Backup
- Frontend - Build - Production

## Color Coding
- Blue: Infrastructure
- Green: Deployment
- Red: Emergency
- Purple: Monitoring

## Description Template
Purpose: [What is this for]
Contains: [Types of snippets]
Owner: [Team responsible]
Updated: [Last review date]

Category Templatesโ€‹

Create category set for new project:

Default Project Categories:
1. Setup & Configuration
2. Development Commands
3. Build & Test
4. Deploy to Staging
5. Deploy to Production
6. Monitoring & Logs
7. Troubleshooting
8. Maintenance

Export/Import:

1. Export categories as template
2. Import for new project
3. Consistent organization

Smart Categories (Virtual)โ€‹

Filter-based views:

Recently Used
โ”œโ”€ Shows last 10 used snippets
โ””โ”€ Across all categories

Favorites
โ”œโ”€ Starred snippets
โ””โ”€ Quick access

Most Used
โ”œโ”€ Top 20 by usage count
โ””โ”€ Find popular commands

Search Within Categoriesโ€‹

Search only in category:

1. Select category filter
2. Type search query
3. Results filtered to category

Example:

Category: Docker
Search: "restart"
Results: Only Docker snippets with "restart"

Search all categories:

1. Clear category filter (select "All")
2. Type search query
3. Results from all categories
4. Category shown for each result

Category Statisticsโ€‹

View Category Infoโ€‹

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Docker Commands ๐Ÿณ โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 12 snippets โ”‚
โ”‚ 47 total executions โ”‚
โ”‚ Last used: 2 hours ago โ”‚
โ”‚ Created: Jan 15, 2024 โ”‚
โ”‚ โ”‚
โ”‚ Most used snippet: โ”‚
โ”‚ โ†’ Container Restart (15 uses) โ”‚
โ”‚ โ”‚
โ”‚ Recently added: โ”‚
โ”‚ โ†’ Cleanup Unused Images (2 days ago) โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Category Analyticsโ€‹

Insights:

๐Ÿ“Š Category Usage This Week:

1. Docker Commands (45 executions)
2. Git Operations (32 executions)
3. Database (18 executions)
4. Deployment (12 executions)

Most active day: Wednesday
Peak hour: 2-3 PM

Import & Export Categoriesโ€‹

Export Categoriesโ€‹

Export category structure:

1. Click "Export Categories"
2. Select which categories
3. Include snippets: Yes/No
4. Save .json file

Export format:

{
"categories": [
{
"name": "Docker Commands",
"description": "All Docker operations",
"color": "blue",
"icon": "๐Ÿณ",
"snippets": [...]
}
]
}

Import Categoriesโ€‹

Import category set:

1. Click "Import Categories"
2. Select .json file
3. Handle conflicts:
- Skip existing
- Merge
- Replace
4. Complete import

Share Categoriesโ€‹

With team:

1. Export category with snippets
2. Share file via:
- Email
- Slack
- Git repository
- Shared drive
3. Team imports
4. Consistent structure

Best Practicesโ€‹

1. Start Simpleโ€‹

Don't over-organize:

โœ“ Start with 5-7 broad categories
โœ“ Add more as library grows
โœ“ Refine over time

โœ— Create 30 categories immediately

2. Clear Boundariesโ€‹

Avoid overlap:

โœ“ Docker Commands
โœ“ Kubernetes Operations

โœ— Docker Commands
โœ— Container Operations (overlaps!)

3. Consistent Namingโ€‹

Pick a pattern:

โœ“ Docker Commands
โœ“ Git Operations
โœ“ Database Tasks

โœ— Docker Commands
โœ— Working with Git
โœ— DB

4. Regular Reviewโ€‹

Monthly maintenance:

โ–ก Remove empty categories
โ–ก Merge similar categories
โ–ก Rename for clarity
โ–ก Update descriptions
โ–ก Check color coding

5. Team Alignmentโ€‹

For teams:

1. Document category strategy
2. Share with team
3. Regular sync meetings
4. Collect feedback
5. Iterate

6. Limit Category Countโ€‹

Optimal range:

Personal use: 8-15 categories
Small team: 10-20 categories
Large team: 15-30 categories

Too many = hard to navigate
Too few = everything mixed

7. Use Uncategorized Wiselyโ€‹

Temporary holding:

Use for:
โœ“ Quick saves (categorize later)
โœ“ Experimental snippets
โœ“ One-time commands

Don't use for:
โœ— Permanent storage
โœ— Important snippets

Troubleshootingโ€‹

Can't Find Snippetโ€‹

Issue: Lost snippet after reorganizing

Solutions:

  1. Clear category filter
  2. Search by name
  3. Check "Uncategorized"
  4. Check "Recently Modified"

Category Won't Deleteโ€‹

Issue: Delete button disabled

Cause: Category has snippets

Solution:

  1. Move snippets first
  2. Then delete category

Or:

  • Choose "Move to Uncategorized"
  • When deleting

Too Many Categoriesโ€‹

Issue: 40+ categories, hard to navigate

Solutions:

  1. Merge similar categories
  2. Use naming prefixes
  3. Create "Archive" category
  4. Export rarely-used categories

Category Color Not Showingโ€‹

Issue: All categories same color

Cause: Theme settings or color not saved

Fix:

  1. Edit category
  2. Select color again
  3. Save
  4. Refresh view

Tips & Tricksโ€‹

1. Quick Category Switchโ€‹

Keyboard shortcuts:

Ctrl+1 โ†’ Category 1
Ctrl+2 โ†’ Category 2
...
Ctrl+9 โ†’ Category 9
Ctrl+0 โ†’ All categories

Find category fast:

Start typing category name in filter
Dropdown filters as you type
Press Enter to select

3. Drag & Drop Organizationโ€‹

Drag snippet โ†’ Drop on category
Instant categorization!

4. Bulk Categorizationโ€‹

Organize many at once:

1. Select multiple snippets
2. Right-click โ†’ "Assign Category"
3. Choose category
4. All assigned

5. Category Templatesโ€‹

Save category structures:

Export categories without snippets
Use as template for new projects
Instant organization system

6. Color-Code by Priorityโ€‹

๐Ÿ”ด Red: Critical/Emergency
๐ŸŸ  Orange: Important
๐ŸŸก Yellow: Medium priority
๐ŸŸข Green: Low priority
โšช Gray: Archive/Deprecated

7. Icon Legendโ€‹

Create reference:

๐Ÿณ Docker
๐Ÿ“ฆ Node.js/npm
๐Ÿ Python
๐Ÿ—„๏ธ Database
๐ŸŒ Web/HTTP
๐Ÿ”’ Security

Next Stepsโ€‹