main
  1auto_fetch_prs: false
  2auto_refresh: true
  3editor: emacsclient -t
  4git_pager: delta
  5git_pager_args: --paging=never --dark --line-numbers
  6icon_set: nerd-font-v3
  7max_name_length: 95
  8merge_method: rebase
  9refresh_interval: 10
 10session_prefix: wt-
 11sort_mode: switched
 12
 13# Prefer upstream remote for CI/PR queries (fork workflows)
 14ci_remote: auto
 15
 16# Agent session tuning
 17agent_sessions:
 18  refresh_debounce_ms: 500
 19
 20# Worktree lifecycle
 21init_commands:
 22  - link_topsymlinks
 23terminate_commands:
 24  - echo "Cleaning up $WORKTREE_NAME"
 25
 26# Branch naming
 27branch_name_script: |
 28  if [ "$LAZYWORKTREE_TYPE" = "diff" ]; then
 29    aichat -m gemini:gemini-2.5-flash-lite 'Generate a short git branch name (no spaces, use hyphens) for this diff. Output only the branch name, nothing else.'
 30  else
 31    aichat -m gemini:gemini-2.5-flash-lite 'Generate a short title (no issue-/pr- prefix, no spaces, use hyphens). Output only the title, nothing else.'
 32  fi
 33issue_branch_name_template: "{number}-{generated}"
 34pr_branch_name_template: "pr-{number}-{generated}"
 35
 36# Worktree notes — splitted markdown files for better sync and external tool access
 37worktree_note_script: "aichat -m gemini:gemini-2.5-flash-lite 'Summarise this pr or ticket as concise implementation notes to make easy to know what is it about at glance'"
 38worktree_note_type: splitted
 39worktree_notes_path: "~/.local/share/lazyworktree/notes/$REPO_NAME/$WORKTREE_NAME.md"
 40
 41# Commit screen (Ctrl+G to open, Ctrl+O to auto-generate)
 42commit:
 43  auto_generate_command: 'aichat -m gemini:gemini-2.5-flash-lite "Write a concise conventional commit message for this staged diff. First line is the subject (max 50 chars), then a blank line, then a body explaining what and why."'
 44
 45# Layout sizes (relative weights)
 46layout_sizes:
 47  worktrees: 55
 48  info: 30
 49  git_status: 40
 50  commit: 30
 51  agent_sessions: 20
 52  notes: 30
 53
 54# Custom commands (pane-scoped, v1.43+)
 55custom_commands:
 56  universal:
 57    e:
 58      command: ~/.config/lazyworktree/herdr-pi
 59      description: Open Pi in Herdr
 60      show_help: true
 61    _build:
 62      command: make build
 63      description: Build
 64      show_output: true
 65    _review:
 66      command: make review
 67      description: Review current worktree
 68    _lint:
 69      command: make lint
 70      description: Run linter
 71      show_output: true
 72
 73# Custom worktree creation menus
 74custom_create_menus:
 75  - label: "From JIRA ticket"
 76    description: "Create from JIRA issue"
 77    interactive: true
 78    command: |
 79      prompt="Generate a short git branch name (no spaces, use hyphens) for this diff.
 80      output only the branch name, nothing else. No need to output the ticket number in the branch, i'll add it myself."
 81      c=$(jayrah browse myissue --choose)
 82      if [[ -n ${c} ]]; then
 83        msg=$(jayrah cli view ${c/ */} | aichat -m gemini:gemini-2.5-flash-lite "$prompt")
 84        if [[ -n ${msg} ]]; then
 85          echo ${c/ */}-${msg}
 86        fi
 87      fi
 88    post_command: |
 89      mkdir -p tmp/
 90      ticket=$(git rev-parse --abbrev-ref HEAD|tr a-z A-Z |sed 's/\([Ss][Rr][Vv][Kk][Pp]-[0-9]*\)-.*/\1/')
 91      echo "https://issues.redhat.com/browse/${ticket}" > tmp/${ticket}.md
 92      jayrah cli view ${ticket} >> tmp/${ticket}.md
 93
 94theme: modus-operandi
 95
 96custom_themes:
 97  modus-operandi:
 98    accent: "#005f5f"
 99    accent_fg: "#ffffff"
100    accent_dim: "#dae5ec"
101    border: "#9f9f9f"
102    border_dim: "#c4c4c4"
103    muted_fg: "#595959"
104    text_fg: "#000000"
105    success_fg: "#006800"
106    warn_fg: "#884900"
107    error_fg: "#a60000"
108    cyan: "#005e8b"
109  modus-vivendi:
110    accent: "#6ae4b9"
111    accent_fg: "#000000"
112    accent_dim: "#2f3849"
113    border: "#646464"
114    border_dim: "#303030"
115    muted_fg: "#989898"
116    text_fg: "#ffffff"
117    success_fg: "#44bc44"
118    warn_fg: "#fec43f"
119    error_fg: "#ff5f59"
120    cyan: "#00d3d0"