Comments (11)
The main reason I use the Option key is because it feels more native in my opinion. A bunch of menus in macOS alter its behavior when you press the Option key - some menu items change their name, some new items are added. Because of that, Cocoa has built-in mechanisms for altering menu items and it works really nice and as intuitive as default macOS apps.
I'd like to avoid introducing another global shortcut. However, I can add a configuration option which will turn on/off pasting by default:
defaults write org.p0deje.Maccy pasteByDefault true # this will paste by default and NOT paste when selected with the Option key pressed
defaults write org.p0deje.Maccy pasteByDefault false # this will NOT paste by default and paste when selected with the Option key pressed
Please react with 👍/👎 if you'd like to have that.
from maccy.
Nevermind. It seems like the performance is slow only during development, but when I build app for release, it is as fast as it should be.
I now have a working solution which I am going to test for some time before making a release.
from maccy.
I thought about this a little more and instead of making this an option, maybe you can just create a second (configurable) hotkey. Cmd-Shift-c put's the selected entry in the clipboard, while Cmd-Shift-v puts it in the clipboard and pastes it right away. Would that be possible?
from maccy.
I would like an instant-paste feature as well, but I think for me it would be more convenient to have the item in the buffer as well. Maybe this can be done with different (configurable, like the hotkey) key combinations. I'd suggest return / option-return / command-return.
from maccy.
I attempted to implement it as part of #7 (see my comment) so it could be done using Shift+Enter
, but had troubles dealing with macOS accessibility - sometimes the paste worked fine and sometimes it didn't work at all. I might just not know how to do it properly.
I'll be happy to accept PR which implements this feature though.
from maccy.
@p0deje here you can see how Clipy triggers paste:
https://github.com/Clipy/Clipy/blob/develop/Clipy/Sources/Services/PasteService.swift
from maccy.
@saeedseyfi Thanks for the link, I managed to implement the paste.
However, the way it is implemented is pretty slow when we have 100+ records in history. The reason for slowness is somewhere deep inside the Cocoa framework and how it calculates menu size, so I'm not sure what to do about that.
@ilearnio @frank-f @saeedseyfi Are you ok reducing the history size from 999 to 99 to have this feature?
from maccy.
Sounds good to me as a user, but still hope that's a temporary solution. It's strange though that a framework is used to calculate the menu size when calling paste
from maccy.
Does this feature currently work? Right now it's not doing anything for me
from maccy.
Not released yet.
from maccy.
This is now available in 0.4.0.
from maccy.
Related Issues (20)
- Ability to edit/remove items from the list HOT 4
- Clipboard retention is limited to a day or less HOT 5
- Incorrect check for "Convert text to simplified Chinese" hotkey - it's not set in system settings, and I can't make Maccy to use it HOT 6
- Menu Visibility Issue: Seeking Assistance to Restore Footer Access in App HOT 1
- UI Bug, character deletion during search only removes last character
- Paste shortcuts not working in Chrome HOT 3
- pasting will happen only on the main screen of the mac HOT 9
- Cursor is not active in Maccy's search bar by default HOT 2
- Maccy will not stay open if cursor is inside a password field as of macOS 14.4 HOT 12
- Pinning no longer working HOT 2
- Ignore dynamic pasteboard types HOT 3
- Triple Search Results in 0.30.0 After Upgrade from 0.29.4 HOT 3
- Alert Sound on Copy HOT 9
- Defaults domain "org.p0deje.Maccy" does not exist HOT 5
- select & copy several items at a time HOT 1
- Maccy cancels out Spotlight search box HOT 2
- Don't show this again Pop-up HOT 1
- Cannot paste automatically to Spotlight HOT 2
- Drag & Drop support (for images) HOT 3
- Ios App HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maccy.