yqrashawn / GokuRakuJoudo

config karabiner with ease
GNU General Public License v3.0
1.2k stars 123 forks source link

Allow a..z ranges in similar rules #225

Open eugenesvk opened 1 year ago

eugenesvk commented 1 year ago

I have some configs where I need to map the whole alphabet to some slight modification like

 {:des "  [⌂◆] 🠿D⃣ to ‹Cmd: 🠿D⃣ ⟶ ‹◆" :rules [ :mD
  [:q [:d :q]] [:w [:d :w]] [:e [:d :e]] [:r [:d :r]] [:t [:d :t]]
  [:a [:d :a]] [:s [:d :s]] [:d [:d :d]] [:f [:d :f]] [:g [:d :g]]
  [:z [:d :z]] [:x [:d :x]] [:c [:d :c]] [:v [:d :v]] [:b [:d :b]]
  ; ...
  ]}

It would be great if instead I could just have a single rule with ranges like

[:a..z [:d :a..z]]

and let the mighty goku turn this into a sequence of rules