3oFiz4/super-productivity-tui
关于
A blazing fast vim-supported terminal client for Super Productivity (SP) or without SP, made in Rust (ratatui) and connected to Super Productivity's API (Local REST or via SuperSync).
效率与自动化可以做什么
- Views & Organization: Inbox, Today, Planned, History, Counters, Projects, and Tags literally in a small collapsible navigation sidebar (Space / Enter / l / o), plus sidebar / fuzzy finder (n / N).
- Incase you're not familiar with vim (which is sad but is ok), there's an alternative!
- hjkl and arrow movement, gg / G jump to top/bottom, live / fuzzy task/sidebar search, and v / V Visual multi-select mode.
- Neovim-style : command palette (:c colorscheme, :h help, :s settings, :p focus timer, :w worklog, :n counters, :r daily summary, :q quit).
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Super Productivity TUI
https://github.com/user-attachments/assets/220b082d-f626-4e31-a14c-3818a0de2199
Thumbnails (PNG)
A blazing fast vim-supported terminal client for Super Productivity (SP) API, made in Rust (ratatui) and connected to your own choice of API! Whether you wanna use SP's Local REST API or directly to SuperSync (no background app) itself, ORR if you have no SP yet, don't worry your to-do will be saved locally and will be pushed to SP when you installed it already :)... So yes, this tool right here have option for those who hasn't installed SP yet, standalone to-do tui program :3.
Freely manage your tasks, subtasks, projects, tags, deadlines, focus sessions, daily habits, worklogs, and terminal colorschemes without having to open super-productivity EVER... i mean it.
Features
- Views & Organization:
Inbox,Today,Planned,History,Counters,Projects, andTagsliterally in a small collapsible navigation sidebar (Space/Enter/l/o), plus sidebar/fuzzy finder (n/N). - Flexible Keybinds (
Both,NVIM,Normal):- Incase you're not familiar with vim (which is sad but is ok), there's an alternative!
hjkland arrow movement,gg/Gjump to top/bottom, live/fuzzy task/sidebar search, andv/VVisual multi-select mode.- Neovim-style
:command palette (:ccolorscheme,:hhelp,:ssettings,:pfocus timer,:wworklog,:ncounters,:rdaily summary,:qquit). - Vim-like pending command display in the status bar and
jkalternative toEscin modals, dropdowns, Visual mode, and sidebar search.
- Short Syntax Task Creation (
a):- Just type
+project,#tag,t1h5m3s(ort30m/1h),@tomorrow/@2026-12-01, and!fridaydirectly in the task title with floating live completion. - It also pre-selects the currently viewed project automatically :-).
- Just type
- Inline Subtasks & Markdown Notes:
- Expand/collapse subtasks directly under parent tasks (
s), navigate into subtasks withj/k, toggle completion checkboxes (Space), and view Markdown-styled notes (n/K, full view withShift+N).
- Expand/collapse subtasks directly under parent tasks (
- Context-Aware Properties Dropdown (
O/L/p):- Schedule shortcuts (
sdToday,smTomorrow,snNext Week,uUnschedule,RInteractive Calendar Date Picker). Mapping sounds weird eh? Until you decide to see it directly then you'll get the intuition later! - Repeat presets, Move Top/Bottom (
mt/mb), Move to Project (mp), Add Subtask (as), Duplicate (d), Delete (d/xin properties). - Also works on Projects, Tags, and Visual multi-select batches.
- Schedule shortcuts (
- 3-Mode Focus Timer (
:porP):- Pomodoro: 25m focus / 5m short break / 15m long break sprints.
- Flowtime: Open-ended count-up timer that calculates an earned break (
elapsed / 5, minimum 1m). - Countdown: Custom target countdown (
5m–180m, adjustable with+/-).
- 100-Step Undo / Redo: Press
uto undo andCtrl+R(orUin Normal mode) to redo up to 100 task mutations. Now it's not really clear what mistake could happen up to 100 steps lol. - Worklog / History (
:w/H), Daily Summary (:r/E) & Simple Counters (:n/C): Inspect time spent by Day/Week/Month across Projects and Tags, review end-of-day carry-over tasks, and track daily counters/habits. - Live Theme Editor & 2D Color Picker (
:c):- 21 built-in themes including
AMOLED,Catppuccin Mocha,Catppuccin Latte,Tokyo Night,Gruvbox Dark,Nord,Dracula,One Dark,Solarized Dark/Light,Monokai Pro,Everforest Dark,Kanagawa,Rose Pine,Rose Pine Moon,GitHub Dark,Ayu Dark,Nightfox,Cyberpunk,Material Ocean, andDefault. - Live non-dimmed preview, interactive 2D RGB map + HEX color editor, custom theme saving.
- 21 built-in themes including
- Auto-Sync & Manual Sync (
S): Automatically syncs on startup, after API mutations, and every 30 seconds in the background while idle; pressSat any time for an immediate sync, if the automatic sync fails :3. - Offline Queue & Local Mode: Works standalone in
Localmode when Super Productivity is not installed yet (transitions automatically toOffline/Onlineand syncs queued changes once SP is installed and running). - Automatic Update Checker (
:vc/:vi/:vI): Checks GitHub Releases for new versions in both TUI and CLI, with Markdown changelog viewer and per-release or permanent mute options. - Desktop Notifications & Sound Alerts: Optional OS toast notifications and terminal bell/audio cues across Focus Mode, scheduled reminders, due dates, and deadlines.
- Daily Summary & End-of-Day Review: Interactive wrap-up modal showing completed tasks, total focus time, and carry-over prompts for unfinished tasks. (
:rorE) - Project & Tag Management: Full CRUD/reordering/color editing for Projects and Tags (excluding delete method) once supported by the Local REST API.
- Desktop Notifications & Sound Alerts: Optional OS notifications and terminal bell/audio cues when Pomodoro, Flowtime, or Countdown, Scheduling, Due dates reminders.
- Vim Visual / Multi-Select Mode (
v/V): Select multiple tasks to batch-complete, reschedule, move to a project, or delete in one action. Even SP didn't support this lol. - Inline Task Editing (
e/i): Edit task titles, time estimates, and due dates inline without opening a full modal. - CLI version
spt ls- CLI Subcommands (spt add,spt ls,spt sync): Scriptable non-interactive CLI mode for shell aliases, cron jobs, and status bars (Waybar/Polybar/tmux). Especially when you're lazy to open the TUI - SuperSync connection: Hate having to establish another Local REST API that communicates with SP process behind? Well, just use SuperSync API instead! No electron app behind.
Incoming Features
Ranked from most prioritized to less. Want to suggest a feature? Create a Issue, and let me know! (h = high priority; m = mid priority; l = low priority) (b = backtrack)
- [l] Active Time-Tracking Controls: Start/pause/stop Super Productivity's live task timer directly from the task list with a ticking status-bar indicator.
- [l] Custom Keybind Remapping: Override or bind any action to custom keys or leader-key chords in
config.toml. Keybind too hard to follow? (sorry :3), make your own then. - [m] Natural Language Due & Repeat Parsing: Support phrases like
every weekday,in 3 days,next month, andevery 2 weeksin short syntax. - [l] External
$EDITORNotes: Press a keybind to edit long Markdown task notes innvim,vim, or$EDITOR. - [l] Task Attachments & Links: View, add, and open URLs or local file attachments linked to a task.
- [l] Saved Filters & Smart Views: User-defined filter queries (e.g.,
overdue,high-estimate,@work + !today) pinned to the sidebar. - [l] Split-Pane / Dual-Column Mode: View two lists side-by-side (e.g.,
Inbox+Today) for drag-free keyboard triage.(Opinion: Just use nvim split-panes, then each terminal runssptlol.) - [l] Time-Blocking / Agenda Timeline: Hourly day-planner view to slot scheduled tasks into time blocks.
- [l] Habit Streaks & Counter History: Multi-day streak tracking and sparkline charts for Simple Counters. (Opinion: I personally rarely use habits for whatever reason)
- [l] CSV / JSON / Markdown Export: Export Worklog and History reports directly to Markdown tables, CSV, or JSON.
- [l] Mouse Drag & Click Support: Clickable sidebar items, task checkboxes, and scroll-wheel support across all panels.
- [l] Plugin / Webhook Hooks: Run custom shell scripts on events like
task_completedorpomodoro_finished. - [l] Multi-Instance Profiles: Switch between multiple Super Productivity API endpoints/tokens (e.g., Work vs. Personal) from
:sor CLI flags. - [m] Undo/Redo Persistence: Persist the 100-step undo history across
sptrestarts. - [m] Custom Nerd Font / ASCII Icon Toggle: Config option to switch cleanly between Nerd Font glyphs and pure ASCII/Unicode symbols.
Bugs
- [RESOLVED]
HTTP POSTfor Project and Tag creation is not possible right now, fallback to local creation instead. (#fdeeb79) HTTP REMOVE/DELETEfor Tag ONLY is not possible right now due to Plugin limitation, fallback to local creation instead.
Requirements
- Rust toolchain (
cargo,rustcsupporting Rust 2024 edition) - (optional) Super Productivity desktop app running locally with the Local REST API enabled (default:
http://127.0.0.1:3876) - A Nerd Font in your terminal emulator for crisp folder, tag, checkbox, and calendar icons (optional, degrades cleanly)
Getting Started
Build & Run
git clone https://github.com/your-org/Super-Productivity-TUI.git
cd Super-Productivity-TUI
cargo run --release
Or install the binary locally:
cargo install --path .
spt
ORRRRRR just go to release and install it already as ready-to-use .exe :3:
Configuration
- Open Super Productivity and enable the Local REST API + copy your Bearer token.
- Launch
sptand press:s(or click Settings in the sidebar) to enter:- API URL (default:
http://127.0.0.1:3876) - API Token (still not sure where? Please check ![#### Getting your token])
- Keybind Mode (
Both,NVIM, orNormal) - Keybind Hinting (underline/highlight mnemonic letters)
- API URL (default:
- Configuration, saved themes, and local counter fallbacks are stored automatically at:
- Linux/macOS:
~/.config/super-productivity-tui/config.toml - Windows:
%APPDATA%\super-productivity-tui\config.toml
- Linux/macOS:
1. Getting your Token
- On Super productivity, head to Settings.
- Go to
General - Scroll down to
Misc Settingssection - Enable
Enable local REST API - Copy your
Access Token - Done :3.... don't leak it though.
2. Auto-Start REST API on Boot (for Local REST API, might be abandoned soon)
The Local REST API runs inside Super Productivity's background process. To keep it running automatically on startup without manually opening the app window:
- In Super Productivity Settings → General → Misc Settings, enable Minimize to tray on close and Start minimized (plus Autostart if listed).
- Windows: Press
Win+R→shell:startup→ add a shortcut toSuper Productivity.exewith--minimizedin Target. - Linux: Add
superproductivity --minimizedto your DE/WM startup or~/.config/autostart/superproductivity.desktop. - macOS: Add Super Productivity to System Settings → General → Login Items.
2. SuperSync API (recommended)
Instead of using Local REST API, you can instead use SuperSync API:
- Launch
sptand open Settings (:s). - On
Sync Mode, press Space to switch to SuperSync. - Keep SS URL at https://sync.super-productivity.com (or enter your self-hosted SuperSync URL).
- Set SS Token: • Either paste your SuperSync JWT token, or tab to Browser Login ([ Connect via Browser ]), press Enter/Space, and approve the matching code in your browser.
- Set SS Password to the exact encryption password configured in Super Productivity's SuperSync settings.
- Press Enter to save and sync (● Sync... → ● Online). • You can also verify from the terminal via spt doctor and spt sync.
To test whether it works or not, if you're still unsure: Create any to-do task in SPT, make sure no SP port opened. Close SPT, then open SP and check if it synced automatically.
Companion Plugin (Create / Edit / Delete Projects & Tags)
Super Productivity's Local REST API only exposes read-only GET /projects and GET /tags, so spt includes a lightweight companion plugin bridge (127.0.0.1:3877) that uses SP's internal PluginAPI to create, rename, recolor, and delete Projects and Tags (excluding delete method) directly inside Super Productivity:
- Open Super Productivity and go to Settings → Plugins.
- Click Upload Plugin and select
plugin/sp-tui-bridge.zip. - Enable Super Productivity TUI Bridge.
- In
spt, press:sto confirmSP Plugin: ● Active(and optionally adjust Bridge Port, default3877,0to disable).
Note: Even without the plugin installed, Projects and Tags created/edited in
sptare saved locally incache.jsonand persist across syncs and restarts.
Keybind Quick Reference
Press :h inside the app for the searchable, sectioned keybind manual (j/k/g/G to scroll, / to search).
| Context | Key | Action |
|---|---|---|
| Movement | j / k / Arrows |
Move cursor up/down in current list |
gg / G |
Jump to top / bottom of current list | |
| Navigation | Tab / Ctrl+h |
Switch focus between Sidebar and Main task list |
Shift+Tab / Ctrl+l |
Switch focus in reverse | |
ga / gn |
Jump directly to Main area / Navigation sidebar | |
hn (Normal) / zn (NVIM) |
Hide / show navigation sidebar | |
/ (in Sidebar) |
Fuzzy-search sidebar (n / N next/prev match, Esc / jk clear) |
|
| Tasks & Visual | Space / Enter / o / l |
Toggle task/subtask done or open nav item |
a |
Add task (or add Project/Tag when sidebar is focused) | |
O / L / p / Right-Click |
Open context Properties dropdown (task / project / tag / batch) | |
v / V |
Visual multi-select (v toggle item, V range select, Esc / jk exit) |
|
d |
Delete task, Project/Tag (in Sidebar), or selected tasks (in Visual mode) | |
e / i |
Edit task inline (+proj, #tag, t1h, @due, !deadline) with completion |
|
s |
Show / hide subtasks for selected task | |
n (Normal) / K (NVIM) |
Show / hide inline task note | |
Shift+N |
Open full Markdown task note viewer | |
t |
Start / stop timer on selected task | |
R |
Open interactive Reschedule date & time picker | |
/ (in Main) |
Live fuzzy search tasks (title, project, tag) | |
| Undo / Redo | u |
Undo last task operation (up to 100 steps) |
Ctrl+R (or U in Normal) |
Redo undone task operation | |
| Views & Modals | :p / P |
Open Focus Timer (m/Tab mode, +/- mins, Space play/pause, l link task) |
:r / E |
Open Daily Summary & End-of-Day Review (t/w/u/Space/A carry-over) |
|
:w / H |
Open Worklog / History view | |
:n / C |
Open Counters & Simple Habits view | |
:c |
Open Theme / Colorscheme editor & color picker | |
jk |
Alternative to Esc in modals, dropdowns, Visual mode, and sidebar search |
|
| System | S |
Sync now with Super Productivity |
:s |
Open Settings & Bridge status | |
:h |
Open searchable, sectioned Help / Keybinds manual | |
q / :q |
Quit |
Short Syntax in Add Task (a)
When typing a task Title, you can embed inline tokens (with floating autocomplete):
+ProjectName— Assign to a project#TagName— Attach one or more tagst1h5m3s— Log time spent (also supports estimates witht30m/1hor2d)@today,@tomorrow,@mon..@sun,@YYYY-MM-DD— Set scheduled due day!today,!friday,!2026-12-31— Set deadline date
CLI Subcommands
Run spt <command> for non-interactive scripting, cron jobs, and status bars (supports theme colors, tree-formatted lists, short flags like -t/-p/-j, typo auto-correction for #tag/+project/@due/!deadline, SQL-like dot IDs like G2./._g, and multi-ID selection via AB1,AB2 or AB1 AB2 on done, edit, schedule, and rm):
spt add "Ship release +Work #prioriyt t30m/1h @today !friday" -t # auto-fixes #prioriyt -> #priority
spt ls today -p Work
spt done G2.,._g # multi-ID completion (comma or space separated)
spt edit AB1,AB2 "+Work #urgent @tomorrow" # multi-ID metadata edit (excludes title)
spt schedule ._g tomorrow -r 09:30 # matches ID ending with _g
spt start "Ship release" && spt stop
spt log "Ship release" 25m
spt status -w # JSON for Waybar / Polybar (--waybar)
spt status -T # Compact line for tmux / prompt (--tmux)
spt counter inc Water
spt summary && spt worklog -w -b project
spt sync && spt doctor
Run spt --help for the full list of subcommands and flags.
Credit
Heavily Inspired by: super-productivity-cli. When I initially intent to find a CLI to my SP, I was searching for it until I found this repo, it's old but it's still very useful showing how SP API can be used. I thanked the owner of the repo for showing how it's done. If it's not because of this repo, this repo wouldn't exist either :), feel free to give the owner some stars too!
Made for: super-productivity. I mean.. it's obvious though :)
License
MIT
探索相关项目
加载中…