Skip to content

fix(dncl): indent by 4 spaces when typing in the Japanese tab - #2273

Merged
smalruby3-editor-bot[bot] merged 2 commits into
topic/japanese-mode-1731from
fix/ja-tab-indent-width
Nov 19, 2026
Merged

smalruby3-editor-bot[bot] merged 2 commits into
topic/japanese-mode-1731from
fix/ja-tab-indent-width

Conversation

@smalruby3-editor-bot

Copy link
Copy Markdown

Summary

EPIC #1731 の確認ページ W10(罫線を打たせない)を調べた結果の小さな直し。

いまの日本語タブは罫線を打たなくても書ける(テキストは空白の字下げ、罫線は問題の形の表示だけ)。ただ、キーボードの字下げ(Enter・Tab)が 2 空白で、標準の形の書き出し(ja-notation)と補完のスニペットの 4 空白とそろっていなかった。

Changes Made

  • ruby-tab.jsx: Monaco の tabSize を日本語タブでは 4、ルビータブでは 2(いまのまま)に。
  • docs/dncl/README.md: 罫線を打たない入力のしかた(Enter・そうでなければ: の自動のもどり・Backspace・Shift+Tab・Tab・スニペット・罫線付きの貼り付け)。
  • 統合テスト test/integration/dncl-typing-indent.test.js: もし x > 1 ならば: で Enter → 4 空白、Enter → Backspace で 1 段もどる。

Test Coverage

  • 統合テストは CI で(ビルドが要るため手元では流していない)。
  • この PR のプレビューで、headless の Playwright でキーボード入力して確かめる。

Closes #2272

🤖 Generated with Claude Code

Enter after a line that ends with : and Tab indented by 2 spaces, while
the standard form is written (by ja-notation and the snippets) with 4.
The Japanese tab now uses 4; the Ruby tab keeps 2. The docs tell how to
type the indent without the ruled lines.

Refs #2272

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed (stg API): https://preview.smalruby.app/fix-ja-tab-indent-width-6f25632b/

Refs #2272

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was previously deployed

1 inactive deployment
stg — a7e5436c Deployed Nov 19, 2026 by smalruby3-editor-bot[bot] via cleanup #447
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants