macvim-dev / macvim-dev/macvim
RFC: support filetype selection in gui open window and consider b:browsefilter
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Vim Script
- Sterne
- 7.9k
- Forks
- 691
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
: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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit :h browsefilter und der MacVim-GUI-Implementierung für das Öffnen von Fenstern und untersuche anschließend die Filetype-Plugins, die b:browsefilter definieren. Fertig ist die Arbeit, wenn der Öffnen-Dialog unter macOS die Auswahl des Filetypes unterstützt und lokale b:browsefilter-Werte des Buffers berücksichtigt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- macos, vim
- Bereich
- desktop
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100