feat: add `.crush` automatically to `.gitignore` on initializing

Andrey Nering created

Change summary

internal/tui/components/dialogs/commands/commands.go | 3 ++-
internal/tui/components/dialogs/init/init.go         | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)

Detailed changes

internal/tui/components/dialogs/commands/commands.go 🔗

@@ -239,7 +239,8 @@ func (c *commandDialogCmp) defaultCommands() []Command {
 
 	The file you create will be given to agentic coding agents (such as yourself) that operate in this repository. Make it about 20 lines long.
 	If there's already a CRUSH.md, improve it.
-	If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include them.`
+	If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include them.
+	Add the .crush directory to the .gitignore file if it's not already there.`
 				return util.CmdHandler(chat.SendMsg{
 					Text: prompt,
 				})

internal/tui/components/dialogs/init/init.go 🔗

@@ -180,7 +180,8 @@ func (m *initDialogCmp) handleInitialization(initialize bool) tea.Cmd {
 
 The file you create will be given to agentic coding agents (such as yourself) that operate in this repository. Make it about 20 lines long.
 If there's already a CRUSH.md, improve it.
-If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include them.`
+If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include them.
+Add the .crush directory to the .gitignore file if it's not already there.`
 
 		// Mark the project as initialized
 		if err := config.MarkProjectInitialized(); err != nil {