simplify keybinds

This commit is contained in:
2026-01-04 05:07:11 +00:00
parent c960397adc
commit 34fde8ac27
3 changed files with 82 additions and 25 deletions
+3 -3
View File
@@ -101,11 +101,11 @@ func (t *FsTree) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.KeyMsg:
t.errMsg = ""
switch m.String() {
case "w":
case "w", "up":
_ = t.MoveUp()
case "s":
case "s", "down":
_ = t.MoveDown()
case "e":
case "e", "space":
_ = t.ToggleSelectedExpand()
case "n": // new file
return t, func() tea.Msg { return RequestInputMsg{Action: ActionNewFile} }