Objective
What is CapsLock, the upper-left middle of the keyboard is locked. All along is a magical existence, not only rarely used, more often is a very annoying existence. Universal Magic Small Software AutoHotkey, Programmer's Good Helper, the great savior of the little finger. Provides a simple and reliable solution to help the vast number of programmers to treasure. It is not like the Dvorak keyboard mapping, when you have forced demand for frequent trouble, and not like hhkb, inconvenient to take extra money. You only need a small script that you carry with you, or even an executable file that compiles directly to hundred K. You can take this handy gadget and run it. With it, my mother would never have to worry about my typing.
Features Overview:
Provides VIM-like cursor operation, providing convenient navigation buttons and delete control. Provides the most common editing key combinations for Windows-style. Provide common program shortcuts, provide simple window tag control, the most important, to change ESC to CapsLock, simply the vast vim of the party's gospel.
Design ideas:
- Navigation keys:
H, I, J, K are the traditional navigation direction keys for vim, but must be used in command mode. This leads to any behavior that you want to move the cursor to trouble the left hand finger click ESC First. Since it is necessary to press ESC into command mode and then move the cursor, the efficiency is not as high as two keys at the same time. So, the Capslock+h, I, J, K into the upper and lower left and right four cursor keys, which not only improves the efficiency of the cursor Movement command, more importantly, can be directly in the VIM input mode to move the cursor, more importantly, this key modification and traditional vim keys are not conflicting, Can be used at the same time in SSH, the effect of tension pile, is a big acceleration artifact. More importantly, it works in other places, which is tantamount to moving VIM's cursor operations to the entire operating system. The last additional feature is: press ALT to do all of the above navigation, equivalent to the usual shift+ navigation key effect, you can select the text block. It's also very handy, providing a great complement to Vim's insertion patterns and everyday lightweight editing.
- Delete key
This is nothing to say capslock+{bnm,./} constitutes six delete keys. especially N and. The corresponding delete Word function is basically equivalent to the DB and DW in Vim. Very handy in everyday editing.
- Special characters
The CapsLock + semicolon is designed as a carriage return, reducing the distance the right hand finger moves when the carriage returns. Capslock+ quotes are designed as "=" because this is one of the most commonly used symbols in programming. The caps+ brackets are mapped to parentheses, and the next one is finally reunited, leaving an agitated tear. There is the final appearance of the Big Boss: is CapsLock to ESC, a single function, I have been inseparable from the AutoHotkey, is really the liberator of the little finger, the great savior of the sheath inflammation. Who knows, this can be more reliable than the pedal board.
- Upper Gear
This does not need to explain, the next shift when the wave does not matter, the keyboard of the second row of keys, capslock and the key function of the same.
- Edit Control
Windows has been used for more than 10 years, copy and paste cut undo these shortcuts have become conditioned to what? Aha, Zxcvay. The most Frequently Used window editor shortcut keys are quite enjoyable to work with CapsLock, and the capslock+x and ctr+x effects are consistent, but the left hand finger does not move downward, which is consistent with HHKB.
- Window control
Capslock+qws is a three special window control button: Capslock+q is quit, which means to close the window and map to {ALT+F4}. Capslock+w is to close the current tag, mapping to {Ctr+w},capslock+s is the meaning of switch, toggle the current label, and map to {Ctr+tab}. These shortcuts are very common and are useful in the IDE or in the browser.
- Special procedures
The last few keys, belong to their own custom-made keys, can be modified according to their own hobbies. My only reference:
F:find, mapping alt+f, and then set Alt+f to everything "show Search Window" On the one-click Search files, is definitely one of the most shortcuts I use. When everything is not valid, it can also be used as a shortcut key for the File menu item.
D:dictionary, I mapped to Alt+d, and Alt+d set the mini-dictionary as the Bing Dictionary to summon the keys. It's very convenient to look up English words
G: I mapped it to alt+g and mapped the alt+g to the GitHub shell.
E: Mapping to explore, using Bing search
R:run Shell: Open PowerShell
T:text Editor: Open notepad++
200K less than a small script, small program. So small and small things, I in OneNote, Onedriver, Baidu Plate, mailbox all put a copy, on other computers with the use of the next. It's convenient.
Finally, share the download link. Http://pan.baidu.com/s/14fWN8#path=%252FAutoHotKey
EXE is a script file that can be used directly in accordance with the above configuration. Ahk is the script source code, which is accompanied by the AHK program ontology.
To prevent being eaten by the Niang, the text version of the script is posted:
;; ====================feng Ruohang ' s AHK script=====================;;;; ==================================================================;;;; =========================capslock ' s stuff=========================;;;; ==================================================================;; Setcapslockstate, AlwaysOff; =============================navigator============================| |; ===========================; U = Pagedowncapslock & u::if getkeystate ("alt") = 0Send, {pgup}elsesend, +{pgup}return;=========================== ; I = Homecapslock & i::if getkeystate ("alt") = 0Send, {home}elsesend, +{home}return;===========================;o = E Ndcapslock & O::if getkeystate ("alt") = 0Send, {end}elsesend, +{end}return;===========================; P = Pagedowncapslock & p::if getkeystate ("alt") = 0Send, {pgdn}elsesend, +{pgdn}return;===========================; H = Leftcapslock & h::if getkeystate ("alt") = 0Send, {left}elsesend, +{left}return;===========================; J = DowncapsloCK & j::if getkeystate ("alt") = 0Send, {down}elsesend, +{down}return;===========================; K = Upcapslock & k::if getkeystate ("alt") = 0Send, {up}elsesend, +{up}return;===========================; L = Rightcapslock & l::if getkeystate ("alt") = 0Send, {right}elsesend, +{right}return;; =============================deletor==============================| | CapsLock &,:: Send, {Del}; , = Del char Aftercapslock &.:: Send, ^{del};. = Del Word Aftercapslock &/:: Send, +{end}{del}; /= Del all Aftercapslock & M:: Send, {BS}; m = Del Char before; CapsLock & N:: Send, ^{bs}; n = Del Word before; CapsLock & B:: Send, +{home}{del}; b = Del all before;;; ============================special char==========================| | CapsLock & ':: Send, =; ' = =capslock & ';:: Send, {Enter};; = Entercapslock & {:: Send, +9; {= (CapsLock &Amp }:: Send, +0;; } =) CapsLock & ':: Send, + '; Shiftcapslock & 4:: Send, +4capslock & 5:: Send, +5capslock & 6:: Send, +6capslock & 7:: Send, +7capslock & 8:: Send, +8capslock & 9:: Send, +9capslock & 0:: Send, +0capslock &-:: Send, +-capslock & =:: Send , +=capslock & \:: Send, + =;; ============================editor================================| | CapsLock & Z:: Send, ^z; Z = Cancelcapslock & x:: Send, ^x; X = Cutcapslock & c:: Send, ^c; C = Copycapslock & V:: Send, ^v; V = Pastecapslock & A:: Send, ^a; A = Select Allcapslock & y:: Send, ^y; Y = Redo;; ===========================controller=============================| | CapsLock & S:: Send, ^{tab}; Switch Tag S = {Ctr + tab}capslock & W:: Send, ^w; Close Tag W = {Ctr + w}capslock & Q:: Send,! {F4}; CloseWindow Q = {Alt + f4}capslock::send, {ESC}; Vimer ' s lovecapslock = {ESC};; =========================application==============================| | CapsLock & D:: Send,!d; Dictionary D = {Alt + d}capslock & F:: Send,!f; Everything F = {Alt + f}capslock & G:: Send,!g; REVERSEDG = {Alt + g}capslock & E:: Run http://cn.bing.com/; Run Explore E = {Explore}capslock & R:: Run Powershell; Run POWERSHR = {Powershell}capslock & T:: Run C:\Program Files (x86) \notepad++\notepad++.exe; Run notepad++t = {Text Editor};; ==================================================================;;;; =========================capslock ' s stuff=========================;;;; ==================================================================;;
View Code
CapsLock to change Dafa--to realize efficient editing by turning waste into treasure