replace WindowInfo::loadedFilePath with WindowInfo::currentTab::filePath