Skip to content

Commit f490312

Browse files
authored
Merge pull request #6 from dasvh/docs/add-demo-gif
docs: add demo gif and fix typos
2 parents 7c7c736 + 4d6b0ed commit f490312

File tree

3 files changed

+76
-29
lines changed

3 files changed

+76
-29
lines changed

README.md

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ A simple plugin for [taskfiles](https://taskfile.dev/)
77

88
## Features
99

10-
- Run a specfic task directly within Neovim
10+
- Run a specific task directly within Neovim
1111
- Browse available tasks with a floating window
1212
- Preview each task’s command before execution
1313
- Run tasks in a floating terminal
1414
- Automatically scroll to bottom of output (optional)
15-
- Rerun last task via command or keymap
15+
- Rerun last task via command or key-map
1616

1717
## Requirements
1818

@@ -32,7 +32,8 @@ A simple plugin for [taskfiles](https://taskfile.dev/)
3232

3333
### Configuration
3434

35-
You can pass options to the `setup()` function:
35+
You can pass options to the `setup()` function to customise behaviour.
36+
All fields are optional and shown below with their default values:
3637

3738
```lua
3839
require('taskfile').setup({
@@ -52,36 +53,11 @@ require('taskfile').setup({
5253
auto = true, -- Auto-scroll output to bottom when new lines are printed
5354
},
5455
keymaps = {
55-
rerun = "<leader>tr" -- Keymap to rerun the last executed task
56+
rerun = "<leader>tr" -- Key-map to rerun the last executed task
5657
},
5758
})
5859
```
5960

60-
All fields are optional. These are the default values:
61-
62-
```lua
63-
{
64-
windows = {
65-
output = {
66-
width = 0.8,
67-
height = 0.8,
68-
border = "rounded",
69-
},
70-
list = {
71-
width = 0.6,
72-
height = 0.4,
73-
border = "rounded",
74-
},
75-
},
76-
scroll = {
77-
auto = true,
78-
},
79-
keymaps = {
80-
rerun = "<leader>tr",
81-
},
82-
}
83-
```
84-
8561
## Usage
8662

8763
This plugin reads your Taskfile and displays available tasks.
@@ -93,3 +69,11 @@ This plugin reads your Taskfile and displays available tasks.
9369
- `:TaskRerun`: Rerun the last executed task
9470

9571
You can also bind a key to rerun using the `keymaps.rerun` config.
72+
73+
<!-- panvimdoc-ignore-start -->
74+
75+
## Demo
76+
77+
![Demo GIF](./demo/demo.gif)
78+
79+
<!-- panvimdoc-ignore-end -->

demo/demo.gif

814 KB
Loading

demo/demo.tape

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
Output demo.gif
2+
3+
Set Theme "TokyoNight"
4+
5+
Set Padding 5
6+
Set Margin 10
7+
Set MarginFill "#3D4262"
8+
Set BorderRadius 7
9+
10+
11+
Set Width 1600
12+
Set Height 900
13+
Set FontSize 14
14+
15+
Hide
16+
Type "cd $HOME/git/examples/go-web-app"
17+
Enter
18+
Type "echo $PWD"
19+
Enter
20+
Type "nvim app.go"
21+
Enter
22+
23+
Show
24+
Sleep 750ms
25+
Type ":Task"
26+
Sleep 750ms
27+
Enter
28+
Sleep 750ms
29+
30+
Type "j"
31+
Sleep 1000ms
32+
Enter
33+
Sleep 1000ms
34+
Type "q"
35+
Sleep 1000ms
36+
37+
Type ":Task default"
38+
Sleep 750ms
39+
Enter
40+
Sleep 2000ms
41+
42+
43+
Type ":Task"
44+
Sleep 1000ms
45+
Enter
46+
Sleep 1000ms
47+
48+
Type "j"
49+
Sleep 500ms
50+
Type "j"
51+
Sleep 500ms
52+
Enter
53+
Sleep 1000ms
54+
55+
Type "q"
56+
Sleep 1000ms
57+
58+
Space
59+
Sleep 1000ms
60+
Type "t"
61+
Sleep 1000ms
62+
Type "r"
63+
Sleep 1000ms

0 commit comments

Comments
 (0)