Comments (4)
Agreed. 99% of the time I want the workflow to paste directly into the frontmost application. On those rare cases where I want it in the clipboard I would like to use cmd+return to copy to the clipboard instead.
It would be great if this were updated for Alfred 5 and then used the user configuration page to allow you to customize the default action when you push return.
I ended up changing it myself. I'm no coder, so please follow these steps at your own risk:
-
In the workflow, right-click on the top Copy to Clipboard (the one labeled "auto-paste") and configure object. Uncheck both of the checkmarks. Optionally, you could right-click again and edit the note to say "copy"
-
Right-click the bottom Copy to Clipboard action, configure object, and then check both boxes. Optionally, you could edit the note to say auto-paste.
-
Double click on the ⌘ and change the modifier subtext to "Copy {query} to the clipboard instead of pasting" (or whatever you want it to say).
[alternatively, instead of these first three steps, you could just switch the outputs of the filters and the cmd key modifier, but I thought my way was easier and less confusing.] -
Now double click on the script filter. In the bottom left of that window, there should be a folder icon. Click that to reveal the workflow in Finder.
-
It's probably a good idea to quit Alfred preferences while doing the next steps. It might not matter, but that's what I did just to be safe.
-
Open the emoji.js with Textedit.
-
Search for "let verb"
-
Change the verb to "paste" (or insert) and the preposition to "to frontmost app" (or whatever you want it to say).
-
Save and close emoji.js.
Now it should paste automatically by default. The only downside of doing it this hack way is that the alternate actions (control and option keys) also paste instead of going to the clipboard. But in my usage, I use that rarely and don't mind pasting it and then copying it again if I ever do need that functionality.
You might also want to disable the auto-update in case that would cause these hacks to break. Hope that works for you!
from alfred-emoji.
It is indeed possible to customise the shortcuts, see for example the 1Password Workflow:
You use a popover like #88 then the mod
subtext and action is changed in the code. After #88 I can also make the search and snippet keyword be user-settable, then look into the custom shortcuts.
from alfred-emoji.
I did not know Alfred 5 had been released. Reading the release notes, I don't see anything that makes it immediately obvious that keyboard shortcut remapping is possible, but it could be. If someone wants to research that, we welcome PRs.
from alfred-emoji.
from alfred-emoji.
Related Issues (20)
- Emoji choices never appear HOT 7
- No output on query HOT 1
- doesn't work on Ventura 13.3(beta) HOT 10
- Missing emoji icons HOT 3
- New Emojis in Version 15.0 do not display icons. HOT 2
- Emoticons HOT 1
- Auto-paste by default HOT 5
- Search doesn't work as expected HOT 1
- is there any way to actually get all the skin tones in Alfred Results?
- Recently-added emojis don't have thumbnails HOT 1
- skin_tone not applied to all emojis that support skin tones HOT 1
- Super-fast alternative in Golang
- Local builds should skip auto-updating
- Update skin tone docs
- v2.0.0 not working on Alfred 4 HOT 5
- Implement major version checking in v2
- Tweaks to updater bash script. HOT 1
- Consider adding other languages HOT 1
- Removing auto-updater for Alfred Gallery HOT 15
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 alfred-emoji.