yqrashawn / GokuRakuJoudo

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

Allow a..z ranges in similar rules #225

Open eugenesvk opened 12 months ago

eugenesvk commented 12 months 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