Jump to content

Get selection as rich text


Recommended Posts

Connect the Hotkey to a Dispatch Key Combo Output that performs a ⌘C, thus getting the current selection to the clipboard with that information. Do note that what’s stored in Clipboard History is plain text, so if you change to another item and back, it will have lost the formatting. If you have Alfred Preferences → Features → Clipboard History → Merging turned on, you may need to add a short delay so it doesn’t append to the previous entry.

Link to comment

Thanks for the help. I decided to use a simple Shortcut via the Services menu instead. Well, it breaks my workflow as I do most stuff with Alfred, but I don't need it so often.

Link to comment

How can this be done? My use case is this: I select Text with hyperlinks in Mail, press a shortcut and then the clipboard contains the markdown representation.

 

As Alfred’s hotkeys strip the formatting from selected text, I can't pass it to the Shortcut. I see no difference to my first approach with a Hotkey and a Script.

Link to comment

The shortcut does not have an action for text grabbing. It gets it from the system using the services menu. The only actions are:

 

- Make Markdown from <Shortcut Input>

- Copy <Markdown from Rich Text> to clipboard

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...