on main help sign in
feat: add `.crush` automatically to `.gitignore` on initializing
65e7346Andrey Nering
internal/tui/components/dialogs/commands/commands.go+2−1
@@ -239,7 +239,8 @@ func (c *commandDialogCmp) defaultCommands() []Command {
239
239
240 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.
240 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.
241 If there's already a CRUSH.md, improve it.
241 If there's already a CRUSH.md, improve it.
242− If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include them.`
242+ If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include them.
243+ Add the .crush directory to the .gitignore file if it's not already there.`
243 return util.CmdHandler(chat.SendMsg{
244 return util.CmdHandler(chat.SendMsg{
244 Text: prompt,
245 Text: prompt,
245 })
246 })
internal/tui/components/dialogs/init/init.go+2−1
@@ -180,7 +180,8 @@ func (m *initDialogCmp) handleInitialization(initialize bool) tea.Cmd {
180
180
181The file you create will be given to agentic coding agents (such as yourself) that operate in this repository. Make it about 20 lines long.
181The file you create will be given to agentic coding agents (such as yourself) that operate in this repository. Make it about 20 lines long.
182If there's already a CRUSH.md, improve it.
182If there's already a CRUSH.md, improve it.
183−If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include them.`
183+If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include them.
184+Add the .crush directory to the .gitignore file if it's not already there.`
184
185
185 // Mark the project as initialized
186 // Mark the project as initialized
186 if err := config.MarkProjectInitialized(); err != nil {
187 if err := config.MarkProjectInitialized(); err != nil {