ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Task List

by noahcoad ST4

Create task lists by toggling an emoji icon in front of lines, like "Toggle Comment".

Labels todo, tasks, gtd, markdown

Details

Installs

  • Total 20
  • Win 14
  • Mac 4
  • Linux 2
Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10
Windows 0 0 0 2 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
Mac 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Task List

Toggle an emoji icon onto a line in Sublime Text — like Toggle Comment, but it cycles through a set of task icons.

:: today
✅ order parts for automated sprayer
⚛️ update architecture diagram
⚛️ create POC proposal

:: archive
✅ change flight to Japan
⚛️ mail package to brother

Usage

Run Task List: Toggle from the command palette. Each press advances the line to the next icon, then clears it:

⚛️ to do → 🅿️ in progress → ✴️ highlight → 🆘 error → ✅ done → (none)

Works on multiple lines and multiple selections at once, and keeps the icon after any leading indentation. Markdown prefixes are preserved too — the icon lands after headers, bullets, ordered list numbers, and blockquote markers:

## ✅ Header
- ⚛️ bullet
1. ⚛️ ordered item
> - ✅ nested quote + bullet

Sorting

Task List: Sort puts a list in icon order — the same order the toggle cycles through, so open work rises to the top and done work sinks to the bottom.

With a selection it sorts the selected lines. With just a cursor it finds the list on its own, growing up and down over the run of task lines the cursor is in (or next to). Lines with no icon sort to the end, same-icon lines keep their relative order, indented lines travel with the item above them, and ordered-list numbers get rewritten so 1. 2. 3. stays ascending.

Blank lines between items don't split the list, and the gaps stay where they were. Sorting a list that's already in order reverses it (done work on top), so running it again flips back. The status bar says which happened, or that the cursor isn't in a task list.

1. ⚛️ update architecture diagram        1. ⚛️ update architecture diagram
2. ✅ order parts                   →    2. 🅿️ get Figma ESC
3. 🅿️ get Figma ESC                      3. ✅ order parts

Task List: Alternative Sort works the same way but uses the alt_sort order from settings, for a second view of the same list. The default puts the most critical work first:

🆘 → ✴️ → ⚛️ → 🅿️ → ✅

Icons missing from alt_sort sort after the ones it lists, in toggle order, and lines with no icon still go last.

Legend

Task List: Insert Legend drops a one-line key at the cursor, so a shared file explains its own icons:

⚛️ to do → 🅿️ in progress → ✴️ highlight → 🆘 error → ✅ done

Each icon carries its own label, so the legend can't drift from the toggle cycle. legend_separator sets what goes between the entries; an icon with no label is left out.

The legend always gets a line of its own: on a blank line it fills it, at the start of a line it goes above, and anywhere else on a line it goes below. A selection is replaced by the legend.

The labels are yours to reword — they're only what the legend prints, so rename them to whatever your files call things: underway, parked, waiting, blocked, completed.

Key Bindings

None ship enabled, so nothing you already use gets clobbered. Open Preferences > Package Settings > Task List > Key Bindings and copy the suggested binding for Toggle from the left pane to your own on the right:

{ "keys": ["super+alt+t"], "command": "toggle_task_list" }

Sort, Alternative Sort, and Insert Legend have no suggested keys; run them from the command palette. To bind one anyway, add a line with its command and whatever keys you like:

Command palette Command
Task List: Toggle toggle_task_list
Task List: Sort sort_task_list
Task List: Alternative Sort alt_sort_task_list
Task List: Insert Legend insert_task_list_legend

Settings

Preferences > Package Settings > Task List > Settings — the icons list is both the toggle cycle and the sort order, and each entry pairs an icon with the label the legend uses for it:

"icons": [
    { "icon": "⚛️", "label": "to do" },
    { "icon": "🅿️", "label": "in progress" },
    { "icon": "✴️", "label": "highlight" },
    { "icon": "🆘", "label": "error" },
    { "icon": "✅", "label": "done" }
]

The first entry is the “to do” icon you'll see most; 🟣, 🟪, and ✔️ all work well there, as does any other emoji. A bare string ("icons": ["⚛️", "✅"]) works too — it just won't appear in the legend.

alt_sort is a plain list of icons for Alternative Sort:

"alt_sort": ["🆘", "✴️", "⚛️", "🅿️", "✅"]

Both Settings and Key Bindings are in the command palette too, as Preferences: Task List ….

Also

Check out my other Sublime Text packages.