giovanni Posted November 10, 2020 Share Posted November 10, 2020 Hi all, I would like to create a shortkey to paste to the front most application the clipboard item before the last. That can be achieved accessing {clipboard:1}, copying to the clipboard, and then selecting 'automatically paste to front most app'. However, that copies the item to the clipboard, therefore making it the last (most recent) item in the clipboard history. Is there a way to access and paste items from the clipboard history without changing the order of the history itself? Thanks! Giovanni Link to comment
vitor Posted November 10, 2020 Share Posted November 10, 2020 4 hours ago, giovanni said: Is there a way to access and paste items from the clipboard history without changing the order of the history itself? Alfred Preferences → Features → Clipboard History → Advanced → Move items to top of clipboard history when used (uncheck). Link to comment
giovanni Posted November 10, 2020 Author Share Posted November 10, 2020 (edited) Thank you for getting back to me @vitor! I had missed this setting, cool! However, if my goal is to use a hotkey, the only way I could find to paste {clipboard:1} is to copy to clipboard, and then paste to the front most application. In that case, the history order will be changed. Is there an alternative way to paste to the front most application via a hotkey, without changing the order? Thanks!! Giovanni Edited November 10, 2020 by giovanni Link to comment
vitor Posted November 11, 2020 Share Posted November 11, 2020 5 hours ago, giovanni said: Is there an alternative way to paste to the front most application via a hotkey, without changing the order? Check the Mark item as transient in clipboard box in the Copy to Clipboard Output. giovanni and Chris Messina 2 Link to comment
giovanni Posted November 11, 2020 Author Share Posted November 11, 2020 for the record, this does not change the order as it is shown by the 'viewer hotkey', but the clipboard content is changed... not sure this is the intended behavior? to summarize: I copy string A to clipboard [⌘V will paste string A] I copy string B to clipboard [⌘V will paste string B] I use my ultra-simple workflow to paste {clipboard:1}, which is string A, using the hotkey ⌘⌥V ⌘V will now paste string A, while I was expecting it to paste string B, based on the clipboard history I see using the 'viewer hotkey' thanks again for your help Giovanni Link to comment
vitor Posted November 11, 2020 Share Posted November 11, 2020 Then go for the simple and obvious solution. If you’re using {clipboard:1} (i.e. a fixed number) and auto-pasting it to the frontmost app, simply add another Copy to Clipboard Output after it which also copies {clipboard:1} (which previously was {clipboard:0}) but don’t paste. Alfred won’t make it a duplicate, meaning you’re just switching the order back again. Chris Messina and giovanni 1 1 Link to comment
giovanni Posted November 11, 2020 Author Share Posted November 11, 2020 that's a brilliant workaround. Thanks!! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now