Export `rl_readline_name` cell to Ruby interface
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Inspecciona el código de readline gem que fija el nombre de la aplicación en (char *)"Ruby" y la interfaz de Ruby circundante. Lee la documentación de GNU Readline sobre rl_readline_name y determina cómo debería exponerse. Se considera completado cuando las aplicaciones Ruby pueden establecer la celda y el comportamiento predeterminado actual permanece intacto.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
IIUIC, the rl_readline_name attribute allows per-application customisations in .inputrc. From man readline concerning the $it application/$endif construct:
application
The application construct is used to include application-specific settings.
Each program using the readline library sets the application name,
and an initialization file can test for a particular value. This could be used
to bind key sequences to functions useful for a specific program. For instance,
the following command adds a key sequence that quotes the current or
previous word in bash:
$if Bash
# Quote the current or previous word
"\C-xq": "\eb\"\ef\""
$endif
The current implementation arrogates this capability to itself, preventing its use by Ruby application developers. Currently the readline gem hard-codes this to (char *)"Ruby". However, a compiler (interpreter) isn't really an application, particularly since it itself is not using the readline library. That seems to be more appropriately the province of things written in Ruby. And then only if they choose to change it from the "Ruby" default. Note that the documentation explicitly says: "Each program using the readline library sets the application name." I offer that the Ruby interpreter binary is not "the application" by this documentation.
Therefore, this is a FREQ that this cell be exposed to the Ruby level in the gem code, allowing Ruby code developers to set this according to their own application needs.
Thanks!
- Lenguaje dominante
- C
- Estrellas
- 14
- Forks
- 7
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ruby/readline-ext
-
UB/crashes with libedit Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
ruby/readline-ext#31 · 1 comentario ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 35/100
ruby/readline-ext#17 ·
Todos los issues de ruby/readline-ext
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
bradcypert/plum#53 ·
-
Component: GLib
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Status: Opened
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
nextbsd/nextbsd-userland#285 ·