-
-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathat_detachWindow.go
More file actions
24 lines (19 loc) · 900 Bytes
/
at_detachWindow.go
File metadata and controls
24 lines (19 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)
var at_detachWindowCmd = &cobra.Command{
Use: "detach-window",
Short: "Detach the specified windows and place them in a different/new tab",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(at_detachWindowCmd).Standalone()
at_detachWindowCmd.Flags().BoolP("help", "h", false, "Show help for this command")
at_detachWindowCmd.Flags().StringP("match", "m", "", "The window to match")
at_detachWindowCmd.Flags().Bool("self", false, "Detach the window this command is run in, rather than the active window")
at_detachWindowCmd.Flags().Bool("stay-in-tab", false, "Keep the focus on a window in the currently focused tab after moving the specified windows")
at_detachWindowCmd.Flags().StringP("target-tab", "t", "", "The tab to match")
atCmd.AddCommand(at_detachWindowCmd)
}