Commit 864a16e2 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Kåre Särs
Browse files

Rename to setProjectRegexSearch

parent 0d58e509
......@@ -57,9 +57,15 @@ bool KateSearchCommand::exec(KTextEditor::View * /*view*/, const QString &cmd, Q
}
}
/**
* preg command
* - Uses regex always
* - Is case insensitive
* - Will expand the tree on search completion if -e is used
*/
else if (command == QLatin1String("preg")) {
Q_EMIT setSearchPlace(MatchModel::Project);
Q_EMIT setPregSearch();
Q_EMIT setProjectRegexSearch();
Q_EMIT newTab();
}
......
......@@ -28,7 +28,7 @@ Q_SIGNALS:
void setSearchPlace(int place);
void setCurrentFolder();
void setSearchString(const QString &pattern);
void setPregSearch();
void setProjectRegexSearch();
void startSearch();
void newTab();
......
......@@ -221,7 +221,7 @@ QObject *KatePluginSearch::createView(KTextEditor::MainWindow *mainWindow)
connect(m_searchCommand, &KateSearchCommand::setCurrentFolder, view, &KatePluginSearchView::setCurrentFolder);
connect(m_searchCommand, &KateSearchCommand::setSearchString, view, &KatePluginSearchView::setSearchString);
connect(m_searchCommand, &KateSearchCommand::startSearch, view, &KatePluginSearchView::startSearch);
connect(m_searchCommand, &KateSearchCommand::setPregSearch, view, &KatePluginSearchView::setPregSearch);
connect(m_searchCommand, &KateSearchCommand::setProjectRegexSearch, view, &KatePluginSearchView::setPregSearch);
connect(m_searchCommand, SIGNAL(newTab()), view, SLOT(addTab()));
connect(view, &KatePluginSearchView::searchBusy, m_searchCommand, &KateSearchCommand::setBusy);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment