Keyboard shortcut for typing, creating builds etc
Ask HN: Does anyone use keyboard/mouse extra buttons for coding?
11–20 of 160 posts
Re: Ask HN: Does anyone use keyboard/mouse extra buttons for coding?
#12It's a layout to avoid switching constantly from mouse to keyboard and remain most of the time with one hand on each devices.
Re: Ask HN: Does anyone use keyboard/mouse extra buttons for coding?
#13Re: Ask HN: Does anyone use keyboard/mouse extra buttons for coding?
#14Re: Ask HN: Does anyone use keyboard/mouse extra buttons for coding?
#15Re: Ask HN: Does anyone use keyboard/mouse extra buttons for coding?
#161. I change platforms too frequently, so I cannot have a custom setup; and
2. when I try to run distributed with VNC or MSRemoteDesktop, there are too many conflicts when configuration, so it makes a mess.
If you only ever work on one computer, it is a great idea, but you will find it challenging to acclimate to another computer.
Re: Ask HN: Does anyone use keyboard/mouse extra buttons for coding?
#17I have a layer for mouse movement with wasd. On the same layer, I've bound hjkl to the arrow keys, so I can get vimish movement wherever. Below these keys on the same layer I have some browser navigation shortcuts.
I use evil-mode in Emacs. The key below my left thumb is control on hold, escape on tap, and it works beautifully. On my left thumb cluster, I have a key that's option (meta in Emacs land) on hold, and option-x on tap (so I can easily hit M-x in Emacs).
On another layer I have hotkeys to manage window tiling. I use Magnet for macOS; works fine for my needs. One thing I wanted that Magnet didn't have was a half-width-but-centered hotkey; I was able to build that into a macro on my keyboard.
Keyboard macros are a beautiful thing. QMK firmware is the best!
My layout: https://configure.zsa.io/moonlander/layouts/xK7zR/latest/0
Re: Ask HN: Does anyone use keyboard/mouse extra buttons for coding?
#18Re: Ask HN: Does anyone use keyboard/mouse extra buttons for coding?
#19I have a programmable keyboard that I could use to achieve the same thing, but I really like having a dedicated device and find that I use it more than if it was just a function layer in QMK. IMO this is also one of the legit uses of individual key RGB on a keyboard beyond just bling-- you can color code keys.
Re: Ask HN: Does anyone use keyboard/mouse extra buttons for coding?
#20I’ve really taken to hyper key idea on the Mac. It’s basically a shift-Control-command-option combo bound to caps lock, together with the escape key. Tapping on caps lock generates esc for all your Vim/evil needs, while holding caps and another key results in a pretty unique key combo that I’ve never had clash with anything else. Super handy. https://brettterpstra.com/2016/09/29/a-better-hyper-key-hack...
I found another project, which also uses Karabiner Elements, to be a good starting point for customization. I especially like moving system-wide type shortcuts like 1password to it so I have fewer conflicts with editor plugin shortcuts.