Since putting together my ErgoMax a month back, I found myself feeling increasingly less keen to get back to productive stuff, which in my case is programming.

Yesterday I had a moment of clarity on the irritation that I couldn’t previously quite put my finger on — it was the steady hassle of having to fiddle with layer shifting and other mod keys such as shift or command, to type in even just a few lines of code.

How do all the programmers deal with having to constantly key in “, [] and {}, sometimes with cmd, ctrl etc keys held down, on boards without dedicated keys for them?

    • R4_Unit@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      This is a nice clean layout! I appreciate that it isn’t trying to be tricky, but just lay everything out simply. The only part I’m not really getting is the equals sign relative to things like plus and times? Seems like typing equations, and things like += or *= kinda awkward? Beautiful all the same.

  • luckybipedal@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    On my 34-40 key layouts I put all the symbols typically used together in programming on the same layer, including symbols that usually require Shift, along with all the numbers. This makes it comfortable to type whole formulas without leaving the symbol layer and without needing Shift. Important bigrams that I can type without switching layers in the middle include <= >= != += -= *= /= %= &= |= -> /* */ => := :) ;) . I also optimize the layer so that none of these are same-finger bigrams. Because = appears in so many bigrams, I found it convenient to map it on a thumb key.

    I make sure all the mods are comfortable to use and in the same place on all my layers, either as bottom row mod-taps or on opposite side thumb keys or worst case as a oneshot mod. I don’t need Shift on my symbol layer, so one less mod to worry about.

    Probably my favourite feature for a programming key map is _ on a base layer thumb key. That makes typing snake_case_names a breeze.

  • will@midwest.social
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I use a 30% split keyboard as my daily driver for work as a software developer. I use a keymapping where holding the F key down turns the right side into a numpad plus some of the other punctuation, and holding D down gives me the shifted versions of all that. So I have to chord to get the esoteric symbols but I don’t have to actually move my left hand from home row to chord. I don’t think this is a very common way of doing things though. I’m not sure it’s any better than using a bigger keyboard, but I’m used to it now.

  • redchlorophyll@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Many people are forgetting the simplest answer here. Just use a full size keyboard. They are abundant and cheap. They come with ALL THE KEYS and don’t make you layer shift in order to efficiently achieve what you need to do.