Jump to content

Edit clipboard before pasting

Recommended Posts

@manavortex @Ovi What kind of modification do you have in mind when wanting to change text in the item you've copied to clipboard?


To be clear, we have no intention of adding a text editor to Alfred to edit arbitrary text before pasting, but there may be some clever ways you can do what you want with a workflow or snippet.


For example, if you have text that you want to paste with a few repeated changes every time (e.g. change someone's name, the price of something, etc), that could be achieved using a dynamic placeholder in a snippet. It's a much more efficient way and predictable way to paste something with specific elements changed every time.


If that's what you have in mind, take a look at the built-in workflow Getting Started > Snippet Triggers to see them in action. You'll also find a tutorial on using Snippet Triggers with dynamic content here:



If you have something else in mind, do share, as there may very well be ways to do it already :)





Link to post
Share on other sites



my main use case is copying URLs from Safari and removing the referrers via regex. Currently I'm doing it via keyboard maestro, my regex (for now) is 



If I have an URL like 


that basically leaves



Since Alfred already has a builtin clipboard manager, it would be my tool of choice. 


What I'd like would be one of the following: 

  • Trigger an Alfred workflow on external clipboard change (to avoid endless recursion)
    • Advantage: Greater flexibility
    • Disadvantage: Another kind of trigger that you might not want to replace
  • A feature to the Alfred clipboard manager to replace clipboard content based on rules
    • Advantage: More foolproof
    • Disadvantage: Would probably require major changes..? 

Please let me know how I can achieve that with built-in means! 

Edited by manavortex
wrong syntax highlighting
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...