Skip to content

Commit

Permalink
feat(alias): add qa for quit (#2188)
Browse files Browse the repository at this point in the history
This adds an additional alias for "quit". `qa` is muscle memory for
vimmers, and fits in well alongside `q` and `q!`.

Resolves #856
  • Loading branch information
hugginsio authored Aug 5, 2023
1 parent c670938 commit 12b1d28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/config/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (a *Aliases) loadDefaultAliases() {
a.Alias["np"] = "networking.k8s.io/v1/networkpolicies"

a.declare("help", "h", "?")
a.declare("quit", "q", "q!", "Q")
a.declare("quit", "q", "q!", "qa", "Q")
a.declare("aliases", "alias", "a")
a.declare("popeye", "pop")
a.declare("helm", "charts", "chart", "hm")
Expand Down
2 changes: 1 addition & 1 deletion internal/view/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (c *Command) specialCmd(cmd, path string) bool {
case "cow":
c.app.cowCmd(path)
return true
case "q", "q!", "Q", "quit":
case "q", "q!", "qa", "Q", "quit":
c.app.BailOut()
return true
case "?", "h", "help":
Expand Down

0 comments on commit 12b1d28

Please sign in to comment.