Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Oct 15, 2023
1 parent e54454f commit 0a6838f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 0 additions & 2 deletions completers/wezterm_completer/cmd/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ func init() {
cliCmd.Flags().Bool("no-auto-start", false, "Don't automatically start the server")
cliCmd.Flags().Bool("prefer-mux", false, "Prefer connecting to a background mux server")
rootCmd.AddCommand(cliCmd)

// TODO subcommands
}
7 changes: 6 additions & 1 deletion completers/wezterm_completer/cmd/cli_activateTab.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"github.com/rsteube/carapace"
"github.com/rsteube/carapace-bin/pkg/actions/tools/wezterm"
"github.com/spf13/cobra"
)

Expand All @@ -22,5 +23,9 @@ func init() {
cli_activateTabCmd.Flags().String("tab-relative", "", "Specify the target tab by its relative offset")
cliCmd.AddCommand(cli_activateTabCmd)

// TODO completion
carapace.Gen(cli_activateTabCmd).FlagCompletion(carapace.ActionMap{
"pane-id": wezterm.ActionPanes(),
"tab-id": wezterm.ActionTabs(),
// TODO more flags
})
}
2 changes: 1 addition & 1 deletion completers/wezterm_completer/cmd/cli_setTabTitle.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ func init() {

carapace.Gen(cli_setTabTitleCmd).FlagCompletion(carapace.ActionMap{
"pane-id": wezterm.ActionPanes(),
// TODO tab-id
"tab-id": wezterm.ActionTabs(),
})
}
4 changes: 2 additions & 2 deletions completers/wezterm_completer/cmd/cli_setWindowTitle.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func init() {
cliCmd.AddCommand(cli_setWindowTitleCmd)

carapace.Gen(cli_setWindowTitleCmd).FlagCompletion(carapace.ActionMap{
"pane-id": wezterm.ActionPanes(),
// TODO window
"pane-id": wezterm.ActionPanes(),
"window-id": wezterm.ActionWindows(),
})
}

0 comments on commit 0a6838f

Please sign in to comment.