Support for counterpart matching across multiple open folders. Closing #1

The behaviour of selecting a counterpart has been changed:
  1. a counterpart is searched for inside the open root folder of the current file (if any)
  2. if none was found, the first matching counterpart in any of the other open folders is chosen
No longer skips a folder when root is not open.