Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork245
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
SummaryIt would be awesome if I could use massCode as a general purpose clipboard manager on Windows 11. Expected ResultRegister a global keyboard shortcut, for each operating system, that enables you to search for and inject a code snippet into another running application. For example, while using Google Chrome, I want to insert a massCode snippet into a text editor inside a webpage, in the browser. Pressing Actual ResultFeature does not currently exist. Implementation DetailsThis document shows how to implement global OS hotkeys in Electron.js:https://www.electronjs.org/docs/latest/api/global-shortcut |
BetaWas this translation helpful?Give feedback.
All reactions
🚀 1
Replies: 2 comments 2 replies
-
I'm not sure if it's possible to implement the insertion in another application. As for the quick search, there was already a request. I'll think about the implementation. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Technically it's possible, the version that's very cross-platform because it relies on java is here: On the other hand, a very reasonable solution is to have a global shortcut (windows default clipboard manager uses meta+v to trigger the manager) that brings the helper window, and on selecting - just put the contents into the clipboard. This way you don't have to type the content on your own. https://www.electronjs.org/docs/latest/api/clipboard The window for selecting the snippet on global shortcut should be a frameless window |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
FYI - I copied / pasted this from the documentation in Electron linked in the initial commentabove by@pcgeek86: Note The shortcut is global;it will work even if the app does not have the keyboard focus. This module cannot be used before the ready event of the app module is emitted. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I have a similar idea and I post it here instead of starting a new one :) I would like to suggest a feature that enhances snippet insertion efficiency within massCode. The idea is to implement a text expander functionality triggered by a specific shortcut (e.g., §1). Proposed Functionality: Trigger: Typing a designated shortcut (e.g., §1) within the editor.
Benefits:
Considerations:
I believe this feature would significantly improve the user experience for those who rely heavily on organized snippets. |
BetaWas this translation helpful?Give feedback.