typing_model icon indicating copy to clipboard operation
typing_model copied to clipboard

[Feature Request] Manually editing finger assignments

Open precondition opened this issue 4 years ago • 1 comments

Automatically finding the correct finger assignments for keys is no easy task especially if one needs to support so many diverse keyboards so the code is bound to make some errors from time to time. Even if we assume it never makes any errors, some people use alt-fingerings wherein they use another finger than what is conventionally taught in order to press a certain key and for far away keys to the right like the numpad, the model will always assume the use of the right pinky for the entire numpad, even though we both know that nobody uses the numpad exclusively with their right pinky.

Consequently, the best approach is to let the code make its best guess and then let the user correct it in the "Finger" tab.

precondition avatar Jun 23 '21 05:06 precondition

I just pushed some commits that allow manually editing finger assignments - you can use fingers in the root of the json to define the index of the homerow:

    "fingers": [44, 45, 46, 47, 75, 78, 50, 51, 52, 53],

as well as define finger_index per key in the layout, which can be defined in the json like this:

    "layouts": {
        "LAYOUT_custom": {
            "c_macro": true,
            "width": 14,
            "height": 6,
            "layout": [
                {
                    "matrix": [
                        0,
                        0
                    ],
                    "label": "k00",
                    "w": 1,
                    "h": 1,
                    "x": 0,
                    "y": 0,
                    "finger_index": 3
                }
            ]
        }
    }

Fingers are counted left-to-right, where the left pinky is 0, left thumb is 4, right thumb is 5, and right pinky is 9.

But I'm afraid the numpad issue you mentioned isn't addressed by this - currently there is no "alternative home position" that the hand often switches to in larger layouts. This is something I would definitely like to be able to accomodate, though, as it's very useful to be able to analyze both the larger arm movements when adjusting to those positions, and the normal movements made after arriving there.

jackhumbert avatar Jan 15 '23 15:01 jackhumbert