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.
#363 ddskkなどで導入されている、
/ t o d a y SPC
と入力することで今日の日付 (例2025年6月17日(火)
) に変換する機能を追加します。macSKKではmacOSのDateFormatterを使って変換します。
そのため設定画面には "yyyy/MM/dd" のようなフォーマット文字列の他に、地域 (曜日の表記に影響) や暦 (西暦・和暦に影響する) の設定があります。
また「きのう」で昨日の日付、「きょう」で今日の日付に変換できるように読みの設定には現時点からの相対時間の設定があります。
特に制限を入れてないので日付じゃなくとも日時への変換を行うこともできます。
PR作成時点では、日付変換の読みリストにあるもので変換を開始した場合、変換候補の先頭に日付の変換候補をその順で追加します。