Replace syntax has misleading hover text

Aperta
#32 6 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
36/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
desktop

Direzione di ricerca

Start by reading the hover text for the Replace syntax and the code that handles replacement strings; the issue says captured groups use Python regex syntax such as \1. Check the README for the requested regex note as well. Done when the hover text describes the actual syntax and the README and application explain Python regex usage.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

image

The hover text makes it look like you do %1, %2, etc to insert captured groups, but it's actually \1, \2, etc because it's using Python regex.

This had me really confused until I looked at the source code and realized why %1 was treated as a literal rather than inserting a captured group, and I believe it should be changed to reflect its actual usage.

If "enumerate" means anything other than "insert capture groups," I think there should be more information on what it does, and I think there should also be a note somewhere (in both the application and repo readme, preferably) that it uses Python regex so nobody else will get confused like I was.

Lingua principale
Python
Stelle
118
Fork
22
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di linuxmint/bulky

Tutte le issue di linuxmint/bulky

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.