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?

  • wispydust
    link
    92 years ago

    My preferred way is to have one symbol layer with all the symbols. It prevents having to constantly doing shift/unshift or switching layers (I personally call this “shift dancing”) 😀

    It looks like this:

    https://keebogram.pages.dev/hypership/

    • @R4_Unit
      link
      32 years 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.

      • wispydust
        link
        22 years ago

        Good observation! I tried to maximise rolls on common symbol bigrams (=> :) ({...})) and minimise single-finger bigrams. You’re right that -= is kinda meh because it’s an SFB but += and *= are kinda alright 😊

  • @luckybipedal
    link
    82 years 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.

    • roux is a lib
      link
      fedilink
      32 years ago

      I do something similar with bigrams but on my left half. I have “other syntax” on my right side Most if it is inward or outward finger rolls to. So for example, != is like typing “at” on Colemak but on my symbol layer. (); is rolling “nei” and so on. I based it off of Mental_Gymnastic’s write- up I found from reddit.

      Link: https://getreuer.info/posts/keyboards/symbol-layer/index.html

      It’s worth a read because this dude has a ton of good ideas.

  • @[email protected]
    link
    fedilink
    82 years 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.

    • @[email protected]
      link
      fedilink
      32 years ago

      Yeah, I do the same with my thumb keys, they shift the layer so the symbols/numbers are all one handed typing operation. I use homerow mods so there’s even less finger shifting but that also means I don’t use the homerow for layers. It’s definitely a learning curve, especially since my keycaps don’t have a legend but you get used to it pretty quickly. I need to return to a right side being numpad, I got clever with F keys but I only use 4 F keys, I should just optimize for those, it doesn’t need to be a “sensible” layout for anyone else.

  • @Gumshoe
    link
    6
    edit-2
    2 years ago

    As a programmer with a 36 key keyboard, I actually find symbol typing easier for the most part than it was before. Mainly because I find the number row symbols easier to touch type when there isn’t any hand movement involved. Do you look at your hands when typing %? How about F6? I did it without even realize I was doing that, but now that I have a numpad layer for all my numbers and number row symbols (and no legends on my keycaps to prevent me from looking even if I wanted to) I touch type those symbols much better than I did before.

    Your keyboard didn’t have dedicated {} keys before either. Those were shift+[] before, and now, for my layout, they are symbol layer+{} which is the same number of keystrokes and same level of complexity, though I had to relearn a lot to do that.

    I use home-row mods (well, bottom-row mods, actually) and apart from some combos having an extra key being held down, the idea that I’m now holding those keys with dedicated sensible fingers and without any hand movement means they aren’t any harder than before. For example, what fingers are you even using when you type “ctrl+alt+shift+something”? Now, on my 36 key layout, I’m just holding bottom row index finger, bottom row middle finger, bottom row ring finger, maybe a thumb layer key which might be an extra button than before and typing the actual keystroke itself with the opposite hand. This has really helped me improve my opposite hand modifier skills as well as I often neglected to use right-ctrl on my traditional keyboard.

  • @[email protected]
    link
    fedilink
    52 years ago

    I’m a developer and I use a (slightly modified) miryoku layout for my daily driver. I know not everyone loves the home-row mods, but I really like how I can use the layer keys on one hand to get all the symbols on the other. I have to move my hands waaay less than I did with a full size.

  • @[email protected]
    link
    fedilink
    32 years ago

    I use combos for all my brackets, though I also have them on a layer. Quote is on my base layer - I have a layout based on Miryoku, which swaps the positions of ‘ and ; from their normal Colemak-DH locations. I think that swap would make sense for QWERTY as well if you’re using a 36 key layout. With 38 keys and up, I have room for ; as well on the outer pinky column.

    I also have an override so that the unshifted key is : and I use shift to get ;. Since I mostly write Python and use vim this is a great shortcut - if you use a language with semicolons that behavior probably doesn’t make sense.

  • @[email protected]
    link
    fedilink
    32 years ago

    I found this keymap’s symbol layer to be the perfect middleground between similarity to a standard keyboard and plain better symbol placement. The right side makes more sense the more you look at it (and simulate typing on it)

  • @Kimcha87
    link
    32 years ago

    I put brackets as combos of pointing and middle finger.

    On the left half the homerow combo is for (. On the right half, it’s for ).

    And the other symbols are on a layer. I optimized it it to make common programming symbols easy to type.

    And I found that practicing typing quickly on speedcoder.com really helped me.

    At first you have to think about what key to press to switch the layer and then what key to press to get true symbol you need.

    But after a while, your brain learns the combination of movements.

    So you just express the intention of a symbol and your fingers execute the symbol.

  • WFH
    link
    22 years ago

    Not on an ergo but on a 60% with the shitty (for programming) french layout. I mapped all the useful and scattered symbols on caps-lock + a key next to it, so I can access them by an easy left hand chord instead of an awkward thumb-and-stretched-out-finger-to-the-other-side-of-the-keyboard chord.

    CapsLock+A=“[”, CapsLock+Z=“]”, CapsLock+E=“#”

    Capslock+Q=“{”, CapsLock+S=“}”, CapsLock+D=“|”

    Capslock+W=“(”, CapsLock+X=“)”, CapsLock+C=""

  • @nomaded
    link
    22 years ago

    Over 20 years ago, I had a keyboard that defined a “punctuation pad” that contained a lot of common symbols and combination of symbols on a different layer. I found it useful enough that I have brought that along to any keyboard since then that I could program to have something similar. It doesn’t cover all symbols, because I touch-type the number row, so other than parenthesis they are not part of the “PunctPad”. It’s defined as “1 layer deep” on the right hand, and I have it on all my keyboards. You can find an example here: https://github.com/nomaded/qmk_firmware/blob/ngedv-unify/keyboards/ergodox_infinity/keymaps/ngedv/keymap.c

  • @heron
    link
    22 years ago

    You should be able to cmd down > layer shift > symbol > layer release > cmd up. It sounds like a lot, but I don’t need to do anything like that very often.

  • @rafaelromao
    link
    2
    edit-2
    2 years ago

    I use two layers, that I activate holding the two home thumb keys, to place all symbols, numbers and F keys. They are all positioned according to how frequent they are and how they appear together. I also have a lot of combos and macros (in another layer) that helps with recurrent commands. My keymap is extremely complex and optimized for my workflows, but you might take some inspiration from there.

  • @pca006132
    link
    22 years ago

    I would say that you need to try and modify your keymap. Mod-tap is useful for commonly used symbols.

    Also, I would recommend you to try vim (or vim mode for some editors), as you can use modes instead of modifier keys.

  • BarqsHasBite
    link
    fedilink
    12 years ago

    Is your letter shift on the thumb? I thought it’d be easy like that (I don’t have one myself).