elementary / elementary/code

Add a way to tell Code to count specific characters as part of the word (preferably per language) when double clicking them

オープン
#760 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Priority: Low
主要言語
Vala
スター
521
フォーク
118
平均マージ
1日 8時間
マージ済み PR(30日)
14

説明

## 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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。