Skip to content

Commit 8d5c12c

Browse files
feat: add Time Management tab (#27)
* wip: add boilerplate code for new tab * wip: add timer widget * feat: basic clock * chore: adapt env var to new crate location * feat: tick function to check if a timer finished or not * feat: working pomodoro * feat: send notification on time triggered state change * feat: switch between modes working * feat: fully working time management tab * refactor: rework footers * tests: update snapshot for new tab * refactor: split time_management module * feat: new cli command to open time management tab
1 parent 17b628f commit 8d5c12c

File tree

16 files changed

+1510
-15
lines changed

16 files changed

+1510
-15
lines changed

.config/config.toml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
[keybindings.TimeManagement]
2+
3+
# App
4+
"<q>" = "Quit"
5+
"<Ctrl-c>" = "Quit"
6+
"<Ctrl-z>" = "Suspend"
7+
"<?>" = "Help"
8+
# Tabs
9+
"<Shift-Right>" = "TabRight"
10+
"<Shift-l>" = "TabRight"
11+
"<Shift-Left>" = "TabLeft"
12+
"<shift-h>" = "TabLeft"
13+
# Navigation
14+
"<e>" = "Edit"
15+
"<Esc>" = "Escape"
16+
"<Enter>"= "Enter"
17+
"<Space>"="NextSegment"
18+
"<p>" = "Pause"
19+
"<Tab>"="NextTechnique"
20+
"<BackTab>"="PreviousTechnique"
21+
"<j>" = "Down"
22+
"<Down>" = "Down"
23+
"<k>" = "Up"
24+
"<Up>" = "Up"
25+
"<h>" = "Left"
26+
"<Left>" = "Left"
27+
"<l>" = "Right"
28+
"<Right>" = "Right"
129
[keybindings.Explorer]
230
# App
331
"<q>" = "Quit"
@@ -25,7 +53,7 @@
2553
"<s>" = "Search"
2654
"<Esc>" = "Escape"
2755
"<o>" = "Open"
28-
"<e>" = "EditTask"
56+
"<e>" = "Edit"
2957
"<r>" = "ReloadVault"
3058
# Scrolling
3159
"<Ctrl-u>" = "ViewUp"

.envrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export VAULT_TASKS_CONFIG=`pwd`/vault-tasks/.config
2-
export VAULT_TASKS_DATA=`pwd`/vault-tasks/.data
1+
export VAULT_TASKS_CONFIG=`pwd`/.config
2+
export VAULT_TASKS_DATA=`pwd`/.data
33
export VAULT_TASKS_LOG_LEVEL=debug
44

55
use flake

0 commit comments

Comments
 (0)