mirror of
https://github.com/charmbracelet/glow
synced 2024-12-14 06:02:27 +00:00
Also add tab/shift+tab bindings to file browser
This commit is contained in:
parent
a17cfa6d26
commit
899c038402
1 changed files with 2 additions and 2 deletions
|
@ -444,10 +444,10 @@ func stashUpdate(msg tea.Msg, m stashModel) (stashModel, tea.Cmd) {
|
||||||
// Handle keys
|
// Handle keys
|
||||||
case tea.KeyMsg:
|
case tea.KeyMsg:
|
||||||
switch msg.String() {
|
switch msg.String() {
|
||||||
case "k", "ctrl+k", "up":
|
case "k", "ctrl+k", "up", "shift+tab":
|
||||||
m.moveCursorUp()
|
m.moveCursorUp()
|
||||||
|
|
||||||
case "j", "ctrl+j", "down":
|
case "j", "ctrl+j", "down", "tab":
|
||||||
m.moveCursorDown()
|
m.moveCursorDown()
|
||||||
|
|
||||||
// Go to the very start
|
// Go to the very start
|
||||||
|
|
Loading…
Reference in a new issue