LoginSignup
4
3

More than 5 years have passed since last update.

よく入力する単語を1つのキーで入力する

Posted at

なぜ

社名がアルファベットなので日本語の文中に入力が面倒で、社名を入力するショートカットがあればいいのにと思った。

方法

1.ErgoDox EZを買います。

送料、税金込みで37,000円ぐらいで買える
https://ergodox-ez.com/

2. マクロを定義します。

const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
{
  // MACRODOWN only works in this function
      switch(id) {
    case 0:
    if (record->event.pressed) {
      return MACRO( T(LGUI), D(LSFT), T(M), U(LSFT), T(I), T(S), T(O), T(C), T(A), END  );
    }
    break;
      }
    return MACRO_NONE;
};

これでM(0)でアクセスできるようになるので、好きなキーにM(0)を設定する。私の場合はレイヤー1のMに設定した。
T(LGUI)で英数入力モードにして、D(LSFT), T(M), U(LSFT)でシフトを押してMを押して、シフトを離し、あとはキーを押していくだけ。

詳細:jackhumbert/qmk_firmware: keyboard controller firmware for Atmel AVR USB family

結果

モダン1.gif

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3