Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions internal/display/statusline.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"fmt"
"regexp"
"runtime"
"strconv"
"strings"

Expand Down Expand Up @@ -157,6 +158,9 @@ func (s *StatusLine) Display() {
binding := string(name[5:])
for k, v := range config.Bindings["buffer"] {
if v == binding {
if runtime.GOOS == "darwin" {
k = strings.Replace(k, "Alt", "Option", -1)
}
return []byte(k)
}
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/help/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ display. From now on, when the documentation shows a command to run (such as

For a list of the default keybindings, run `> help defaultkeys`.
For more information on keybindings, see `> help keybindings`.
To toggle a short list of important keybindings, press Alt-g.
To toggle a short list of important keybindings, press Alt-g (Option-g on Mac).

## Quick-start

Expand Down
2 changes: 1 addition & 1 deletion runtime/help/keybindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ conventions for text editing defaults.
"ShiftPageUp": "SelectPageUp",
"ShiftPageDown": "SelectPageDown",
"Ctrl-g": "ToggleHelp",
"Alt-g": "ToggleKeyMenu",
"Alt-g": "ToggleKeyMenu", (Option-g on Mac)
"Ctrl-r": "ToggleRuler",
"Ctrl-l": "command-edit:goto ",
"Delete": "Delete",
Expand Down
2 changes: 1 addition & 1 deletion runtime/help/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Here are the available options:
default value: `false`

* `keymenu`: display the nano-style key menu at the bottom of the screen. Note
that ToggleKeyMenu is bound to `Alt-g` by default and this is displayed in
that ToggleKeyMenu is bound to `Alt-g` (Option-g on Mac) by default and this is displayed in
the statusline. To disable the key binding, bind `Alt-g` to `None`.

default value: `false`
Expand Down