Dusty

Dusty

Roughly a year ago, I found myself inwardly complaining about the fact that my 60% keyboard only had the Control key on one side. This minor inconvenience led me down a rabbit hole of keyboard optimization that is so deep I may never emerge :slight_smile: In any event, I have settled on a 36-key split as my daily driver—and in the course of optimizing the layout, it became clear to me that I could do very specific things to make the layout better for Elixir, which is a favorite of mine. After 8 years using Dvorak, followed by a few years back on QWERTY, I had settled into using Colemak DHm as my primary layout for the alpha keys. I wanted to apply the pleasant inward rolls that Colemak was giving me to the symbol layer as well, with some special attention to Elixir. For programming in general, I grouped inward-rolling pairs like +=, (), [], and {}, but I also discovered that by using the grouping: < | - >, I could make comfortable rolls for a number of Elixir conventions all at once (<>, <-, ->, |>). I could also put other commonly used symbols, like " or :, in positions that better reflect their Elixir-specific importance, and still have room for rolled pairings that serve other purposes (like ~/ for Unix file paths). Coupling these improvements with the power of QMK firmware (oneshot layers/modifiers, dual-function keys) has made for a really comfortable and enjoyable experience. I don’t have any idea how much overlap there might be between the various communities (Elixir, alt layout, mechanical keyboard), but I thought I would share it here since a lot of my thinking was inspired by Elixir syntax.

If this type of thing interests you, you can see the layout itself in the QMK repo (the symbol layer is towards the end).

If you’re wondering about my choice of alpha layout, I’ve written about that elsewhere.

There is always room for improvement—you’d be correct to point out that EEx openers (<%=) aren’t that smooth—but I’m relatively satisfied for now.

Anyway, thanks to the community for this awesome language. I’ve only just started my journey but it’s really a joy to use.

Showing Posts 23 to 14

codeanpeace

codeanpeace

There’s a fun bit of trivia around how hjkl was chosen in case you were wondering.

sanswork

sanswork

I have the directional keys in the same place on one of my layers but thats the only thing I needed to worry about everything else is in the normal place

See layer 2 here Oryx: The ZSA Keyboard Configurator

stefanluptak

stefanluptak

Oh, I never realized that. OK, makes sense, thanks. :slight_smile:

Dusty

Dusty OP

I meant that I use all 4 fingers for my arrows, in their home positions, whereas standard Vim bindings use index for both left and down, making use of only 3 fingers and requiring a movement out of home position for left. That’s what I meant by JKL; position, rather than HJKL.

stefanluptak

stefanluptak

Thanks a lot. I am doing that too now. And what do you mean by the double-duty of index finger?

Dusty

Dusty OP

Remapping is not the answer—once you start, it never ends. Basically, there is only one issue with Colemak and (Neo)vim, and that’s the position of HJKL. You need a solution to that problem, and then you can leave everything else untouched. For me, the solution was home-row arrows in a layer. I put them in JKL; position, because I’ve never liked giving the index finger double-duty with HJKL, but either way works.

stefanluptak

stefanluptak

How do you Colemak typists use VIM? I got myself a ZSA Voyager keyboard and thought I could try Colemak while learning to touch type properly. Previously I was able to do around 100WPM on MacBook keyboard with QWERTY using maybe 7 fingers or so. I am now at around 17WPM with Colemak. I feel like I will soon want to switch to VIM too, but I am not sure if it is a good idea and the whole Colemak+VIM combo isn’t bigger pain than it is a gain because all the remaps and tweaks needed. Maybe I should just stick with QWERTY while using the Voyager and my life will be much simpler. What do you think?

shihou

shihou

Here have some good mechanical keyboard options:

I have a keychron K2 V2, which I recommend. it’s very solid and comfortable.

adkron

adkron

I use a keyboardio and love it. The thumb keys in one arc allows them all to be reached and usable. I created an Elixir pipe key, but I need to spend more time with my layout. The numbers I moved to the home row on another layer. The original number keys are shortcuts for switch tmux windows. My wrist pain went away completely. I love the keyboard. If you want to know more let me know. I also have a discount code for it. I get no kickbacks.

sanswork

sanswork

I type mostly at a standing desk with the keyboard slightly below parallel with my elbow so I don’t actually hit any wrist rests.

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
AstonJ
Since we have deprecated our Erlang sections (as we have dedicated Erlang Forums now) let’s add this thread for those who’d like to post ...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews