Skip to content

edit

Open a template in your configured editor for editing.

Usage

Terminal window
prompter edit [name]

Behavior

Edit Specific Template

Terminal window
prompter edit code-review

Opens the code-review.md template in your editor.

Open Templates Directory

Terminal window
prompter edit

Without a template name, opens your templates directory in your editor.

Create New Template

If the template doesn’t exist, Prompter will ask if you want to create it:

Terminal window
prompter edit new-template

You’ll be prompted:

Template "new-template" not found. Create it? (y/n)

If you confirm, a new template is created with default frontmatter:

---
name: "new-template"
description: "Describe when to use this template"
flag: ""
shorthand: ""
pin: false
---
# new-template
Write your template here.