How can I jump 2 words at a time throughout Windows?

takanuva15

Ever since I learned about using Ctrl with the arrow keys, backspace key, and delete key, I've felt my typing and editing productivity go up significantly.

I'd like to know if there's an easy way to define a shortcut to jump 2 words at a time, delete 2 words at a time, etc. that can be used natively throughout Windows like Ctrl + can?

If not, is it possible to implement via something like an AutoHotKey script? (eg. Ctrl + Alt + to jump 2 words to the left or Ctrl + Alt + Backspace to delete 2 words at a time?)

JJohnston2

AutoHotkey will do exactly that. Or you can tailor the shortcut keys to be context specific and only trigger when certain programs are active.

#Persistent

#IfWinActive      ; Every window. Change this line to tailor specificity
^!Left::SendInput, ^{Left 2}
^!Right::SendInput, ^{Right 2}
^!Backspace::SendInput, {Backspace 2}           ; delete two characters at a time
^!Backspace::SendInput, +^{Left}{Backspace}     ; delete a word at a time
^!Backspace::SendInput, +^{Left 2}{Backspace}   ; delete two words at a time

Pick only one of the three definitions for Ctrl + Alt + Backspace obviously.

Hotkey modifiers are in the AutoHotkey help file, but for quick reference, ^ is Control, ! is Alt, + is Shift and # is the Windows button.

If you need to make a multi-line macro with sleep statements or something, start on the next line after the hotkey definition and end the macro with a Return statement.

^!Left::
    SendInput, ^{Left 2}
    Sleep 200                   ; Sleeping 10 to 200ms can help for 
                                ; reliability in multi-key-press functions,
                                ; depending on what you're doing
Return

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I get the "current" IANA time zone abbreviation throughout time in ICU4J?

How can I efficiently jump to a specific time in a large log?

How can I plot a line for one country throughout time via ggplot?

How can I increase the size of the pinned jump list in Windows 7?

How can I iterate throughout on list of nested java objects?

How can I use the same mongodb connection throughout the app?

How can I make the header stick throughout the Page

How can I split a line in 2 by words/characters? (Bash) (Regex)

How can I disable 'Data Analysis in Real Time component' in windows 2012 R2

How Can I Improve This Jump? Pygame

How can I tell if jump is absolute or relative?

How can i deal with the last jump?

How can I make a ball jump wherever it is?

In python, how can I jump to a def?

C++ How can I restrict the combinations of words to make a phrase to 2 to 3 words?

How to jump words in text editor

How can I convert time duration written as' in words (Xhours Xminutes) to numbers using R?

How can I measure the time of a drag on my Windows Phone?

How can I update the registry values every time Windows starts?

Windows: How can I see disk space used over time?

How I can call the windows Date and Time Process

How can I run a Python script at an exact time in Windows 10?

How could I measure the elapsed time that my algorithm takes throughout its running?

I need advice on code to change the color of certain words throughout a sentence

How can I access a constraint throughout my class not just where I set it?

How can I jump (e.g., keyboard shortcut) to the first file of the list of the results returned by Windows Explorer after doing a file search?

Can I jump to a jump by its number in vim?

How can i find the five longest words in stringr::words

How can I group words of a String based on a list of words?