File tree 3 files changed +16
-10
lines changed
3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Add
2
2
3
- This copies a dotfile to the repository and replaces it with a symlink.
3
+ Copies a dotfile to the repository and replaces it with a symlink.
4
4
5
5
``` go
6
6
{{#include ../../../../cmd/freckles/cmd/add.go :cmd}}
@@ -23,7 +23,6 @@ Completion is provided with [ActionFiles] using a couple of twists.
23
23
>
24
24
> [ Batch] not only enables concurrent invokation of [ Actions] .
25
25
> It also provides a neat way to add them ** conditionally** .
26
- >
27
26
> See [ ActionRefs] for a more sophisticated example.
28
27
29
28
[ Actions ] :https://carapace-sh.github.io/carapace/carapace/action.html
Original file line number Diff line number Diff line change 1
1
# Edit
2
2
3
+ Opens a dotfile in your editor.
4
+
3
5
``` go
4
6
{{#include ../../../../cmd/freckles/cmd/edit.go :cmd}}
5
7
```
6
8
9
+ Completion is provided with a [ custom action] .
10
+
7
11
``` go
8
12
{{#include ../../../../cmd/freckles/cmd/edit.go :positional}}
9
13
```
13
17
{{#include ../../../../cmd/freckles/cmd/action/freckle.go }}
14
18
```
15
19
16
- > There are ** two major phases** in [ Carapace] .
20
+ > There are ** two major phases** in [ Carapace] :
21
+ > 1 . The creation of the command structure and registration of completions.
22
+ > 2 . The invocation of the [ Action] corresponding to current position.
17
23
>
24
+ > [ Custom Actions] should almost always be wrapped in [ ActionCallback]
25
+
26
+ [ Action ] :https://carapace-sh.github.io/carapace/carapace/action.html
27
+ [ ActionCallback ] :https://carapace-sh.github.io/carapace/carapace/defaultActions/actionCallback.html
28
+ [ Carapace ] :https://carapace.sh
29
+ [ Custom Actions ] :https://carapace-sh.github.io/carapace/carapace/customActions.html
30
+ [ custom action ] :https://carapace-sh.github.io/carapace/carapace/customActions.html
Original file line number Diff line number Diff line change 1
1
# Init
2
2
3
- [ Freckles] is backed by a [ Git] repository located at ` ~/.local/share/freckles ` .
4
-
5
- With ` init ` a new one is created.
3
+ Creates a new [ Git] repository at ` ~/.local/share/freckles ` .
6
4
7
5
``` go
8
6
{{#include ../../../../cmd/freckles/cmd/init.go :cmd}}
@@ -56,12 +54,8 @@ Completion is provided by [ActionRepositorySearch].
56
54
>
57
55
> Note that for performance reasons only the first 100 search results are presented.
58
56
> Fast response times are important which limits what can be done in [Carapace].
59
- >
60
- > [Tabdance] will provide a solution for this in the future.
61
57
62
58
[ActionRepositorySearch]:https://pkg.go.dev/github.com/carapace-sh/carapace-bin/pkg/actions/tools/git#ActionRepositorySearch
63
59
[Actions]:https://carapace-sh.github.io/carapace/carapace/action.html
64
60
[Carapace]:https://carapace.sh
65
- [Freckles]:https://github.com/rsteube/freckles
66
61
[Git]:https://git-scm.com/
67
- [Tabdance]:https://tab.dance
You can’t perform that action at this time.
0 commit comments