Search: exclude results with a leading minus (-is:image, -app:slack, -word)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 75/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- react, typescript
Direzione di ricerca
Start in src/shared/search.ts with ParsedQuery, parseQuery and matchesQuery to see how filters and terms are split today. Check shelf-app.tsx, which highlights parseQuery(search).terms, so excluded words go into separate fields such as excludeTerms. Done when the three leading-minus forms work alone and mixed with normal filters, hyphenated words still match as before, tests/search.test.ts covers the new cases and pnpm test passes, and the README search bullet mentions the minus.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Search can narrow results down but can't leave things out. Today -is:image is searched as the literal text "-is:image". Most search boxes let you exclude with a leading -, and the shelf should too:
-is:imagehides images-app:slackhides everything copied from Slack-drafthides items that contain "draft"
Where to look
src/shared/search.ts:ParsedQuery,parseQueryandmatchesQuerysrc/renderer/src/shelf/shelf-app/shelf-app.tsxhighlights matches on cards withparseQuery(search).terms. Keep excluded words in their own fields (sayexcludeTerms,excludeKinds,excludeApps) rather than interms, or the shelf would highlight words it's hidingtests/search.test.ts
Done when
- The three forms above work, on their own and mixed with normal filters (
is:code -app:terminal) - Words with a hyphen inside (
well-known,e-mail) are searched as before - Tests in
tests/search.test.tscover these, andpnpm testpasses - The search bullet in
README.md("Finds things fast") mentions the minus
Suggested pull request title: feat(search): exclude results with a leading minus
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
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 3
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di alexsilver8/openpaste
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
alexsilver8/openpaste#31 ·
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
alexsilver8/openpaste#32 ·
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
alexsilver8/openpaste#30 ·
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
alexsilver8/openpaste#29 ·
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
alexsilver8/openpaste#27 ·
Tutte le issue di alexsilver8/openpaste
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
one-zero-eight/apply-bot#39 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
bigbluebutton/bbb-ui-components-react#108 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
high priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
CI-CMG/deep-sea-corals-exb#84 · 1 commento ·