kanata icon indicating copy to clipboard operation
kanata copied to clipboard

Support multi-action in oneshot

Open samuelxyz opened this issue 3 years ago • 1 comments

Use case example:

(defalias
  oss (one-shot 500 (multi lsft (layer-toggle customshiftlayer)))
)

Currently, oneshot only supports layer-toggle, a keycode, or a chord.

samuelxyz avatar Sep 17 '22 00:09 samuelxyz

Thanks for filing this issue!

I think it should be possible to do it the other way around: multi one-shot.

(defalias
  oss (multi (one-shot 500 lsft) (one-shot 500 (layer-toggle customshiftlayer)))
)

All one-shot actions stack together, so this should work as intended (though I haven't tested this exactly).

jtroo avatar Sep 17 '22 05:09 jtroo

From lack of activity, it doesn't seem like this feature is needed - with the workaround being to use one-shot inside of multi, instead of multi inside of one-shot.

Closing as not planned.

jtroo avatar Dec 08 '22 02:12 jtroo