Skip to content

triuzzi/tab-shortcuts

Repository files navigation

🗂️ Tab Shortcuts Extension

A Chrome extension that enhances browser productivity with keyboard shortcuts and UI controls for tab management and GitHub workflow optimization.

🛠️ Features

This extension provides the following functionalities:

  • Duplicate Tab: Creates a duplicate of the current active tab (shortcut: Ctrl+Shift+D)
  • Pin Tab: Toggles the pinned state of the current active tab (shortcut: Ctrl+Shift+P)
  • New Tab Here: Opens a new tab immediately after the current one, linked to it as the opener so closing it returns focus to the original tab (shortcut: must be configured)
  • New Tab Here (Background): Same as above, but the new tab opens in the background (shortcut: must be configured)
  • Prevent Tab Close: Prevents the current tab from being accidentally closed (shortcut: must be configured)
  • Collapse Translation Files: On GitHub PR pages, collapses all translation files (*.json with 2-letter language codes) to reduce visual clutter (shortcut: must be configured)
  • Convert Relative Time: On GitHub pages, converts relative time stamps (like "2 hours ago") to absolute time format (like "10 September 2025, 10:15") (shortcut: must be configured)

All features can be accessed via:

  • Keyboard shortcuts
  • Extension popup menu (click the extension icon)

💻 Usage

For General Tab Management

  • Use Ctrl+Shift+D to duplicate the current tab
  • Use Ctrl+Shift+P to pin or unpin the current tab
  • Configure a shortcut for prevent tab close via chrome://extensions/shortcuts

For GitHub Translation Files

When reviewing Pull Requests on GitHub with many translation files (like en.json, de.json, etc.):

  1. Navigate to the PR page
  2. Click the extension icon and select "Collapse Translations"
  3. All translation files will be collapsed, making it easier to focus on code changes
  4. Optional: Configure a custom keyboard shortcut via chrome://extensions/shortcuts

For GitHub Time Conversion

When browsing GitHub and want to see exact timestamps instead of relative times:

  1. Navigate to any GitHub page with relative timestamps (issues, PRs, commits, etc.)
  2. Click the extension icon and select "Convert Time to Absolute"
  3. All relative times (like "2 hours ago") will be converted to absolute format (like "10 September 2025, 10:15")
  4. Optional: Configure a custom keyboard shortcut via chrome://extensions/shortcuts

⚙️ Installation

  1. Download and extract the ZIP file
  2. Go to Chrome settings (chrome://extensions/)
  3. Enable "Developer mode" in the top-right corner
  4. Click "Load unpacked" and select the extracted folder
  5. The extension is now installed and ready to use
  6. Optional: Navigate to the Extensions > Keyboard Shortcuts menu to customize shortcuts

🔧 Technical Details

This extension uses:

  • Chrome Extension Manifest V3
  • Background service worker for tab operations
  • Content scripts for GitHub page interaction
  • No external dependencies or network requests

📋 Version History

  • v1.7: New "no mouse → keyboard" icon in light-terminal style with mac window chrome (minimal "no mouse" variant at 16px); redesigned popup with white theme and readable kbd-style shortcut chips; onboarding opens the shortcuts page on install when default bindings can't be set
  • v1.6: Added "New Tab Here" and "New Tab Here (Background)" commands
  • v1.5: Chrome Web Store release
  • v1.4: Added prevent tab close feature
  • v1.3: Added GitHub relative time to absolute time conversion feature
  • v1.2: Added GitHub translation file collapsing feature and popup interface
  • v1.1: Initial release with tab duplication and pinning functionality

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🚀 Conclusions

All good: your productivity just doubled! Remember to ⭐️ this repository!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors