Create multiple files using shell expansion syntax

Abierto
#195 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
tooling

Línea de trabajo

Start by locating the file-creation command and how its arguments are passed from key bindings. Implement the optional expansion behavior for comma choices and numeric ranges while preserving literal single-item braces, and verify that the argument can disable expansion for raw input. Done means the three examples behave as specified and the default behavior can be configured if settings support it.

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

Descripción

enhancement

Inserting a file named {home,about}.tsx could create two files at once.
Full syntax:

  • choice {a,b}.txtchoice a.txt, choice b.txt
  • file {1..3}.txtfile 1.txt, file 2.txt, file 3.txt
  • file {a}.txtfile {a}.txt

This behavior should be activated using an argument and can thus be customized when creating a key binding to still allow creating files with the raw input. If we're still doing settings, we could also allow specifying the default behavior there.

via @mauroreisvieira on Discord

Lenguaje dominante
Python
Estrellas
832
Forks
96
Merge medio
1 min
PR fusionados (30 d)
5

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

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 SublimeText/AdvancedNewFile

Todos los issues de SublimeText/AdvancedNewFile

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.