Bug 402207 - Improve default search filter
Summary: Improve default search filter
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: general (show other bugs)
Version: git master
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2018-12-16 20:24 UTC by Gregor Mi
Modified: 2019-01-09 09:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.4.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregor Mi 2018-12-16 20:24:07 UTC
Currently, when starting a project-wide file search with Ctrl+Alt+F, the following is default:

- Limit to Project files: false
- Files: *.h,*.hxx,*.hpp,*.hh,*.h++,*.H,*.tlh,*.cpp,*.cc,*.C,*.c++,*.cxx,*.ocl,*.inl,*.idl,*.c,*.m,*.mm,*.M,*.y,*.ypp,*.yxx,*.y++,*.l

For KDE development - especially for newcomers - it would be helpful if *.txt,*.xml,*.rc were also part of that list.
Comment 1 Kevin Funk 2018-12-16 20:25:52 UTC
Agreed, please just propose a patch.
Comment 2 Gleb Popov 2019-01-08 16:57:23 UTC
Git commit 16c8d3c661a753b6e4fcfda0faf63d566e38d0a8 by Gleb Popov.
Committed on 08/01/2019 at 16:54.
Pushed by arrowdodger into branch 'master'.

GrepView: Extend default file extensions to search

Summary:
Extends the default file extensions to search by *.txt,*.xml,*.rc as proposed in: https://bugs.kde.org/show_bug.cgi?id=402207

Also extends the header extensions by *.cuh (CUDA headers) and the C sources by *.cu (CUDA sources).

Test Plan: Tested it manually. Note: If one manually changed the file extensions in a session before, the new defaults won't show up there since they are overridden by the previously modified value.

Reviewers: #kdevelop, arrowd

Reviewed By: arrowd

Subscribers: kdevelop-devel

Tags: #kdevelop

Differential Revision: https://phabricator.kde.org/D17892

M  +3    -3    plugins/grepview/grepdialog.cpp

https://commits.kde.org/kdevelop/16c8d3c661a753b6e4fcfda0faf63d566e38d0a8