TUI Guide
Launching the TUI
sd-todo tui
# or
sd-todo ui
Interface Layout
Three-Pane Layout (Folder Mode)
When using categories (folder mode), you get three panes:
+-- Categories --+-- Todos -------------------------+
| > Work (5) | > 1 [ ] Buy milk |
| Personal(2) | 2 [x] Call dentist |
| Shopping(0) | 3 [ ] Review PR #123 |
+----------------+----------------------------------+
+-- Details ------------------------+
| ID: 1 |
| Status: Pending |
| Description: Buy milk |
+----------------------------------+
Two-Pane Layout (Single File Mode)
When using a single file, you get two panes:
+-- Todos -------------------------+
| > 1 [ ] Buy milk |
| 2 [x] Call dentist |
| 3 [ ] Review PR #123 |
+----------------------------------+
+-- Details ------------------------+
| ID: 1 |
| Status: Pending |
| Description: Buy milk |
+----------------------------------+
Keyboard Shortcuts
Navigation
| Key | Action |
|---|---|
Up or k | Move up |
Down or j | Move down |
Tab | Switch between panes |
Enter | Select category |
Actions
| Key | Action |
|---|---|
a | Add new todo |
e | Edit selected todo |
d | Delete selected todo (or category in Categories pane) |
Space | Toggle completion status |
/ | Search todos |
f | Cycle filter (All / Pending / Completed) |
c | Clear all completed todos |
+ | Add new category (when in Categories pane) |
- | Delete category (when in Categories pane) |
Input Mode
When adding, editing, or searching:
| Key | Action |
|---|---|
Enter | Submit |
Esc | Cancel |
Backspace | Delete character |
Other
| Key | Action |
|---|---|
F1 or h | Toggle help overlay |
q | Quit TUI |
Visual Indicators
- Green border - Currently focused pane
- Yellow highlight - Selected item
- Gray text - Completed todos
>symbol - Current selection[x]- Completed checkbox[ ]- Pending checkbox
Details Pane
The details pane shows comprehensive information about the selected todo:
- ID - The todo’s unique identifier
- Status - Pending or Completed
- Created - When the todo was created (with relative time)
- Completed - When the todo was completed (if applicable)
- Description - The full todo text
Filters
Press f to cycle through filters:
- All - Show all todos
- Pending - Show only incomplete todos
- Completed - Show only completed todos
Tips
Quick Workflow
- Launch TUI:
sd-todo tui - Navigate with
Up/Downorj/k - Toggle completion with
Space - Add new todos with
a - Edit with
e - Delete with
d - Quit with
q
Category Management
- Press
Tabto focus Categories pane - Navigate with
Up/Down - Press
Enterto switch category - Press
+to add a new category - Press
-ordto delete selected category - Press
Tabagain to return to Todos
Bulk Cleanup
- Press
fto filter to “Completed” - Review completed todos
- Press
cto clear all completed - Press
fagain to return to “All”
CLI vs TUI
Use CLI When
- Quick one-off commands
- Scripting/automation
- Remote SSH (low bandwidth)
- Adding single todo
- Checking status quickly
Use TUI When
- Managing many todos
- Organizing/reviewing
- Working with categories
- Need visual overview
- Long work sessions
Troubleshooting
TUI doesn’t launch
- Make sure you’re using:
sd-todo tuiorsd-todo ui - Check terminal supports colors:
echo $TERM - Try updating terminal emulator
Display issues
- Resize terminal window
- Check terminal size:
tput colsandtput lines - Minimum recommended: 80x24
Keyboard shortcuts don’t work
- Make sure terminal is in focus
- Check for conflicting terminal shortcuts
- Try different key combinations (arrows vs j/k)