Build a Keyboard-Friendly To-Do Checklist with Priorities and Filters in One HTML File

A ready-to-paste prompt that makes an AI build a single-file to-do checklist where you can add, reorder, prioritize, filter and export tasks as plain text, all with keyboard shortcuts.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a senior front-end developer who builds small, polished productivity tools.

Build Shortlist, a calm priority checklist that runs entirely in one HTML file. Preload six realistic sample tasks (work and household errands) with mixed priorities, two of them already done.

Core features: add a task with a priority (High, Medium, Low), tick it done, edit its text inline, reorder it, delete it, filter the list, and export it as plain text.

Rules:
1. Controls: an Enter-to-add text input with a priority select (no form element). Each row has a check button, a priority badge that cycles on click, up and down move buttons and a delete button. Double-click or press E to edit.
2. Keyboard: N or / focuses the input; on a focused row, Space toggles done, Arrow keys move focus, Alt+Arrow moves the task, 1/2/3 set priority, Delete removes it. Show a shortcut legend on the page.
3. Filters: All / Active / Done segmented buttons plus priority chips, a Sort by priority button and Clear done. Show a live count of open tasks.
4. Export: a panel with the list as plain text in a read-only textarea, a Copy button with fallback and a Download .txt button.
5. Design: warm off-white background, white cards, one blue accent, red/amber/green priority badges, system fonts, clear type scale, fits 360-1280px.
6. Accessibility: aria labels, aria-pressed on toggles, a polite live region, visible focus rings, prefers-reduced-motion respected. No storage, network, alerts or external files.

Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Shortlist, a priority checklist with keyboard control and plain-text export.

Type a task, pick High, Medium or Low and press Enter. Click the check to finish a task, click its badge to change priority, and use the arrows to reorder. Try keyboard mode: press N to add, Tab into the list, then Space, Alt+↑/↓, 1/2/3 and E. Filter by status or priority, sort, then hit Export to copy or download the list.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Banning form elements and storage avoids sandbox errors, so the file runs in a chat preview and opened locally with no setup.
  • Listing every shortcut and requiring an on-page legend gives full keyboard control that users can actually discover.
  • Preloaded sample tasks with mixed priorities make filters, sorting and export easy to test the moment the page opens.

Paste into ChatGPT, Claude or Gemini, then save the returned code as shortlist.html and open it in any browser, or run it in the chat's preview or canvas. Tasks reset on reload, so use Export to keep a copy.

Common edits

  • Swap the three priorities for your own labels, such as Today, This week and Someday, and change the badge colors to match.
  • Add due dates by including a date column in the export and a Due soon filter chip next to the priority filters.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Mini Apps & Tools