Skip to content

Commit

Permalink
fix(display_menu): Remove j and k as valid shortcuts. (#41)
Browse files Browse the repository at this point in the history
Those are used to move up and down the list.
  • Loading branch information
JeffFaer committed May 6, 2024
1 parent ad7ab41 commit fba66bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/display_menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (
"github.com/spf13/cobra"
)

var keyShortcuts = strings.Split("0123456789wertyuiopasdfghlzxcvbnm", "")

func init() {
rootCmd.AddCommand(displayMenuCommand)
}
Expand Down Expand Up @@ -133,7 +135,7 @@ func createMenu(ctx context.Context, curSesh tmux.Session, vcs api.VersionContro
slices.SortStableFunc(orderedSessions, morecmp.ComparingFunc(hasCurrentSession, morecmp.TrueFirst()))

var menu []tmux.MenuElement
keys := strings.Split("0123456789wertyuiopasdfghjklzxcvbnm", "")
keys := keyShortcuts
for i, group := range orderedSessions {
if i > 0 {
menu = append(menu, tmux.MenuSpacer{})
Expand Down

0 comments on commit fba66bf

Please sign in to comment.