Skip to content

Commit

Permalink
fix(commands): Change the "open in browser" keyboard from "b" to "o"
Browse files Browse the repository at this point in the history
The "b" key is already defined as a keyboard shortcut in the
charmbracelet/bubbles library, which means whenever the "b" key is pressed, it
will both open the current item in a browser and navigate the list to the
previous page.

The "o" key is however not used for anything so doesn't collide with any other
actions.

Fixes #89.
  • Loading branch information
Tenzer authored and Edholm committed Jan 18, 2023
1 parent b6fce04 commit 92a324e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tui_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ func newKeyMap() *keyMap {
key.WithHelp("shift+r", "recreate"),
),
browse: key.NewBinding(
key.WithKeys("b"),
key.WithHelp("b", "open in browser"),
key.WithKeys("o"),
key.WithHelp("o", "open in browser"),
),
view: key.NewBinding(
key.WithKeys("v"),
Expand Down

0 comments on commit 92a324e

Please sign in to comment.