Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm lazy and I'd like to simplify pasting links with spaces into a word document. I know it can be done by enclosing a link in chevrons:

<D:\my document.docx>

Is there a way to automate that process so you select the bit you want to link, press some keyboard shortcut and voila, it makes it a link with the chevrons to make sure any spaces are handled correctly?

share|improve this question
up vote 2 down vote accepted

This can be done via AutoHotKey

You will press a key combination, it will copy and edit the value for you. When you paste, your desired string will exist.

EG, instead of pressing CTRL+C , you would press ALT+C to trigger this behaviour.

This is about the clipboard in AutoHotKey and should give you more than enough to get going http://www.autohotkey.com/docs/misc/Clipboard.htm

share|improve this answer
    
+1 / accepted. I can see a load of other uses for AutoHotKey - thanks! :-) – Jon Cage Jun 11 '14 at 12:24

In case anyone else finds this useful, the following script will paste these links when you hit alt+v:

!v::
SendInput <%clipboard%>{SPACE}
return
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .