macvim-dev / macvim-dev/macvim

RFC: support filetype selection in gui open window and consider b:browsefilter

Abierto
#761 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Feature Request
Lenguaje dominante
Vim Script
Estrellas
7.9k
Forks
691
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

:h browsefilter says

							*browsefilter*
For MS Windows and GTK, you can modify the filters that are used in the browse
dialog.  By setting the g:browsefilter or b:browsefilter variables, you can
change the filters globally or locally to the buffer.  The variable is set to
a string in the format "{filter label}\t{pattern};{pattern}\n" where {filter
label} is the text that appears in the "Files of Type" comboBox, and {pattern}
is the pattern which filters the filenames.  Several patterns can be given,
separated by ';'.

LibreOffice (tested with v6.1) under macOS supports similar functionality.

Could MacVim support this as well and take b:browsefilter into account?

There are 52 filetype plugins in $VIMRUNTIME which define b:browsefilter.

❯ ag -l browsefilter | wc -l
      52

I noticed that many macOS apps gray out those filetypes they do not support in the open file dialog window but do not provide a pulldown menu to change the filter.

If this is more complicated to implement (non-standard open dialog window), feel free to close this issue since this is not very important for me.

Guía de contribución

Abrir la guía de contribución

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.

Línea de trabajo

Comienza con :h browsefilter y la implementación de apertura de ventanas de la GUI de MacVim; después, inspecciona los plugins de filetype que definen b:browsefilter. La tarea estará terminada cuando el diálogo de apertura de macOS admita la selección de filetype y tenga en cuenta los valores locales al buffer de b:browsefilter.

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

Evaluación

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

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.