Feature: Allow for configurable automatic target switching
For projects with many targets, especially with several in each cabal file, it'd be nice to have a way to switch between targets automatically. This could be achieved with a simple configuration value:
"haskero.targets": {
"project1/src/*": "project1:lib,
"lib/project2/src/*": "project2:exec",
...
}
If it'd be valuable to support different kinds of patterns (glob, regex, etc.), the config value could instead be a list of objects.