macvim-dev / macvim-dev/macvim
RFC: support filetype selection in gui open window and consider b:browsefilter
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Vim Script
- Star
- 7.9k
- Fork
- 691
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
: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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với :h browsefilter và phần triển khai mở cửa sổ của GUI MacVim, sau đó kiểm tra các plugin filetype định nghĩa b:browsefilter. Hoàn thành khi hộp thoại mở của macOS hỗ trợ chọn filetype và tính đến các giá trị b:browsefilter cục bộ của buffer.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- macos, vim
- Lĩnh vực
- desktop
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100