mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-21 04:44:40 +02:00
[NEW] Adding find in files filters supports user defined language.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@403 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
e64e4309ab
commit
ab4ae49c8a
@ -7107,7 +7107,7 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|||||||
dir = (const TCHAR *)wParam;
|
dir = (const TCHAR *)wParam;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dir = NppParameters::getInstance()->getWorkingDir();
|
dir = pNppParam->getWorkingDir();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lParam)
|
if (lParam)
|
||||||
@ -7116,9 +7116,21 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
const TCHAR *ext = NULL;
|
||||||
LangType lt = _pEditView->getCurrentBuffer()->getLangType();
|
LangType lt = _pEditView->getCurrentBuffer()->getLangType();
|
||||||
|
if (lt == L_USER)
|
||||||
|
{
|
||||||
|
Buffer * buf = _pEditView->getCurrentBuffer();
|
||||||
|
UserLangContainer * userLangContainer = pNppParam->getULCFromName(buf->getUserDefineLangName());
|
||||||
|
if (userLangContainer)
|
||||||
|
ext = userLangContainer->getExtention();
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ext = NppParameters::getInstance()->getLangExtFromLangType(lt);
|
||||||
|
}
|
||||||
|
|
||||||
const TCHAR *ext = NppParameters::getInstance()->getLangExtFromLangType(lt);
|
|
||||||
if (ext && ext[0])
|
if (ext && ext[0])
|
||||||
{
|
{
|
||||||
generic_string filtres = TEXT("");
|
generic_string filtres = TEXT("");
|
||||||
|
@ -755,6 +755,7 @@ public :
|
|||||||
|
|
||||||
int getNbKeywordList() {return nbKeywodList;};
|
int getNbKeywordList() {return nbKeywodList;};
|
||||||
const TCHAR * getName() {return _name.c_str();};
|
const TCHAR * getName() {return _name.c_str();};
|
||||||
|
const TCHAR * getExtention() {return _ext.c_str();};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
generic_string _name;
|
generic_string _name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user