Skip to content

Commit

Permalink
Reword a menu option
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Oct 25, 2024
1 parent 2f24222 commit 5176138
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions v2/cmenu.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,18 +469,10 @@ func (e *Editor) CommandMenu(c *vt100.Canvas, tty *vt100.TTY, status *StatusBar,
actions.AddCommand(e, c, tty, status, bookmark, undo, "Split line on blanks outside of (), [] or {}", "splitline")
}

actions.Add("Toggle block editing mode", func() {
actions.Add("Toggle block editing", func() {
e.blockMode = !e.blockMode
})

//actions.Add("Toggle highlight text", func() {
//e.highlightCurrentText = !e.highlightCurrentText
//})

//actions.Add("Toggle highlight line", func() {
//e.highlightCurrentLine = !e.highlightCurrentLine
//})

// Only show the menu option for killing the parent process if the parent process is a known search command
searchProcessNames := []string{"ag", "find", "rg"}
if firstWordContainsOneOf(parentCommand(), searchProcessNames) {
Expand Down

0 comments on commit 5176138

Please sign in to comment.