Note-Taker
A productivity and task management tool. Add items, manage a to-do list, set priorities, track daily and weekly views, set reminders, view statistics, clear completed tasks, and export data — all from the command line with persistent local storage.
Commands
Task Management
| Command | Description | Usage |
|---|
| INLINECODE0 | Add a new item to your task list | INLINECODE1 |
| INLINECODE2 |
List all current items |
note-taker list |
|
done | Mark an item as completed |
note-taker done <item> |
|
priority | Set priority level for an item |
note-taker priority <item> <level> |
|
clear | Clear all completed items from the list |
note-taker clear |
Views & Planning
| Command | Description | Usage |
|---|
| INLINECODE10 | Show today's items and schedule | INLINECODE11 |
| INLINECODE12 |
Show the weekly overview |
note-taker week |
|
remind | Set a reminder for an item |
note-taker remind <item> <time> |
Data & Management
| Command | Description | Usage |
|---|
| INLINECODE16 | Show total item count and statistics | INLINECODE17 |
| INLINECODE18 |
Export all data to stdout |
note-taker export |
|
help | Show the built-in help message |
note-taker help |
|
version | Print the current version (v2.0.0) |
note-taker version |
How It Works
- -
add appends a date-stamped line to the data file and confirms with "Added: ..." list prints all items from the data file, or "(empty)" if nothing exists yetdone marks a given item as completed and logs the actionpriority assigns a priority level (default: medium) to the specified itemtoday filters the data file for today's date and displays matching itemsweek shows a weekly overview of scheduled itemsremind sets a reminder for an item at a specified time (default: tomorrow)stats prints the total line count from the data fileclear removes completed items from the active listexport dumps the entire data file contents to stdout
Data Storage
All data is stored locally in ~/.local/share/note-taker/:
- -
data.log — the main data file containing all items (one per line, date-prefixed) history.log — tracks all command activity with timestamps- Entries in data.log are formatted as INLINECODE37
- Set
NOTE_TAKER_DIR environment variable to change the data directory - Also respects
XDG_DATA_HOME if set (defaults to ~/.local/share)
Requirements
- - Bash (any modern version)
- No external dependencies — pure shell script
- Works on Linux and macOS
- Standard Unix utilities:
date, wc, grep, INLINECODE44
When to Use
- 1. Daily task tracking — use
add to capture tasks throughout the day, today to see what's on your plate, and done to check off completed work - Weekly planning sessions — use
week for an overview, priority to rank what matters most, and remind for upcoming deadlines - Quick capture from terminal — when you're already in the terminal and want to jot something down without switching apps,
add is instant - Reviewing progress — use
list to see everything, stats for totals, and export to pipe data into other tools for analysis - Maintaining a clean list — use
clear to remove completed items and keep your active list focused on what still needs attention
Examples
CODEBLOCK0
Output
Commands print concise confirmations to stdout. list and export output the full data file. stats shows a total count. All actions are also logged to history.log for auditing. Redirect output with standard shell operators: note-taker list > tasks.txt.
Configuration
| Variable | Description | Default |
|---|
| INLINECODE61 | Override the data directory path | INLINECODE62 |
| INLINECODE63 |
XDG base directory (used if
NOTE_TAKER_DIR is not set) |
~/.local/share |
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
笔记助手
一款生产力与任务管理工具。支持添加事项、管理待办清单、设置优先级、查看每日和每周视图、设置提醒、查看统计信息、清除已完成任务以及导出数据——全部通过命令行完成,并具备持久化本地存储功能。
命令
任务管理
| 命令 | 描述 | 用法 |
|---|
| add | 向任务列表添加新事项 | note-taker add <文本> |
| list |
列出所有当前事项 | note-taker list |
| done | 将事项标记为已完成 | note-taker done <事项> |
| priority | 为事项设置优先级 | note-taker priority <事项> <级别> |
| clear | 从列表中清除所有已完成事项 | note-taker clear |
视图与规划
| 命令 | 描述 | 用法 |
|---|
| today | 显示今日事项和日程 | note-taker today |
| week |
显示每周概览 | note-taker week |
| remind | 为事项设置提醒 | note-taker remind <事项> <时间> |
数据与管理
| 命令 | 描述 | 用法 |
|---|
| stats | 显示事项总数和统计信息 | note-taker stats |
| export |
将所有数据导出到标准输出 | note-taker export |
| help | 显示内置帮助信息 | note-taker help |
| version | 打印当前版本(v2.0.0) | note-taker version |
工作原理
- - add 向数据文件追加一行带日期戳的记录,并确认已添加:...
- list 打印数据文件中的所有事项,若无事项则显示(空)
- done 将指定事项标记为已完成并记录操作
- priority 为指定事项分配优先级(默认:中等)
- today 筛选数据文件中今天的日期并显示匹配事项
- week 显示计划事项的每周概览
- remind 在指定时间为事项设置提醒(默认:明天)
- stats 打印数据文件中的总行数
- clear 从活动列表中移除已完成事项
- export 将整个数据文件内容输出到标准输出
数据存储
所有数据本地存储在 ~/.local/share/note-taker/ 目录下:
- - data.log — 包含所有事项的主数据文件(每行一个事项,带日期前缀)
- history.log — 记录所有命令活动及时间戳
- data.log 中的条目格式为 YYYY-MM-DD <内容>
- 设置 NOTETAKERDIR 环境变量可更改数据目录
- 若设置了 XDGDATAHOME 也会遵循该变量(默认为 ~/.local/share)
系统要求
- - Bash(任何现代版本)
- 无外部依赖——纯 Shell 脚本
- 适用于 Linux 和 macOS
- 标准 Unix 工具:date、wc、grep、cat
使用场景
- 1. 日常任务追踪 — 使用 add 在一天中随时记录任务,用 today 查看待办事项,用 done 勾选已完成工作
- 每周规划会议 — 使用 week 查看概览,用 priority 排列重要事项,用 remind 设置截止日期提醒
- 终端快速记录 — 当您已在终端中,想快速记下某事而无需切换应用时,add 即刻完成
- 进度回顾 — 使用 list 查看所有事项,用 stats 查看总数,用 export 将数据导入其他工具进行分析
- 保持清单整洁 — 使用 clear 移除已完成任务,让活动列表专注于仍需处理的事项
示例
bash
添加新任务
note-taker add 审核认证模块的拉取请求
添加另一任务
note-taker add 准备周五会议的幻灯片
列出所有任务
note-taker list
将任务标记为已完成
note-taker done 审核认证模块的拉取请求
设置任务优先级
note-taker priority 准备周五会议的幻灯片 high
查看今日待办
note-taker today
设置提醒
note-taker remind 提交报销单 周五下午5点
查看统计信息
note-taker stats
导出所有数据用于备份
note-taker export > backup.txt
输出
命令在标准输出打印简洁的确认信息。list 和 export 输出完整的数据文件。stats 显示总数。所有操作也会记录到 history.log 中供审计使用。使用标准 Shell 操作符重定向输出:note-taker list > tasks.txt。
配置
| 变量 | 描述 | 默认值 |
|---|
| NOTETAKERDIR | 覆盖数据目录路径 | ~/.local/share/note-taker |
| XDGDATAHOME |
XDG 基础目录(当未设置 NOTE
TAKERDIR 时使用) | ~/.local/share |
由 BytesAgain 提供技术支持 | bytesagain.com | hello@bytesagain.com