Skip to content

Commit db780f8

Browse files
author
Lapp
committed
internal/app: change the keys for selecting a service and generating the selected services: Enter, Ctrl + D -> Space, Enter
1 parent a2917f9 commit db780f8

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

build/bin/docsel-darwin_amd64

0 Bytes
Binary file not shown.

build/bin/docsel-darwin_arm64

0 Bytes
Binary file not shown.

build/bin/docsel-linux_amd64

0 Bytes
Binary file not shown.

build/bin/docsel-windows_amd64.exe

0 Bytes
Binary file not shown.

internal/app/command.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616
"gopkg.in/yaml.v2"
1717
)
1818

19-
const helpMessage = `Select the service you want by pressing Enter when the arrow on the left points to it.
19+
const helpMessage = `Select the desired service by pressing the Space bar when the arrow on the left points to it.
2020
You can move the arrow to the keys j (down), k (up) or the arrows ↓ ↑.
21-
Press the Ctrl + D key combination to start your selected services.
21+
Press the Enter key to start your selected services.
2222
`
2323

2424
const (
@@ -155,7 +155,7 @@ var RunCmd = &cobra.Command{
155155
}
156156

157157
switch key {
158-
case keyboard.KeyCtrlD:
158+
case keyboard.KeyEnter:
159159
if len(selectedServices) > 0 {
160160
for service := range dc.Services {
161161
if _, ok := selectedServices[service]; !ok {
@@ -207,7 +207,7 @@ var RunCmd = &cobra.Command{
207207
return nil
208208
case keyboard.KeyCtrlC:
209209
return nil
210-
case keyboard.KeyEnter:
210+
case keyboard.KeySpace:
211211
cleanConsole()
212212
fmt.Println(helpMessage, generateDashboard(dc, true, recordNumber))
213213
default:

0 commit comments

Comments
 (0)