Skip to content

Instantly share code, notes, and snippets.

View YukiMatsumura's full-sized avatar

Yuki312 YukiMatsumura

View GitHub Profile
@YukiMatsumura
YukiMatsumura / settings.json
Last active March 14, 2026 13:45
Claude: Plan.md preview in cmux
"hooks": {
"PreToolUse": [
{
"matcher": "ExitPlanMode",
"hooks": [
{
"type": "command",
"command": "cmux markdown open \"$(ls -t ~/.claude/plans/*.md | head -1)\"",
"timeout": 5,
"statusMessage": "Preview plan.md in cmux"
#!/usr/bin/env bash
# =============================================================================
# difit-auto-detect.sh
# Automatically detects git state and opens appropriate diff view
# with difit in a cmux browser split pane.
#
# Dependencies:
# - cmux https://cmux.app/
# - difit https://github.com/yoshiko-pg/difit
#