|
|
|
@ -3990,6 +3990,23 @@ void Finder::openAll()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Finder::copyPathnames()
|
|
|
|
|
{
|
|
|
|
|
generic_string toClipboard;
|
|
|
|
|
for (auto&& path : getResultFilePaths())
|
|
|
|
|
{
|
|
|
|
|
toClipboard += path + TEXT("\r\n");
|
|
|
|
|
}
|
|
|
|
|
if (!toClipboard.empty())
|
|
|
|
|
{
|
|
|
|
|
if (!str2Clipboard(toClipboard, _hSelf))
|
|
|
|
|
{
|
|
|
|
|
assert(false);
|
|
|
|
|
::MessageBox(NULL, TEXT("Error placing pathnames into clipboard."), TEXT("Notepad++"), MB_ICONINFORMATION);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Finder::wrapLongLinesToggle()
|
|
|
|
|
{
|
|
|
|
|
_longLinesAreWrapped = !_longLinesAreWrapped;
|
|
|
|
@ -4242,6 +4259,12 @@ INT_PTR CALLBACK Finder::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam)
|
|
|
|
|
return TRUE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case NPPM_INTERNAL_SCINTILLAFINDERCOPYPATHS:
|
|
|
|
|
{
|
|
|
|
|
copyPathnames();
|
|
|
|
|
return TRUE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case NPPM_INTERNAL_SCINTILLAFINDERSELECTALL :
|
|
|
|
|
{
|
|
|
|
|
_scintView.execute(SCI_SELECTALL);
|
|
|
|
@ -4296,6 +4319,7 @@ INT_PTR CALLBACK Finder::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam)
|
|
|
|
|
generic_string uncollapseAll = pNativeSpeaker->getLocalizedStrFromID("finder-uncollapse-all", TEXT("Uncollapse all"));
|
|
|
|
|
generic_string copyLines = pNativeSpeaker->getLocalizedStrFromID("finder-copy", TEXT("Copy Selected Line(s)"));
|
|
|
|
|
generic_string copyVerbatim = pNativeSpeaker->getLocalizedStrFromID("finder-copy-verbatim", TEXT("Copy"));
|
|
|
|
|
generic_string copyPaths = pNativeSpeaker->getLocalizedStrFromID("finder-copy-paths", TEXT("Copy Pathname(s)"));
|
|
|
|
|
generic_string selectAll = pNativeSpeaker->getLocalizedStrFromID("finder-select-all", TEXT("Select all"));
|
|
|
|
|
generic_string clearAll = pNativeSpeaker->getLocalizedStrFromID("finder-clear-all", TEXT("Clear all"));
|
|
|
|
|
generic_string purgeForEverySearch = pNativeSpeaker->getLocalizedStrFromID("finder-purge-for-every-search", TEXT("Purge for every search"));
|
|
|
|
@ -4311,6 +4335,7 @@ INT_PTR CALLBACK Finder::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam)
|
|
|
|
|
tmp.push_back(MenuItemUnit(0, TEXT("Separator")));
|
|
|
|
|
tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINDERCOPYVERBATIM, copyVerbatim));
|
|
|
|
|
tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINDERCOPY, copyLines));
|
|
|
|
|
tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINDERCOPYPATHS, copyPaths));
|
|
|
|
|
tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINDERSELECTALL, selectAll));
|
|
|
|
|
tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINDERCLEARALL, clearAll));
|
|
|
|
|
tmp.push_back(MenuItemUnit(0, TEXT("Separator")));
|
|
|
|
|