diff --git a/IDE/src/ui/FindResultsPanel.bf b/IDE/src/ui/FindResultsPanel.bf index 679b7701..e53bb5dc 100644 --- a/IDE/src/ui/FindResultsPanel.bf +++ b/IDE/src/ui/FindResultsPanel.bf @@ -17,8 +17,9 @@ namespace IDE.ui { public static String sCurrentDocument = "Current Document"; public static String sCurrentProject = "Current Project"; + public static String sUnlockedProjects = "Unlocked Projects"; public static String sEntireSolution = "Entire Solution"; - public static String[] sLocationStrings = new .(sCurrentDocument, sCurrentProject, sEntireSolution) ~ delete _; + public static String[] sLocationStrings = new .(sCurrentDocument, sCurrentProject, sUnlockedProjects, sEntireSolution) ~ delete _; List mPendingLines = new List() ~ DeleteContainerAndItems!(_); @@ -413,6 +414,16 @@ namespace IDE.ui AddFromFilesFolder(project.mRootFolder, searchOptions); } } + else if (searchOptions.mSearchLocation == sUnlockedProjects) + { + for (var project in IDEApp.sApp.mWorkspace.mProjects) + { + if (project.mLocked) + continue; + + AddFromFilesFolder(project.mRootFolder, searchOptions); + } + } else if (searchOptions.mSearchLocation == sCurrentDocument) { var sourceViewPanel = gApp.GetActiveSourceViewPanel(true);