Skip to content

Commit

Permalink
Merge pull request #755 from rsteube/rename-pathexecutables
Browse files Browse the repository at this point in the history
ActionPathExecutables: renamed to ActionExecutables
  • Loading branch information
rsteube authored Apr 9, 2023
2 parents 9eb0174 + 9e58881 commit 625d4ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions defaultActions.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,13 @@ func ActionStyles(styles ...string) Action {
}).Tag("styles")
}

// ActionPathExecutables completes executable files from PATH
// ActionExecutables completes executable files from PATH
//
// nvim
// chmod
func ActionPathExecutables() Action { // TODO vararg for additional descriptions (key, value,...)
func ActionExecutables() Action {
return ActionCallback(func(c Context) Action {
// TODO allow additional descriptions to be registered somewhere for carapace-bin (key, value,...)
batch := Batch()
manDescriptions := manDescriptions(c)
dirs := strings.Split(os.Getenv("PATH"), string(os.PathListSeparator))
Expand Down

0 comments on commit 625d4ab

Please sign in to comment.