Skip to content
/ hands-on Public

Keep your hands on the keyboard plugin for atom

License

Notifications You must be signed in to change notification settings

asvd/hands-on

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hands-on for atom

Hands-on for atom puts navigation and control keys under the right hand, where it is normally located when typing. Therefore you can keep your hands in the same position even when performing navigation actions:

A keyboard

Hands-on mode is activated when you hold the modifier key right next to the spacebar. This can be AltGr, Meta or on different keyboards (all of these keys work). When the mode is active, some of the letters act as navigation keys.

For instance, by pressing AltGr+L you move cursor one position up. This is not just an additional key-binding (otherwise you would not need the hands-on package for that). Instead, hands-on actually simulates a keyboard event for the key.

That is, all the commands bound to respective command keys will also work. This way you can invoke a lot of commands beyond simply moving the caret. For instance pressing Ctrl+AltGr+K is treated as Ctrl+↓ and invokes Editor: Move Line Down. Similarly Ctrl + AltGr + [ is magically converted into Ctrl + Delete performing Editor: Delete To End Of Word, and so on.

Hands-on is layout-agnostic, meaning that it is tied to physical keys and always resides under your right hand as shown on the image above, even if you use Dvorak for Programmers.

Installation

Open Settings in Atom Ctrl+, and select Install section on the right side. Search for hands-on and click Install button.

Or with the command line:

$ apm install hands-on

Desktop compatibility

Some key combinations can be taken over by your desktop environment (for instance, Ctrl+AltGr+L can lock the screen). In such cases, the keystrokes will not reach atom, of course. Disable or reassign such keystrokes in desktop settings if you wish to use them within atom.

Same applies to the AltGr key that on some layouts enables input of diatrical marks for the letters that follow. In this case, the AltGr keypress is taken over and does not reach atom. You can disable such layout features, or, if you wish to have those as well, use another key (Meta or ) as hands-on mode activator.


I came into world of atom from emacs, and the main feature I have been missing so far was the opportunity to navigate without moving the hands away from their normal position (and therefore avoid briefly looking at the keyboard when puting them back in order to properly position).

The base navigation line layout was inspired by vim (never used it though, but it seems to be much more logical comparing to the one of emacs, that was based on the first letters of respective directions). The main navigation keys moved one position to the right eventually (in vim it starts with the H key). The reason for this is that the right Alt modifier is often located too far to the right, and the H was not that accessible when holding the modifier with a thumb.


https://asvd.github.io

https://twitter.com/asvd0