17
17
18
18
## :package : Dependencies
19
19
20
- - POSIX-compliant shell (sh, dash, bash etc.)
20
+ - POSIX-compliant shell (dash, bash, zsh etc.)
21
21
- [ gum] ( https://github.com/charmbracelet/gum#installation )
22
22
23
23
## :rocket : Installation
24
24
25
25
### Install as a package
26
26
27
- ` mdt ` is available in the [ Arch User Repository] ( https://aur.archlinux.org/packages/mdt ) . If you use Arch or an Arch-based distro, you can use ` makepkg ` or your AUR helper of choice to install the ` mdt ` package.
27
+ mdt is available in the [ Arch User Repository] ( https://aur.archlinux.org/packages/mdt ) . If you use Arch or an Arch-based distro, you can use ` makepkg ` or your AUR helper of choice to install the ` mdt ` package.
28
28
29
29
### Install using ` make `
30
30
@@ -45,42 +45,35 @@ chmod +x mdt
45
45
mv mdt ~ /.local/bin
46
46
```
47
47
48
- ## :memo : Getting started
49
-
50
- 1 . Create a todo lists directory:
48
+ ## :gear : Configuration
51
49
52
- ``` sh
53
- mkdir ~ /tasks
54
- ```
50
+ | Option | Environment Variable | Description |
51
+ | ------------ | --------------------- | ---------------------------------------------------------------------- |
52
+ | -d, --dir | MDT_DIR | Path to the tasks directory. By default the current working directory. |
53
+ | -i, --inbox | MDT_INBOX | Path to the inbox file. By default "todo.md". |
54
+ | --color | MDT_MAIN_COLOR | Main color. |
55
+ | --prompt | MDT_PROMPT | Input prompt character. Default is '◆'. |
56
+ | --cursor | MDT_CURSOR | Selection character. Default is '➔'. |
57
+ | --item-width | MDT_ITEM_WIDTH | Todo items width. 0 for no wrap, default is 75. |
58
+ | --input-width | MDT_INPUT_WIDTH | Input prompt width. 0 for no wrap, default is 65. |
59
+ | --editor | MDT_EDITOR, EDITOR | Markdown file editor. |
55
60
56
- 2 . Create an inbox :
61
+ Examples of using options :
57
62
58
63
``` sh
59
- touch ~ /tasks/inbox.md
64
+ # Static path to the inbox
65
+ alias mdt=' mdt --dir ~/tasks --inbox ~/tasks/inbox.md'
66
+ # Dynamic path to the inbox
67
+ alias mdt=' mdt --dir ~/tasks --inbox ~/tasks/"$(date -I).md"'
60
68
```
61
69
62
- 3 . Create an alias to run ` mdt ` . Put something like this in your ` ~/.bashrc ` file :
70
+ Examples of using environment variables :
63
71
64
72
``` sh
65
- alias mdt=' mdt --dir ~/tasks --inbox ~/tasks/inbox.md'
73
+ export MDT_MAIN_COLOR=' #5FAFFF'
74
+ export MDT_EDITOR=' nvim -c "set nonumber"'
66
75
```
67
76
68
- 4 . Reload your ` .bashrc ` by running ` source ~/.bashrc ` or just restart the terminal window.
69
- 5 . In case you want to edit markdown files manually, check out this site: https://www.markdownguide.org/cheat-sheet
70
-
71
- ## :gear : Configuration
72
-
73
- | Option | Environment Variable | Description |
74
- | ------------ | --------------------- | ------------------------------------------------- |
75
- | -d, --dir | MDT_DIR | Path to the tasks directory. |
76
- | -i, --inbox | MDT_INBOX | Path to the inbox file. |
77
- | --color | MDT_MAIN_COLOR | Main color. |
78
- | --prompt | MDT_PROMPT | Input prompt character. Default is '◆'. |
79
- | --cursor | MDT_CURSOR | Selection character. Default is '➔'. |
80
- | --item-width | MDT_ITEM_WIDTH | Todo items width. 0 for no wrap, default is 75. |
81
- | --input-width | MDT_INPUT_WIDTH | Input prompt width. 0 for no wrap, default is 65. |
82
- | --editor | MDT_EDITOR, EDITOR | Markdown file editor. |
83
-
84
77
## :keyboard : Keybindings
85
78
86
79
| Keybinding | Description |
@@ -90,3 +83,4 @@ alias mdt='mdt --dir ~/tasks --inbox ~/tasks/inbox.md'
90
83
| Tab/Space/x | Select |
91
84
| a/A | Select/unselect all |
92
85
| Enter | Accept |
86
+
0 commit comments