Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rgoulter
Copy link
Owner

@rgoulter rgoulter commented Aug 11, 2025

Motivating diff:

        { indices = [22, 23], key = K.LeftGUI & K.PageUp, },
        { indices = [26, 27], key = K.LeftGUI & K.PageDown, },

can now be expressed as:

       let CH = import "chording.ncl" in
       {
          indices = m%"
            _ _ _ _ _   _ _ _ _ _
            _ _ _ _ _   _ _ _ _ _
            _ _ X X _   _ _ _ _ _
                _ _ _   _ _ _
          "% |> CH.indices,
          key = K.LeftGUI & K.PageUp,
        },
        {
          indices = m%"
            _ _ _ _ _   _ _ _ _ _
            _ _ _ _ _   _ _ _ _ _
            _ _ _ _ _   _ X X _ _
                _ _ _   _ _ _
          "% |> CH.indices,
          key = K.LeftGUI & K.PageDown,
        },

Obviously, this is much more verbose.

However, it's way easier to tell at a glance what the keys which make up the chord are.

@rgoulter rgoulter force-pushed the ncl-chording-indices-strings branch from a93785e to 30145fb Compare August 11, 2025 13:34
@rgoulter rgoulter merged commit 13f8beb into master Aug 11, 2025
7 checks passed
@rgoulter rgoulter deleted the ncl-chording-indices-strings branch August 11, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants