| Summary: | Search and Replace missing Search in Project option | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | mokush <contact> |
| Component: | search | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | christoph, contact, kare.sars, loh.tar, nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.0.0 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/kate/53dd31b494bb4ade0e588cd4c3403a1fca42ff58 | Version Fixed/Implemented In: | 5.54 |
| Sentry Crash Report: | |||
| Attachments: | Kate doesn't update Search In options after opening project file | ||
|
Description
mokush
2015-05-06 13:43:34 UTC
With 15.08 there should be a "Current Project" and "All Open Projects" Combo-Entry, if the project plugin is loaded. Works for me at least. With Kate 17.08.3 I'm still only seeing - In Current Files - in Open Files - in Folder as options in the Search and Replace pane dropdown on the right. Hmm.. that is strange because it works here... Do you get any error messages on the console? And the project plugin has a project open? Found some extra symptoms. If I open Kate from a terminal and *in a project folder*, the "Current Project" and "All Open Projects" options show up. So this will work (even if no files are open): cd ./project kate But this will not (with a project file open): kate project/project.txt Opening Kate from krunner, a shortcut or from Dolphin (by opening a file) will not show the projects-specific options. No errors show up in the console. That is odd. It does work here on KDE Neon... Created attachment 116562 [details]
Kate doesn't update Search In options after opening project file
I'm still seeing the same issue with Kate `18.08.3`. This is a quick gif demo.
When starting Kate in a git folder, the Search and Replace panel shows the Search "In Current Project" and "In All Open Projects" options.
When starting Kate from outside the project/git folder (eg. from a taskbar shortcut), then opening a file from a git folder, the Search In options don't update, and don't show the "In Current Project" and "In All Open Projects" options.
I don't know what to say :( I tried the same thing with opening in a terminal, but I could not reproduce... I wonder if you have the project plugin instantiated before the search plugin? Git commit 53dd31b494bb4ade0e588cd4c3403a1fca42ff58 by Kåre Särs, on behalf of loh tar. Committed on 03/12/2018 at 07:10. Pushed by sars into branch 'master'. SearchView: Fix missing signal/slot connection to project plugin Summary: ...to notice project change after session switch Without this patch was the project offer in the m_ui.searchPlaceCombo after a session switch gone Reviewers: #kate, sars Reviewed By: #kate, sars Subscribers: sars, kwrite-devel, #kate Tags: #kate Differential Revision: https://phabricator.kde.org/D17296 M +9 -10 addons/search/plugin_search.cpp https://commits.kde.org/kate/53dd31b494bb4ade0e588cd4c3403a1fca42ff58 Seeing the same issue with version `18.12.3`. If opening Kate directly then opening a project file, the project options are missing from Search and Replace. Same happens when opening the file from Dolphin. If opening Kate in a terminal *from the project directory* the options show up. eg. `cd project/; kate projectfile.txt` - will work `kate project/projectfile.txt` - will not work hm, can't find the related patch there https://cgit.kde.org/kate.git/log/?h=Applications/18.12 it's only in master. For me that works in master, yes. And it should work in 19.x |