[FEATURE]: Per-language `words`
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 49/100
Hướng nghiên cứu
Start by reading the configuration handling for dictionaries and words, then trace how the active language is selected when checking a document. The issue proposes language-specific word lists but does not name files or tests; find the relevant configuration and spell-checking tests first. Done means global words remain available and language-specific words apply only to their matching active language.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature Description
Thanks to all who've worked on this project, it's a big part of making it practical to work on LaTeX or Typst documents in Zed!
The ability to have multiple dictionaries active at the same time is very useful, but there's no way to add words to the dictionary only for a specific language – it would be great to have this.
Currently, the words list unfortunately ends up being a mixture of different languages:
dictionaries = ["en_gb", "de"]
words = ["redox", "upstreamed", "quelloffen"]
Unless I'm mistaken this means that "quelloffen" becomes an acceptable (and presumably also suggested) word when writing in English, even if there's a project configuration file that sets the dictionary for the project to be exclusively English, or even if an LSP overrides the dictionary setting based on a markup tag in the file.
Use Case
I feel that for people who regularly work in more than one language this is fairly essential, to avoid false negatives and incorrect suggestions.
Proposed Solution
words could, rather than being a list, simply be a table with the applicable language tag as keys, and the correct one is selected based on the active language:
dictionaries = ["en_gb", "de"]
words.global = ["redox"]
words.en_gb = ["upstreamed"]
words.de = ["quelloffen"]
Alternative Solutions
You could just rely on per-project configuration, but that loses the convenience of the global configuration.
Examples
No response
Additional Context
No response
- Ngôn ngữ chính
- Rust
- Star
- 925
- Fork
- 59
- Merge trung bình
- 53 phút
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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.
Issue khác của blopker/codebook
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 43/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement Zed issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
blopker/codebook#310 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
blopker/codebook#276 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của blopker/codebook
Issue tương tự
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
polete-bermejo/floord#21 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
gbif/name-parser-rust#259 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nledford/Ladderback#1171 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: LANGSMITH_SAMPLING_RATE ignores fractional values (isdigit check), traces 100% of requestsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày