Repository navigation
feat: Abbrev モードでの半角スペースの自動挿入の有無を選択可能にする - #3
Merged
Merged
Conversation
completion.abbrevWithSpace (default true) controls the raw candidate that
abbrev mode (/) puts below [辞書登録]. With false the input itself is listed
("overall" for ▽overall) instead of the space-prefixed form (" overall"),
which is the candidate list other SKK implementations show. The candidate
stays exempt from dictionary registration and purging either way.
Docs: doc/skkelua.txt completion options + behavior bullet, README completion
section. Tests: lsp_spec adds the abbrevWithSpace=false cases (candidate
shape and dedup against an identical dictionary candidate), config_spec checks
partial completion merge and validation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Skkelua では、Abbrev モードで入力するとアルファベットの前に半角スペースが自動的に挿入されますが、Skkeleton や CorvusSKK (Windows用SKK) では半角スペースの自動挿入は行われません。
そのため、他の SKK の挙動に慣れたユーザーとしては、Abbrev モードでアルファベットを入力する際、半角スペースが自動的に入力されるか否かを毎回考える必要があり、認知負荷になってしまいます。
そこで、アルファベットの前に半角スペースを自動挿入するか否かを決めるオプションを追加しました。デフォルト値は
trueで、この状態なら自動挿入あり、falseにすると自動挿入なしとなります。これにより、ユーザーは自分に合った設定が可能になります。なお、Abbrev モードで入力する際、補完候補の1つ目が「辞書選択」となっている点は変更していません。