Funny, this sounds like a good idea, but I'm quite happy with the exact opposite: I use rcmd[1]. I hold down the right command key and press the first letter of the window name to switch to it. I can override this dynamic mapping by pressing right command + option + <other key>, so I have an IM client on I, for example. It means I never have to remember/guess how command+tab works (although I had fewer issues with alt+tab on Windows)

[1]: https://lowtechguys.com/rcmd/

Cool, but how does it work if you have multiple windows in one app?

I used hammerspoon for something similar, but it worked on the window title. So, I could add custom titles to my chrome/iterm/code windows, and switch by pressing a shortcut and then typing 1-4 letters to match the title. It was my favorite window management UI for my work laptop with an absurd amount of tabs open.

> Cool, but how does it work if you have multiple windows in one app?

You switch to the app, then use macOS's native window-switching keybind (command+backtick) or App Exposé or etc.