macvim-dev / macvim-dev/macvim
RFC: support filetype selection in gui open window and consider b:browsefilter
まだ誰も着手していません。
- 主要言語
- Vim Script
- スター
- 7.9k
- フォーク
- 691
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
: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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
:h browsefilter と MacVim GUI のウィンドウを開く実装から始め、次に b:browsefilter を定義している filetype プラグインを調べます。macOS の開くダイアログが filetype の選択をサポートし、バッファローカルな b:browsefilter の値を考慮すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- macos, vim
- 領域
- desktop
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100