import { CommandItem } from './commands'; export const getSuggestionItems = (): CommandItem[] => { // Basic commands const basicCommands = [ { title: 'today', description: 'Insert today\'s date', content: new Date().toLocaleDateString(), }, { title: 'now', description: 'Insert current time', content: new Date().toLocaleTimeString(), }, { title: 'datetime', description: 'Insert current date and time', content: new Date().toLocaleString(), }, { title: 'list', description: 'Insert a bullet list', content: '
Date: ' + new Date().toLocaleDateString() + '
Attendees:
Agenda:
Action Items:
Best regards,
Your Name
your.email@example.com
This is a quote', }, { title: 'code', description: 'Insert code block', content: '
// Your code here\nconsole.log("Hello world");
',
},
{
title: 'bold',
description: 'Insert bold text',
content: 'Bold text',
},
{
title: 'italic',
description: 'Insert italic text',
content: 'Italic text',
},
{
title: 'underline',
description: 'Insert underlined text',
content: 'Underlined text',
},
{
title: 'strike',
description: 'Insert strikethrough text',
content: 'Subject: [Your Subject]
Dear [Name],
I hope this email finds you well.
[Your message here]
Thank you for your time and consideration.
Best regards,
Your Name
[Your Name]
[Your Address]
[City, State ZIP]
[Your Email]
[Your Phone]
[Date]
[Recipient Name]
[Recipient Title]
[Company Name]
[Street Address]
[City, State ZIP]
Dear [Recipient Name],
[Letter content]
Sincerely,
[Your Name]
', }, { title: 'report', description: 'Insert report template', content: 'Date: ' + new Date().toLocaleDateString() + '
Author: Your Name
[Brief summary of the report]
[Introduction text]
[Detailed findings]
[Conclusion text]
[Recommendations]
', }, { title: 'proposal', description: 'Insert proposal template', content: 'Date: ' + new Date().toLocaleDateString() + '
Prepared by: Your Name
[Brief description of the project]
[Detailed scope]
[Project timeline]
[Budget details]
', }, { title: 'invoice', description: 'Insert invoice template', content: 'Invoice #: [Number]
Date: ' + new Date().toLocaleDateString() + '
Due Date: [Due Date]
Description | Amount |
---|---|
[Item/Service Description] | [Amount] |
Total | [Total Amount] |
Payment Terms: [Terms]
Payment Method: [Method]
', }, ]; // Task management commands const taskCommands = [ { title: 'todo', description: 'Insert todo list', content: 'Header 1 | Header 2 |
---|---|
Row 1, Cell 1 | Row 1, Cell 2 |
Row 2, Cell 1 | Row 2, Cell 2 |
Header 1 | Header 2 | Header 3 |
---|---|---|
Row 1, Cell 1 | Row 1, Cell 2 | Row 1, Cell 3 |
Row 2, Cell 1 | Row 2, Cell 2 | Row 2, Cell 3 |
Row 3, Cell 1 | Row 3, Cell 2 | Row 3, Cell 3 |
Time | Monday | Tuesday | Wednesday | Thursday | Friday |
---|---|---|---|---|---|
9:00 AM | |||||
10:00 AM | |||||
11:00 AM |
Feature | Option A | Option B | Option C |
---|---|---|---|
Feature 1 | ✓ | ✓ | ✓ |
Feature 2 | ✓ | ✗ | ✓ |
Feature 3 | ✗ | ✓ | ✓ |
Price | $ | $$ | $$$ |
This is example command ${index}
`, }; }); // Combine all command categories return [ ...basicCommands, ...formattingCommands, ...templateCommands, ...taskCommands, ...tableCommands, ...additionalCommands, ]; };