Search: accept more type names, like is:colours, is:urls and is:photos
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 92/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- electron, react, typescript
Research direction
Read KIND_ALIASES in src/shared/search.ts and the parseQuery tests in tests/search.test.ts. Add the listed plural and synonym names for their matching types, then check that each alias maps to the expected type. Run pnpm test; done means all listed forms filter correctly and the tests pass.
Written by the indexing model from the issue text.
Description
Search understands a few names for each type, but not always the plural or the obvious synonym:
| Works | Doesn't work yet |
|---|---|
is:colour |
is:colours |
is:url |
is:urls |
is:picture |
is:pictures, is:photo, is:photos |
is:screenshot |
is:screenshots |
is:snippet |
is:snippets |
A name it doesn't know is searched as plain text, so is:colours currently finds nothing at all.
Where to look
src/shared/search.ts:KIND_ALIASES. The same names work aftertype:andkind:tests/search.test.ts: theparseQuerytests
#9 and #10 also change parseQuery. This one only adds to the alias table, so it shouldn't conflict with them.
Done when
- Every name in the right-hand column filters to its type
- A test checks each alias in
KIND_ALIASESmaps to the right type (looping over the table is fine), andpnpm testpasses
Suggested pull request title: feat(search): accept more type names like is:colours and is:urls
New to OpenPaste? CONTRIBUTING.md covers setup, the code conventions and the checks to run before a pull request (pnpm typecheck, pnpm test, pnpm format, pnpm cleaner). Leave a comment if you're picking this up so nobody doubles up.
Generated by Claude Code
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from alexsilver8/openpaste
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
alexsilver8/openpaste#31 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
alexsilver8/openpaste#30 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
alexsilver8/openpaste#29 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
alexsilver8/openpaste#27 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
alexsilver8/openpaste#28 ·
All issues in alexsilver8/openpaste
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
status:approved type:bug
Difficulty 1/5 Under an hour Newbie friendliness 70/100
egdev6/quorb#109 · 1 comment ·
Maintainers usually reply within 1 day
-
stage:4
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ilan-pinto/roaring-lions#598 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Frontmatter next to `src:` is applied to every imported slide, not only the first (undocumented)Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day