Replace syntax has misleading hover text

Abierto
#32 6 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
36/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
desktop

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
118
Forks
22
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de linuxmint/bulky

Todos los issues de linuxmint/bulky

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.