macOS has built in shortcuts to switch through windows of the currently focused application. I have it reconfigured to alt+tab
This is not exactly what you are looking for but I personally like it more this way. So for example, I can switch between editor and browser via cmd tab but then I can cycle through browser windows via alt tab. These are two separate actions and it prevents me from having to cycle too much (compared to a solution that cycles through all windows of all applications)
Also helps to build temporal and spatial muscle memory. The first browser window is the main one, the next one was the one before that and so on
This is not exactly what you are looking for but I personally like it more this way. So for example, I can switch between editor and browser via cmd tab but then I can cycle through browser windows via alt tab. These are two separate actions and it prevents me from having to cycle too much (compared to a solution that cycles through all windows of all applications)
Also helps to build temporal and spatial muscle memory. The first browser window is the main one, the next one was the one before that and so on