This is my current complex modification
{
"description": "Double Tab to accept zsh-autosuggestions",
"manipulators": [
{
"conditions": [
{
"name": "double_tab",
"type": "variable_if",
"value": 1
}
],
"from": { "key_code": "tab" },
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
},
{
"from": { "key_code": "tab" },
"to": [
{
"set_variable": {
"name": "double_tab",
"value": 1
}
}
],
"to_delayed_action": {
"to_if_canceled": [
{
"set_variable": {
"name": "double_tab",
"value": 0
}
}
],
"to_if_invoked": [
{
"set_variable": {
"name": "double_tab",
"value": 0
}
}
]
},
"type": "basic"
}
]
}
The issue now is that the single tab behavior is broken, doesn’t work at all. In Karabiner-EventViewer it doesn’t show up, waits until I press again tab to replace it with right_arrow. How can I modify my complex modification to ‘reset’ to the default behavior of the tab key if it’s not double pressed after 200ms?