一个基于Python的命令行笔记应用,使用`questionary`库构建交互界面,支持笔记的增删查改和持久化存储。
Project description
CLI Notebook - 命令行笔记管理工具
一个基于Python的命令行笔记应用,使用questionary库构建交互界面,支持笔记的增删查改和持久化存储。
✨ 功能特性
-
核心功能
- 📝 添加富文本笔记(标题+内容)
- 🔍 全文搜索(支持标题和内容关键词)
- 📖 时间线浏览(按时间倒序排列)
- 🗑️ 安全删除(带确认提示)
-
增强特性
- 🎨 自定义命令行界面样式
- ⏱️ 自动时间戳记录
- 💾 JSON数据持久化存储
- 📦 跨平台支持(Windows/Linux/macOS/Android Termux)
🚀 快速开始
环境要求
- Python 3.8+
- pip 包管理器
安装步骤
- 使用pip安装
pip install heartflow
- 下载Releases安装
pip install path/to/file.whl
使用指南
# 启动应用
$ hf
或
$ python -m heartflow
# 主菜单示例
[📔 欢迎使用命令行记事本]
请选择操作:
添加笔记
查看所有笔记
搜索笔记
删除笔记
退出
⚙️ 配置选项
自定义界面样式(修改custom_style变量):
custom_style = Style([
('qmark', 'fg:#FF9D00 bold'), # 问题标记颜色
('pointer', 'fg:#00FF00 bold'), # 选择指针颜色
('answer', 'fg:#0000FF bold') # 答案文本颜色
])
📌 注意事项
- 数据文件默认存储在程序目录的
notes.json - 强烈建议定期备份数据文件
- 在Termux中使用时请确保存储权限:
termux-setup-storage
📜 许可证
本项目采用 MIT License
提示:按方向键导航菜单,Enter键确认选择
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
heartflow-1.5.0.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file heartflow-1.5.0.tar.gz.
File metadata
- Download URL: heartflow-1.5.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1ea97a05e39fa2eec72cbe9a9bdd73f16c2042a93e5407bab8f40c4b3751027
|
|
| MD5 |
597ba9dfe1839007e72780cbc4facb5f
|
|
| BLAKE2b-256 |
aada4e62807cc0a5f8c099b982947923d04e0bdbf3166fa207204a63ecbeaecc
|
File details
Details for the file heartflow-1.5.0-py3-none-any.whl.
File metadata
- Download URL: heartflow-1.5.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f5e9f98be83997b13b7d116ca8e9fa3e207f0920e8e3b037e719862e56abb94
|
|
| MD5 |
d5cdf8dda069945384fb8155fa4995e4
|
|
| BLAKE2b-256 |
01b343c9009fe4268085a54f6dbb503698cc30b2e186881a8c82ed2f8ddce0e8
|