update keybinds

This commit is contained in:
2026-01-04 04:45:06 +00:00
parent cc280309bb
commit 753380c965
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -101,9 +101,9 @@ func (t *FsTree) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.KeyMsg: case tea.KeyMsg:
t.errMsg = "" t.errMsg = ""
switch m.String() { switch m.String() {
case "up", "w": case "w":
_ = t.MoveUp() _ = t.MoveUp()
case "down", "s": case "s":
_ = t.MoveDown() _ = t.MoveDown()
case "e": case "e":
_ = t.ToggleSelectedExpand() _ = t.ToggleSelectedExpand()
+2 -2
View File
@@ -76,10 +76,10 @@ func (m *NoteView) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.KeyMsg: case tea.KeyMsg:
switch msg.String() { switch msg.String() {
case "d", "right": case "d":
m.viewState = StateContent m.viewState = StateContent
m.vp.SetContent(m.renderNote()) m.vp.SetContent(m.renderNote())
case "a", "left": case "a":
m.viewState = StateHints m.viewState = StateHints
m.vp.SetContent(m.renderNote()) m.vp.SetContent(m.renderNote())
} }