Skip to content

Commit

Permalink
Add ability to open/copy selected files from Search-results, not alwa…
Browse files Browse the repository at this point in the history
…ys ALL files
  • Loading branch information
alankilborn committed Nov 14, 2024
1 parent cb247a9 commit 993e81d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PowerEditor/src/Notepad_plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ bool Notepad_plus::findInFinderFiles(FindersInfo *findInFolderInfo)
_pEditView = &_invisibleEditView;
Document oldDoc = _invisibleEditView.execute(SCI_GETDOCPOINTER);

vector<wstring> fileNames = findInFolderInfo->_pSourceFinder->getResultFilePaths();
vector<wstring> fileNames = findInFolderInfo->_pSourceFinder->getResultFilePaths(false);

findInFolderInfo->_pDestFinder->beginNewFilesSearch();
findInFolderInfo->_pDestFinder->addSearchLine(findInFolderInfo->_findOption._str2Search.c_str());
Expand Down
2 changes: 1 addition & 1 deletion PowerEditor/src/ScintillaComponent/FindReplaceDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ friend class FindReplaceDlg;
void gotoNextFoundResult(int direction);
std::pair<intptr_t, intptr_t> gotoFoundLine(size_t nOccurrence = 0); // value 0 means this argument is not used
void deleteResult();
std::vector<std::wstring> getResultFilePaths(bool onlyInSelectedText = false) const;
std::vector<std::wstring> getResultFilePaths(bool onlyInSelectedText) const;
bool canFind(const wchar_t *fileName, size_t lineNumber, size_t* indexToStartFrom) const;
void setVolatiled(bool val) { _canBeVolatiled = val; };
std::wstring getHitsString(int count) const;
Expand Down

0 comments on commit 993e81d

Please sign in to comment.