dolphin/src
Ismael Asensio 616d4e6bdd fix(search): Correctly parse filename and/or content search
Summary:
Currently, the search url parsing does not detect if the search is based on Content or Filename, and it just keeps the last selection which can be inconsistent with the actual search.

This patch add such detection, and since an advanced user can combine filename and content search (using the keyword `filename:`), now the parsing detects both items and handles the four possible cases:

| Content | Filename | Search text | Search type |
|---|---|------------------------|------------------|
| T | T | abc filename:"xyz"  | Content          |
| T | F | abc                           | Content          |
| F | T | xyz                           | Filename         |
| F | F |                                  | do not set       |

Depends on: D25260

Test Plan: `bin/dolphinquerytest`: Added new test cases for searches with content text and/or filename

Reviewers: elvisangelaccio, bruns, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25416
2019-12-21 19:17:18 +01:00
..
filterbar When filter bar is focused, switch to view when tab key is pressed 2019-05-25 21:32:29 -06:00
icons Add application icon for Mac and MS Windows. 2016-11-22 18:15:42 +01:00
kitemviews GIT_SILENT: Port deprecated QSet::toList method 2019-12-19 14:39:43 +01:00
panels Make it compile against last kf5 version without deprecated methods 2019-12-06 13:31:43 +01:00
search fix(search): Correctly parse filename and/or content search 2019-12-21 19:17:18 +01:00
settings SVN_SILENT made messages (.desktop file) - always resolve ours 2019-12-16 05:22:38 +01:00
statusbar Remove unnecessary semicolons after Q_UNUSED 2019-11-09 22:09:16 +01:00
tests fix(search): Correctly parse filename and/or content search 2019-12-21 19:17:18 +01:00
trash Get rid of ugly static_cast usages in connect() calls 2019-05-05 17:53:29 +02:00
views Don't overload the word "Properties" to mean multiple things 2019-12-15 14:17:49 +01:00
CMakeLists.txt Merge branch 'release/19.12' 2019-11-17 18:54:40 +01:00
config-baloo.h.cmake Port Dolphin to Baloo 2014-02-06 20:29:09 +01:00
config-kactivities.h.cmake Bring back KActivities support 2019-03-18 21:18:04 +01:00
config-terminal.h.cmake Introduce HAVE_TERMINAL 2019-01-28 22:38:21 +01:00
dbusinterface.cpp Remove unnecessary semicolons after Q_UNUSED 2019-11-09 22:09:16 +01:00
dbusinterface.h Add dbus interface to dolphin 2015-04-22 18:59:39 +05:30
dolphin.qrc Bundle the XMLGUI files into qrc resources. 2017-07-25 11:39:57 +02:00
dolphinbookmarkhandler.cpp Remove dead code 2019-11-25 20:54:12 +01:00
dolphinbookmarkhandler.h Remove dead code 2019-11-25 20:54:12 +01:00
dolphincontextmenu.cpp Make it compile against last kf5 version without deprecated methods 2019-12-06 13:31:43 +01:00
dolphincontextmenu.h Refactoring to reduce size of openItemContextMenu and add the ContextType TimelineOrSearchContext 2019-12-02 13:24:36 +01:00
dolphindockwidget.cpp don't use temporaries when uneeded 2018-06-22 16:17:47 +02:00
dolphindockwidget.h don't use temporaries when uneeded 2018-06-22 16:17:47 +02:00
dolphinmainwindow.cpp Make it compile against last kf5 version without deprecated methods 2019-12-06 13:31:43 +01:00
dolphinmainwindow.h Add action for focusing Terminal Panel 2019-12-05 15:53:19 -07:00
dolphinnewfilemenu.cpp [CLAZY] Fixed all level 1 and level 2 warnings with small exceptions 2016-03-16 22:17:37 +01:00
dolphinnewfilemenu.h Remove unused #include 2018-03-04 21:00:47 +03:00
dolphinpart.cpp Make it compile against last kf5 version without deprecated methods 2019-12-06 13:31:43 +01:00
dolphinpart.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2019-11-11 09:42:43 +01:00
dolphinpart.h [Dolphin] Open Preferred Search Tool action 2019-11-17 18:15:26 +01:00
dolphinpart.qrc Bundle the XMLGUI files into qrc resources. 2017-07-25 11:39:57 +02:00
dolphinpart.rc Add action for focusing Terminal Panel 2019-12-05 15:53:19 -07:00
dolphinpart_ext.cpp Remove unused #include 2018-03-04 21:00:47 +03:00
dolphinpart_ext.h Remove unused #include 2018-03-04 21:00:47 +03:00
dolphinplacesmodelsingleton.cpp Introduce singleton for KFilePlacesModel 2018-03-19 09:57:24 +01:00
dolphinplacesmodelsingleton.h Introduce singleton for KFilePlacesModel 2018-03-19 09:57:24 +01:00
dolphinrecenttabsmenu.cpp Remove unused #include 2018-03-04 21:00:47 +03:00
dolphinrecenttabsmenu.h Remove unused #include 2018-03-04 21:00:47 +03:00
dolphinremoveaction.cpp Remove unused #include 2018-03-04 21:00:47 +03:00
dolphinremoveaction.h Remove unused #include 2018-03-04 21:00:47 +03:00
dolphintabbar.cpp Remove unused #include 2018-03-04 21:00:47 +03:00
dolphintabbar.h Modernize: Use override where possible 2017-11-20 23:25:48 +01:00
dolphintabpage.cpp Remove unnecessary semicolons after Q_UNUSED 2019-11-09 22:09:16 +01:00
dolphintabpage.h Fix minor typos 2018-10-25 21:23:44 +03:00
dolphintabwidget.cpp Disable keyboard accelerators for the tabs widget 2019-10-21 21:39:30 +02:00
dolphintabwidget.h Add actions for switching to a specific tab 2019-10-13 16:41:00 +02:00
dolphinui.rc Add action for focusing Terminal Panel 2019-12-05 15:53:19 -07:00
dolphinviewcontainer.cpp Remove unnecessary semicolons after Q_UNUSED 2019-11-09 22:09:16 +01:00
dolphinviewcontainer.h [dolphin] Add an action to toggle the searchbar 2019-09-01 21:59:43 +02:00
global.cpp Force dbus introspection on the Dolphin_1 object 2019-11-28 21:52:16 +01:00
global.h Fix build with Qt 5.14 RC 2019-12-09 23:21:51 +01:00
main.cpp Correct invalid homepage URL 2019-12-06 12:41:33 -07:00
Messages.sh i18n: drop servicemenuinstaller messages from main po file 2019-07-15 08:08:23 +02:00
middleclickactioneventfilter.cpp Add navigation history to forward/back buttons 2019-09-29 14:16:11 +02:00
middleclickactioneventfilter.h Fix all 'explicit constructor' krazy warnings 2018-02-03 22:21:30 +01:00
org.kde.dolphin.appdata.xml GIT_SILENT made messages (after extraction) 2019-12-20 02:29:14 +01:00
org.kde.dolphin.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2019-11-11 09:42:43 +01:00