Skip to content

チャットパレットにおいてコメントアウト記法を追加#167

Open
ViVi-shark wants to merge 1 commit into
yutorize:developfrom
ViVi-shark:feature/add_notation_to_commentout_in_chat-palette
Open

チャットパレットにおいてコメントアウト記法を追加#167
ViVi-shark wants to merge 1 commit into
yutorize:developfrom
ViVi-shark:feature/add_notation_to_commentout_in_chat-palette

Conversation

@ViVi-shark
Copy link
Copy Markdown
Contributor

#156 より復旧


機能

チャットパレットにおけるコメントアウト記法

記法

行頭を ; にする

挙動

当該行が存在しないかのようにチャットパレットを出力する

想定用途

“チャットパレットにあるとわずらわしい気がするが、削除していいと断言できるほどでもない”ものを一時的に除去するためにもちいる。

例:「キャラクターの成長にともなって、より上位の能力を手に入れたため、下位の能力用のコマンドはもう使わないような気がする……が、(消費コスト等の都合から)もしかすると使うことになるかもしれない……」というような場合

あるいは、セッションごとに ON/OFF するような使い方もできるかもしれない。
(ダンジョン攻略用の能力のコマンドは、ダンジョンの関与しないシナリオには不要……みたいなケース)

議論

記法

記法がこれでよいのかには議論の余地がある。

一般的に、単一行のコメントアウトは、行頭に #//; を置くという記法が採用されている。それぞれについての検討は以下:

#

以下の点から誤判定の可能性が想定される(ないしは、すくなくともまぎらわしい)ため、不適当と思われる。

  • ゆとチャにおいては、チャットパレットの折りたたみ記法 ### と重複してしまう
  • (先頭に置かれることはそうないであろうとはいえ、)ダイスボットのたぐいにおいて # がコマンドに含まれることはままある(たとえば BCDice においては、 # を含みうるコマンドが多数ある)

//

ゆとシの複数行記述欄におけるコメントアウト記法と一致しており、一貫性はある、が……。

チャットパレット上では、ゆとチャを含む主要なセッションツール全般において、変数定義の記法に採用されており、採用できない。

;

セミコロン ; によるコメントアウトは、 .vimrcphp.ini に倣ったもの。

主要なダイスボットやセッションツールにおいて、すくなくとも行頭にセミコロンを置くようなコマンドは思い当たらない。

一般的な用法においても、行頭にセミコロンを置くケースはまずないと考えられる。

備考

どこかにこの記法についての説明を載せるべきだと思うが、チャットパレット周辺のUIのどこにねじ込んでもいまいち目立たない気がしたので、とりあえずPR時点ではどこにも書いていない。

@yutorize yutorize force-pushed the develop branch 2 times, most recently from e6ec3aa to 67480c7 Compare May 28, 2024 07:16
@yutorize yutorize force-pushed the develop branch 2 times, most recently from 38e4bc0 to 1d41285 Compare June 13, 2024 22:06
@yutorize yutorize force-pushed the develop branch 6 times, most recently from 07d19c3 to 4510de2 Compare June 25, 2024 20:50
@yutorize yutorize force-pushed the develop branch 2 times, most recently from 1558afb to 6280311 Compare July 22, 2024 11:56
@yutorize yutorize force-pushed the develop branch 5 times, most recently from 2651883 to b232a52 Compare October 4, 2024 07:43
@yutorize yutorize force-pushed the develop branch 7 times, most recently from dc377bb to 4d43f79 Compare November 27, 2024 11:12
@yutorize yutorize force-pushed the develop branch 3 times, most recently from 1028a71 to 361f29c Compare December 5, 2024 09:08
@yutorize yutorize force-pushed the develop branch 2 times, most recently from 58c92f3 to 6ef632f Compare December 8, 2024 18:56
@yutorize yutorize force-pushed the develop branch 9 times, most recently from 93cf97d to 99541ff Compare June 4, 2025 08:20
@yutorize yutorize force-pushed the develop branch 3 times, most recently from 2223312 to fb39671 Compare January 10, 2026 17:38
@yutorize yutorize force-pushed the develop branch 3 times, most recently from 50e5321 to 88d68a0 Compare January 17, 2026 12:39
@yutorize yutorize force-pushed the develop branch 3 times, most recently from 7d69805 to 613db4e Compare April 25, 2026 19:41
@yutorize yutorize force-pushed the develop branch 3 times, most recently from 9b9cf95 to af5fa97 Compare May 4, 2026 13:43
@yutorize yutorize force-pushed the develop branch 4 times, most recently from 694b0a7 to 3e03ddf Compare May 20, 2026 10:56
@yutorize yutorize force-pushed the develop branch 4 times, most recently from e159168 to 6e02b4d Compare May 28, 2026 17:09
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.

1 participant