Commit b2bd5a1e387b

Vincent Demeester <vincent@sbr.pm>
2026-03-09 11:18:09
feat(lazyworktree): add commit auto-gen and palette cmds
Added commit screen auto-generate command using gemini-2.5-flash-lite via Ctrl+O. Added palette-only commands for build, review, and lint. Updated all aichat model references from gemini-2.0-flash-lite to gemini-2.5-flash-lite.
1 parent 8969131
Changed files (1)
dots
config
lazyworktree
dots/config/lazyworktree/config.yaml
@@ -17,14 +17,18 @@ terminate_commands:
   - echo "Cleaning up $WORKTREE_NAME"
 
 # Branch naming
-branch_name_script: "aichat -m gemini:gemini-2.0-flash-lite 'Generate a short git branch name (no spaces, use hyphens) for this diff. Output only the branch name, nothing else.'"
+branch_name_script: "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.'"
 issue_branch_name_template: "{number}-{generated}"
 pr_branch_name_template: "pr-{number}-{generated}"
 
 # Worktree notes
-worktree_note_script: "aichat -m gemini:gemini-2.0-flash-lite 'Summarise this pr or ticket as concise implementation notes to make easy to know what is it about at glance'"
+worktree_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'"
 worktree_notes_path: "~/.local/share/lazyworktree/worktree-notes.json"
 
+# Commit screen
+commit:
+  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."'
+
 # Custom commands
 custom_commands:
   E:
@@ -41,6 +45,17 @@ custom_commands:
     description: Shell tab
     new_tab: true
     show_help: true
+  _build:
+    command: make build
+    description: Build
+    show_output: true
+  _review:
+    command: make review
+    description: Review current worktree
+  _lint:
+    command: make lint
+    description: Run linter
+    show_output: true
 
 # Custom worktree creation menus
 custom_create_menus:
@@ -52,7 +67,7 @@ custom_create_menus:
       output only the branch name, nothing else. No need to output the ticket number in the branch, i'll add it myself."
       c=$(jayrah browse myissue --choose)
       if [[ -n ${c} ]]; then
-        msg=$(jayrah cli view ${c/ */} | aichat -m gemini:gemini-2.0-flash-lite "$prompt")
+        msg=$(jayrah cli view ${c/ */} | aichat -m gemini:gemini-2.5-flash-lite "$prompt")
         if [[ -n ${msg} ]]; then
           echo ${c/ */}-${msg}
         fi