File tree 3 files changed +5
-17
lines changed 3 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
-
3
- git clone https://github.com/alex1701c/QuickWebShortcuts
4
- cd QuickWebShortcuts/
2
+ if [[ $( basename " $PWD " ) != " QuickWebShortcuts" ]]; then
3
+ git clone https://github.com/alex1701c/QuickWebShortcuts
4
+ cd QuickWebShortcuts/
5
+ fi
5
6
mkdir build
6
7
cd build
7
8
cmake -DQT_PLUGIN_INSTALL_DIR=` kf5-config --qt-plugins` ..
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ void QuickWebShortcutsConfig::load() {
90
90
91
91
void QuickWebShortcutsConfig::extractNameFromURL () {
92
92
if (m_ui->searchEngineURL ->text ().contains (QRegExp (R"( ^(?:https?://)?(?:[\w]+\.)(?:\.?[\w]{2,})+)" ))) {
93
- QRegExp exp (R"( ^(?:https?://)?([\w ]+)\.(?:\.?[\w]{2,})+)" );
93
+ QRegExp exp (R"( ^(?:https?://)(www\.) ?([^/ ]+)\.(?:\.?[\w]{2,})+/? )" );
94
94
exp .indexIn (m_ui->searchEngineURL ->text ());
95
95
QString res = exp .capturedTexts ().last ();
96
96
res[0 ] = res[0 ].toUpper ();
Original file line number Diff line number Diff line change 14
14
You should have received a copy of the GNU Lesser General Public
15
15
License along with this library. If not, see <http://www.gnu.org/licenses/>.
16
16
*/
17
-
18
- /*
19
- * DONE Delete functionality for manually added search engines
20
- * DONE Handle defaults inside GUI
21
- * DONE Extract Search Engine config to file
22
- * DONE Read custom search engines for Krunner settings(inside runner)
23
- * DONE Extract Name from URL ?
24
- * DONE Handle event for add search engine in GUI
25
- * DONE Make Items in ComboBox editable
26
- * DONE Handle save in GUI
27
- * DONE Handle Defaults in GUI
28
- * DONE: Mark current in Gui
29
- */
30
17
#include " quick_web_shortcuts.h"
31
18
#include < KLocalizedString>
32
19
#include < QtGui/QtGui>
You can’t perform that action at this time.
0 commit comments