[PR #1532] [MERGED] feat(extension): add a keyboard shortcut to save page #1855

Closed
opened 2026-03-02 11:59:29 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/1532
Author: @SConaway
Created: 6/5/2025
Status: Merged
Merged: 6/7/2025
Merged by: @MohamedBassem

Base: mainHead: ext-shortcut


📝 Commits (1)

  • 0393378 feat(extension): add a keyboard shortcut to save page

📊 Changes

2 files changed (+71 additions, -24 deletions)

View changed files

📝 apps/browser-extension/manifest.json (+16 -2)
📝 apps/browser-extension/src/background/background.ts (+55 -22)

📄 Description

Description

This PR adds a new keyboard shortcut (Ctrl/Cmd+Shift+E by default -- Ctrl+Shift+K was not working for some reason) that allows users to save the current page to Karakeep without needing to use the context menu or click the extension icon (which is often hidden).

Closes #1058.

Method

When triggered, the background script captures the current tab's URL, stores it in session storage, and then opens the extension popup to complete the save flow. This mirrors the behavior of the context menu option. The context menu handler was refactored to reuse the same logic.

Testing

To test, download and install the appropriate .zip file below:

For Firefox (and Firefox-based browsers like Zen):
Go to about:debugging, click This Firefox in the left sidebar, then click Load Temporary Add-on. Select the .zip file to install.

For Chrome (and Chromium-based browsers):
Go to chrome://extensions, enable Developer mode, extract the .zip file, and drag the extracted folder onto the tab to install.

Notes

To change the keyboard shortcut:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karakeep-app/karakeep/pull/1532 **Author:** [@SConaway](https://github.com/SConaway) **Created:** 6/5/2025 **Status:** ✅ Merged **Merged:** 6/7/2025 **Merged by:** [@MohamedBassem](https://github.com/MohamedBassem) **Base:** `main` ← **Head:** `ext-shortcut` --- ### 📝 Commits (1) - [`0393378`](https://github.com/karakeep-app/karakeep/commit/03933782fde8d7e176c075dec2947652aa851403) feat(extension): add a keyboard shortcut to save page ### 📊 Changes **2 files changed** (+71 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `apps/browser-extension/manifest.json` (+16 -2) 📝 `apps/browser-extension/src/background/background.ts` (+55 -22) </details> ### 📄 Description # Description This PR adds a new keyboard shortcut (`Ctrl/Cmd+Shift+E` by default -- `Ctrl+Shift+K` was not working for some reason) that allows users to save the current page to Karakeep without needing to use the context menu or click the extension icon (which is often hidden). Closes #1058. # Method When triggered, the background script captures the current tab's URL, stores it in session storage, and then opens the extension popup to complete the save flow. This mirrors the behavior of the context menu option. The context menu handler was refactored to reuse the same logic. # Testing To test, download and install the appropriate `.zip` file below: - [test-chrome.zip](https://github.com/user-attachments/files/20618135/test-chrome.zip) - [test-firefox.zip](https://github.com/user-attachments/files/20618137/test-firefox.zip) **For Firefox (and Firefox-based browsers like Zen):** Go to `about:debugging`, click `This Firefox` in the left sidebar, then click `Load Temporary Add-on`. Select the `.zip` file to install. **For Chrome (and Chromium-based browsers):** Go to `chrome://extensions`, enable **Developer mode**, extract the `.zip` file, and drag the extracted folder onto the tab to install. ## Notes To change the keyboard shortcut: - **Firefox**: Follow the steps here: [Manage extension shortcuts in Firefox](https://support.mozilla.org/en-US/kb/manage-extension-shortcuts-firefox) - **Chrome**: Visit `chrome://extensions/shortcuts` and change as desired --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 11:59:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1855
No description provided.