一个基于终端的多事件倒数计时器

165 阅读1分钟

倒计时

Countdown是基于终端的多事件倒计时器,它使用Charm_Bubble TeaTUI框架。

安装

只需克隆和构建:

git clone https://github.com/aldernero/countdown.git
cd countdown
go build -o countdown main.go

当你第一次启动它时,一个events.json 文件将在当前目录下被创建,你会看到一个单一的事件:

A terminal based multi-event countdown timer

当你添加和删除事件时,events.json 文件将被更新。

使用方法

控件是

  • "+"添加一个事件
  • "-"删除一个事件
  • "/"来过滤事件

其余的控件是你所期望的,向上/向下浏览列表,Tab在事件输入表格的字段之间移动。