Repository navigation
Fix(spotlight): improve file search query restoration and mode switching - #2887
Merged
Merged
Conversation
bbedward
requested changes
Jul 18, 2026
bbedward
left a comment
Member
There was a problem hiding this comment.
This creates a regression with queries like this dms ipc call launcher toggleQuery "vim" , vim is pre-selected instead of having the cursor at the end as we want. The main use case for that is plugins, so we don't want to pre-select text when its launched with an explicit query
- When "remember last query" is enabled and the last query is file search, it shows "no results" until the query is manually modified in full launcher mode.
… in full launcher mode
Legend-017
force-pushed
the
fix(spotlight)
branch
from
July 18, 2026 15:35
26475b0 to
a828e48
Compare
bbedward
requested changes
Jul 19, 2026
| if (explicitType !== null && SessionData.launcherLastFileSearchType !== explicitType) { | ||
| SessionData.setLauncherLastFileSearchType(explicitType); | ||
| } | ||
| } else { |
Member
There was a problem hiding this comment.
Just style wise, this should be an else if. In general I prefer guard statement patterns though.
…refix When the '/' prefix is removed from the query, the controller now correctly reverts to the previous mode instead of remaining stuck in "files" mode.
Legend-017
force-pushed
the
fix(spotlight)
branch
from
July 20, 2026 09:37
a828e48 to
154b191
Compare
bbedward
pushed a commit
that referenced
this pull request
Jul 24, 2026
…ing (#2887) * fix(spotlight): fix empty results on restoring last file search query - When "remember last query" is enabled and the last query is file search, it shows "no results" until the query is manually modified in full launcher mode. * fix(spotlight): properly restore last selected mode(tab) when enabled in full launcher mode * fix(spotlight): allow file trigger in plugins mode(tab) * fix(spotlight): restore previous mode when clearing '/' file search prefix When the '/' prefix is removed from the query, the controller now correctly reverts to the previous mode instead of remaining stuck in "files" mode. * fix(spotlight): code review fix (cherry picked from commit 367ad5f)
marcusramberg
pushed a commit
to marcusramberg/DankMaterialShell
that referenced
this pull request
Sep 2, 2026
…ing (duxlabs-dev#2887) * fix(spotlight): fix empty results on restoring last file search query - When "remember last query" is enabled and the last query is file search, it shows "no results" until the query is manually modified in full launcher mode. * fix(spotlight): properly restore last selected mode(tab) when enabled in full launcher mode * fix(spotlight): allow file trigger in plugins mode(tab) * fix(spotlight): restore previous mode when clearing '/' file search prefix When the '/' prefix is removed from the query, the controller now correctly reverts to the previous mode instead of remaining stuck in "files" mode. * fix(spotlight): code review fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
/file search trigger in the plugins tab./prefix behavior: Prevents the launcher from getting stuck in "files" mode when the/prefix is deleted, now correctly reverting to the "All" tab or remembered mode(tab).Type of change
Related issues
Checklist
make lint-qmlwith no new warnings