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
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
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 like this
Build a Pomodoro Focus Timer With SVG Progress Ring in One HTML File
A ready-to-paste prompt that builds a Pomodoro timer with focus, short and long break cycles, an SVG progress ring, a soft synthesized chime, keyboard shortcuts and a session counter.
Build an Instant Two-Way Unit Converter With Kitchen Measurements in HTML
A prompt that produces a single-file unit converter for length, weight, temperature, volume and cooking that updates both directions as you type, including cups-to-grams by ingredient.
Build a Countdown Timer to Any Date With a Confetti Finish in One HTML File
Get a polished single-file countdown page with a custom event title, a large days-hours-minutes-seconds display and a confetti-and-chime celebration at zero.
Build a Random Team Picker That Splits Names Into Fair Groups in One HTML File
You get a single-file team picker: paste names, choose a team count or team size, watch an animated shuffle deal everyone into evenly sized teams, then reshuffle with one key.
Build a Restaurant Tip and Bill Splitter With Uneven Shares in One HTML File
A ready-to-paste prompt that builds a bill splitter where diners pay for what they ordered, tax and tip are shared fairly, totals round neatly, and every cent adds up.
Build a Strong Password Generator with Strength Meter in One HTML File
You get a single HTML file that makes cryptographically random passwords, with toggles for character sets, an entropy-based strength meter and one-click copy.