# Resolve keybinding precedence across commands · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/38c93a2abdabb59b5a24c402d17397d1fd1493b8)

Repository: [gitcafe/t3code](https://git.cafe/gitcafe/t3code)

Visibility: public

Requested revision: 38c93a2abdabb59b5a24c402d17397d1fd1493b8

Requested commit: 38c93a2abdabb59b5a24c402d17397d1fd1493b8

Commit: 38c93a2abdabb59b5a24c402d17397d1fd1493b8

Tree: 1aa1177cb1ecae3a5a29161e09f97cdf64796540

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Resolve keybinding precedence across commands

- Evaluate shortcut matches by resolving the last matching key+when rule, regardless of command
- Add cross-command precedence tests and switch assertions to `vitest` `assert`
- Clarify precedence behavior in `KEYBINDINGS.md`

```

## Parents

- [ef4ce2e1ec3a6e08ccc392b802462519cbb706bc](https://git.cafe/gitcafe/t3code/commit/ef4ce2e1ec3a6e08ccc392b802462519cbb706bc?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/38c93a2abdabb59b5a24c402d17397d1fd1493b8?format=markdown)
