massCode
massCode copied to clipboard
feat: search returns results only within the selected folder (resolves #128)
This PR changes the search behavior to search snippets only within the selected folder, instead of searching all snippets. The functionality for searching all snippets now requires the 'allSnippets' folder to be selected. Searches can be limited to favorites, all snippets, trash, or any user defined folder.
This feature improves user experience by making it easier to limit search results, while retaining the ability to search all snippets. It's necessary to be able to limit the number of search results, especially for users with large numbers of snippets. This feature also helps meet the expectation that the selected folder is the folder being searched.
This closes #128.
What kind of change does this PR introduce? (check at least one)
- [ ] Bugfix
- [X] Feature
- [ ] Refactor
- [ ] Build-related changes
- [ ] Other, please describe:
Does this PR introduce a breaking change? (check one)
- [ ] Yes
- [X] No
ping @antonreshetov
@patinthehat First of all thank you for the work you have done, but at the same time I would like to point out that before you implement something, you still need to wait for approval on it, because it may go against the vision of what the application should be. Otherwise your work may be in vain.
P.S. when you create a PR it says so.
@antonreshetov No problem - if it's not in line with your vision for the app, please feel free to close the PR. Thanks for the consideration! :+1:
@patinthehat I've thought about this feature, but I'd like to see it as it works in SnippetsLab - through adding a filter to the search.