Welcome to SnippetHub, your command center for managing and expanding your clipboard! SnippetHub helps you store, organize, and quickly access frequently used text, code, and rich content directly within your Chrome browser.
Table of Contents
- Getting Started
- The SnippetHub Interface
- Managing Snippets
- Organizing with Folders
- Searching and Filtering
- Command Palette
- Analytics Dashboard
- Customization
- Account Management
- Data Management (Import/Export)
- Keyboard Shortcuts
- Troubleshooting
1. Getting Started
After installing SnippetHub from the Chrome Web Store, pin the extension to your toolbar for easy access.
First-time setup:
- Click the SnippetHub icon in your Chrome toolbar.
- You will be prompted to sign in. SnippetHub supports Google Sign-In and Email/Password authentication.
- Once signed in, you’ll see the main SnippetHub interface, ready for you to add your first snippet!
2. The SnippetHub Interface
The SnippetHub side panel is divided into several key areas:
- Top Bar: Contains the SnippetHub logo and your user avatar. Clicking your avatar opens a dropdown menu with account options, data management tools, and settings.
- Search Bar: Quickly search your snippets by title, tags, or content.
- Active Filters: Displays any active search queries or folder filters. You can clear them directly from here.
- Main View/Snippet List: This is where all your snippets are displayed. You can expand/collapse individual snippets or use the “Expand All/Collapse All” button.
- Folder and Sort Controls: Located above the snippet list, these allow you to filter snippets by folder and change the sorting order.
- Add Button: At the bottom, click “Add” to open the snippet creation form.
- Modals & Overlays: Various pop-up windows for confirmations, password resets, and the Command Palette.
- Toast Notifications: Small pop-up messages at the bottom of the screen to provide feedback on actions (e.g., “Snippet saved”).
3. Managing Snippets
Adding a New Snippet
- Click the Add button at the bottom of the main view.
- Enter a Snippet Title.
- Type or paste your content into the rich text editor (powered by Quill.js). You can format text, add links, and code blocks.
- Placeholders:
{{cursor}}: When inserting text into an editor using a keyword (see below), the cursor will be placed at this exact spot.{{clipboard}}: When copying a snippet, this placeholder will be replaced with the current content of your system clipboard.
- Placeholders:
- Optionally, add a Keyword (e.g.,
;sig). If you type this keyword followed by a space or Enter in any standard input field (like a text area or email composer), SnippetHub will automatically replace it with your snippet content.- Important: Keywords must start with a semicolon (
;). - If you assign a keyword that’s already in use by another snippet, you’ll be prompted to reassign it, removing it from the old snippet.
- Important: Keywords must start with a semicolon (
- Optionally, assign a Category and Tags (comma-separated) for better organization and filtering.
- Optionally, select an existing Folder for the snippet.
- Click Save Snippet.
Editing a Snippet
- Hover over the snippet you wish to edit in the snippet list.
- Click the More Actions (three dots) button on the right side of the snippet header.
- Select Edit.
- The snippet form will open, pre-filled with the snippet’s details. Make your changes.
- Click Save Snippet.
Cloning a Snippet
- Hover over the snippet you wish to clone.
- Click the More Actions (three dots) button.
- Select Clone.
- A new snippet form will open with the cloned content and ” (Copy)” appended to the title.
- Modify as needed and click Save Snippet.
Deleting a Snippet
- Hover over the snippet you wish to delete.
- Click the More Actions (three dots) button.
- Select Delete.
- Confirm the deletion when prompted.
Favoriting a Snippet
- Click the Star icon in the snippet header to toggle its favorite status.
- Favorited snippets appear at the top of the list when sorted by “Default”.
Copying Snippets
- From the SnippetHub Panel:
- Click the Clipboard icon in the snippet header.
- The snippet’s text content (with placeholders processed) will be copied to your clipboard. A “Copied!” toast notification will appear.
- Using Keywords (In any input field):
- If a snippet has a keyword (e.g.,
;mysig), simply type that keyword followed by a space or Enter into any compatible text input field (like an email body or a text area on a webpage). - The keyword will instantly be replaced by your snippet’s content.
- If a snippet has a keyword (e.g.,
Reordering Snippets (Drag & Drop)
- Ensure your snippets are sorted by Default (this is the only sort method that allows drag & drop reordering).
- Click and drag a snippet from its header area.
- Drag it to your desired position within the list. A dashed border will indicate the drop target.
- Release the mouse button to drop the snippet. Its new order will be saved automatically.
4. Organizing with Folders
Folders help you categorize and manage your snippets more effectively.
Creating a New Folder
- Click the Folder Actions (three dots) icon next to the folder select button.
- Select New Folder.
- Enter a name for your new folder and press Enter or click OK.
Moving Snippets to a Folder
- Hover over the snippet you wish to move.
- Click the More Actions (three dots) button.
- Hover over Move to Folder to reveal a sub-menu.
- Select the desired folder from the list. You can also select “No Folder” to remove it from any folder.
Viewing Snippets by Folder
- Click the Folder Select button (which usually says “Show All” or the current folder name).
- Choose the folder you want to view from the dropdown list.
- The snippet list will update to show only snippets within that folder.
Renaming a Folder
- First, select the folder you want to rename using the Folder Select button.
- Click the Folder Actions (three dots) icon.
- Select Rename Folder.
- Enter the new name for the folder.
- Note: Renaming a folder will update all snippets currently assigned to that folder.
- You cannot rename the “Show All” view.
- Click OK.
Deleting a Folder
- First, select the folder you want to delete using the Folder Select button.
- Click the Folder Actions (three dots) icon.
- Select Delete Folder.
- Confirm the deletion.
- Warning: Deleting a folder will move all snippets contained within it to “No Folder”. The snippets themselves will not be deleted.
- You cannot delete the “Show All” view.
5. Searching and Filtering
Use the Search Input at the top of the panel to quickly find snippets.
- Type any part of a snippet’s title, category, tags, or content to filter the list.
- The search results will highlight the matching terms.
- To clear the search, click the X icon in the search bar or delete your query.
- Active Filter Pills: When a search query or folder is selected, a “pill” appears below the search bar indicating the active filter. Click the “X” on the pill to clear that specific filter.
6. Command Palette
The Command Palette allows you to quickly execute actions or navigate SnippetHub using just your keyboard.
- Press Ctrl+Shift+P (Windows/Linux) or Command+Shift+P (Mac) to open the Command Palette.
- Start typing to search for commands (e.g., “new snippet”, “export”, “dark theme”, “sort by title”).
- Use Arrow Up/Down to navigate the results.
- Press Enter to execute the selected command.
- Press Esc to close the Command Palette.
7. Analytics Dashboard
The Analytics Dashboard provides insights into your snippet usage.
- Click your user avatar in the top right corner.
- Select Analytics Dashboard.
- Here you can view:
- Total Snippets
- Total Uses (how many times your snippets have been copied)
- Estimated Characters Saved
- Estimated Time Saved
- A Leaderboard of your most used snippets.
- Click the X icon in the dashboard header to return to your snippets.
8. Customization
Changing Themes
- Click your user avatar in the top right corner.
- Under Settings, find the Change Theme section.
- Select your desired theme (Default Light, Default Dark, Solarized, Monokai).
- The theme will apply instantly and be saved for future sessions.
Customizing Category Colors
You can assign unique accent colors to your snippet categories. These colors will appear as a subtle accent bar at the top of each snippet card.
- Click your user avatar in the top right corner.
- Under Settings, select Customize Colors.
- A modal will appear, listing all categories you currently use.
- Click the color picker next to each category to choose a new color.
- Click Save to apply and store your custom colors.
9. Account Management
SnippetHub uses Firebase for secure user authentication, allowing you to sync your snippets across multiple devices where you’re logged into Chrome with the same account.
Signing In
- Sign In with Google: Click the “Sign In with Google” button on the sign-in screen. This will open a Google authentication pop-up.
- Sign In with Email: Enter your email and password in the respective fields on the sign-in screen and click “Sign In with Email”.
Signing Up with Email
- On the sign-in screen, enter your desired email and a password (minimum 6 characters) in the Email and Password fields.
- Click the “Create Account” button.
Forgot Password
- On the sign-in screen, click the “Forgot Password?” link.
- Enter your email address in the modal that appears.
- Click “Send Reset Link”. A password reset email will be sent to your inbox.
Changing Password
This option is available only for users who signed up with Email/Password.
- Click your user avatar in the top right corner.
- Under Account Security, select Change Password.
- Enter your current password, then your new password (minimum 6 characters).
- Click Change Password.
Signing Out
- Click your user avatar in the top right corner.
- Select Sign Out.
- Note: Signing out will clear your local snippets and require you to sign in again to access them.
Deleting Your Account
WARNING: This action is irreversible and will permanently delete all your snippets, folders, and custom colors associated with your account from Firebase.
- Click your user avatar in the top right corner.
- Under Account Security, select Delete Account.
- A confirmation modal will appear. Read the warning carefully.
- To proceed, you must type “DELETE MY ACCOUNT” (case-sensitive) into the first field and re-enter your account email into the second field.
- Click Delete Permanently.
10. Data Management (Import/Export)
SnippetHub allows you to export your data for backup or to transfer it, and import data from a previously exported JSON file.
Exporting Snippets
- Click your user avatar in the top right corner.
- Under Data Management, select Export to JSON….
- Your browser will download a
snippets.jsonfile containing all your snippets, folders, and category colors.
Importing Snippets
- Click your user avatar in the top right corner.
- Under Data Management, select Import from JSON….
- A file dialog will open. Select your
snippets.jsonfile (or a compatible JSON file). - Important Notes on Importing:
- Existing snippets will not be overwritten based on ID. New IDs will be generated for imported snippets if they conflict or don’t have one.
- If imported snippets have keywords that conflict with your existing snippets, the imported keywords will be renamed (e.g.,
mykeybecomesmykey_1). A text file summarizing these renames will be downloaded after import. - Folders and Category Colors from the imported file will be merged with your existing ones.
11. Keyboard Shortcuts
- Open Command Palette:
Ctrl+Shift+P(Windows/Linux) orCommand+Shift+P(Mac) - Navigate Command Palette Results:
Arrow Up,Arrow Down - Execute Command Palette Item:
Enter - Close Command Palette / Modals:
Esc - Trigger Snippet Keyword: Type the keyword followed by
SpaceorEnter(in compatible input fields)
12. Troubleshooting
- Snippets not appearing after sign-in: Ensure you have an active internet connection. If the issue persists, try signing out and signing back in.
- Keywords not working:
- Ensure the keyword starts with a semicolon (
;). - Verify you are typing the exact keyword followed by a space or Enter.
- Check if the target input field is a standard text input (
<input>,<textarea>) or a rich text editor (like Gmail’s compose box). - Confirm you are signed into SnippetHub.
- Ensure the keyword starts with a semicolon (
- Cannot upload avatar: (Note: Avatar upload feature is currently commented out in the provided code, so this section would be removed in final documentation). If this feature were enabled, ensure your image file is a supported format (e.g., JPG, PNG) and within size limits.
- Copying fails: Ensure your browser grants clipboard permissions to the extension. Try restarting Chrome if issues persist.
- “Extension context invalidated” errors: This can sometimes happen with browser updates or prolonged inactivity. Often resolved by restarting Chrome or re-enabling the extension.
- Unsaved changes warning: If you see “You have unsaved changes. Are you sure?” when trying to close the snippet form, it means you’ve modified the title or content without saving. Click “Save Snippet” to keep your changes, or “Cancel” to discard them.
