Add a way to tell Code to count specific characters as part of the word (preferably per language) when double clicking them
- Ngôn ngữ chính
- Vala
- Star
- 521
- Fork
- 118
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 14
Mô tả
## Prerequisites
- [x] I have searched open and closed issues for duplicates.
---
Ruby and Crystal allow `!` and `?` as part of variables and methods, so you can have a method like `File.exists? "~/abc"`. It would be useful if you could tell Code to count these characters as part of the word when double clicking them per language, so you could double click `exists?` and it would select the whole thing, rather than just `exists`.
...actually, it would probably be better to instead either use the language spec file for GtkSourceView to determine what to include in the double click select (if anything is even in the file for non-library variables and methods), or (possibly better) use language servers (#220) to determine that instead.
The latter would probably actually tell Code what you're double clicking (i.e. if what you're selecting is a variable/method/class/etc.) and so Code could use that to determine what to select (e.g. language server says what we double clicked is a method called `exists?`, so we should select the entirety of `exists?`), while the former may not even specify anything for non-library functions/methods/variables (i.e. your variables), so that's why the latter is probably better.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách xem xét cách các tệp đặc tả ngôn ngữ của GtkSourceView xác định ranh giới từ và đề xuất language-server trong issue #220. Xác định liệu một trong hai hướng có thể hỗ trợ việc lựa chọn các ký tự như ! và ? theo từng ngôn ngữ hay không, sau đó định nghĩa completion là nhấp đúp vào exists? để chọn toàn bộ tên phương thức mà không làm hỏng các ngôn ngữ hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- developer-experience, tooling
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- 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
- 25/100