shamguy3 Posted November 27, 2016 Share Posted November 27, 2016 is there a way to use alfred to use a hotkey to select a full word my cursor is over? Also is there a way to select the same word found elsewhere on the same document? that would be very cool! Link to comment
deanishe Posted November 27, 2016 Share Posted November 27, 2016 Not really. You can kinda-sorta do it by simulating keypresses or mouse clicks. Double-click selects the word under the cursor, so you can use Keyboard Maestro to simulate a double click at the cursor, or use the free cliclick to do it with cliclick dc:$(cliclick p | cut -d: -f2 | xargs). Alternatively, you could use AppleScript (or Keyboard Maestro or cliclick) to simulate ⌥←, ⌥⇧→ (OPT+LEFT ARROW then OPT+SHIFT+RIGHT ARROW), but that works on the text insertion cursor, not the mouse pointer. As applications don't generally make their documents' contents accessible, selecting the same word elsewhere in the document is out of the question unless the application has a command for that feature (such as ^⌘G in Sublime Text). Link to comment
shamguy3 Posted November 27, 2016 Author Share Posted November 27, 2016 thanks for the reply yeah I am using the double click hack with better touch tool. Was wondering of other ways to do it. Yeah I wanted to use sublimes abilities in Coda... 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