Make it easy to input `|>`

Make it easy to input `|>`

M3 Tech Talk #81 2017/11/01 #m3dev

I talked about how to input `|>` with just press one key.

509e5167fdb3871d6b6e045e34a3e019?s=128

Takayuki Matsubara

November 01, 2017
Tweet

Transcript

  1. Make it easy to input |>

  2. Who am I? me |> name # Takayuki "Taka" Matsubara

    |> job # Software Engineer |> work_at # M3, Inc. |> like # Ruby, Elixir and OSS |> twitter # ma2ge |> github # ma2gedev |> oss # PowerAssertEx, bundle-star, breadcrumble, # chrono_logger, faraday-encoding
  3. Make it easy to input |>

  4. Elixir's |> h"ps:/ /elixir-lang.org/ge2ng-started/enumerables-and-streams.html#the-pipe-operator

  5. Example 1..100_000 |> Enum.map(&(&1 * 3)) |> Enum.filter(odd?) |> Enum.sum

    h"ps:/ /elixir-lang.org/ge2ng-started/enumerables-and-streams.html
  6. PROBLEM

  7. Enter twice with Shi, key | and >

  8. |> with 1 key !

  9. ErgoDox

  10. ErgoDox • Keymap is customizable • QMK(firmware) is OSS

  11. None
  12. h"ps:/ /www.massdrop.com/buy/infinity-ergodox

  13. wai$ng... ☕

  14. 5 months later

  15. None
  16. ! soldering ⾠

  17. None
  18. Finished!!

  19. NEXT

  20. Customize keymaps

  21. h"ps:/ /input.club/configurator/

  22. QMK h"ps:/ /github.com/qmk/qmk_firmware

  23. Prepara&on for change $ git clone git@github.com:qmk/qmk_firmware.git $ cd qmk_firmware

    $ cp -r keyboards/ergodox_infinity/keymaps/{default,your_own} # you can change keyboards/ergodox_infinity/keymaps/your_own/keymap.c
  24. Add code to action_get_macro func+on // For Elixir pipe operator

    case 2: if (record->event.pressed) { SEND_STRING ("|>"); } break; h"ps:/ /github.com/ma2gedev/qmk_firmware/commit/7f8e633f791a035e15ad27fd2584c2f8e248b165
  25. Change KEYMAP array # you can change the place you

    want to set KEYMAP(..., M(2), ...) h"ps:/ /github.com/ma2gedev/qmk_firmware/commit/7f8e633f791a035e15ad27fd2584c2f8e248b165
  26. How to flash the firmware? h"ps:/ /github.com/qmk/qmkfirmware/blob/master/keyboards/ergodoxinfinity/readme.md

  27. Completed! press_key |> infinity_ergodox # "|>"

  28. Enjoy! M3 Tech Talk #81 2017/11/01 #m3dev @ma2ge

  29. Resources • Infinity ErgoDox Ergonomic Keyboard Kit | Price &

    Reviews | Massdrop h@ps:/ /www.massdrop.com/buy/infinity-ergodox • qmk/qmkfirmware: keyboard controller firmware for Atmel AVR and ARM USB families h=ps://github.com/qmk/qmkfirmware
  30. Resources • Adding SUSHI key to my ErgoDox EZ -

    yhara.jp h=p:/ /yhara.jp/ 2017/09/27/qmk-sushi-key • ErgoDox Advent Calendar 2016 - Qiita h=ps:/ /qiita.com/advent- calendar/2016/ergodox • MacbookPro15inchͰInfinityErgodoxʹ௚઀ϑΝʔϜΛম͘࿩ - ਓੜͷՋ௵͠ h=p:/ /hidekingerz.hatenablog.com/entry/ 2017/10/04/231532