macvim-dev / macvim-dev/macvim
RFC: support filetype selection in gui open window and consider b:browsefilter
Nessuno ha ancora preso questa issue.
- Lingua principale
- Vim Script
- Stelle
- 7.9k
- Fork
- 691
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
: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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia da :h browsefilter e dall’implementazione GUI di MacVim per l’apertura delle finestre, quindi esamina i plugin di filetype che definiscono b:browsefilter. Il lavoro è completo quando la finestra di dialogo di apertura di macOS supporta la selezione del filetype e tiene conto dei valori di b:browsefilter locali al buffer.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- macos, vim
- Ambito
- desktop
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100