Jump to content


  • Posts

  • Joined

  • Last visited

eupraxia's Achievements

Helping Hand

Helping Hand (3/5)



  1. What this workflow does: This Alfred workflow wraps whatever text is highlighted on your screen in pre-specified text strings. By default, this workflow will wrap the highlighted text in double carets (i.e. "^^"), but you can very easily change what text to add right before and after your highlighted text by simply editing the code to replace the `'^^'`'s on each side of `argv` with whatever text you want (making sure that whatever text you want to add is also surrounded by quotation marks). This is how the Ruby code that powers workflow looks "out of the box": print ARGV.map{ |argv|'^^' + argv + '^^' }.join If I wanted to change the workflow to wrap a piece of text—like "hello, world", for example—such that it came out "Well, hello, world!", all I would have to do is edit the code to look like this: print ARGV.map{ |argv|'Well, ' + argv + '!' }.join How to use this workflow: To use this workflow, visit my GitHub page for this workflow, download the "wrap-selected-text.alfredworkflow" file, and open the file with Alfred.
  • Create New...