update keybinds
This commit is contained in:
@@ -101,9 +101,9 @@ func (t *FsTree) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
case tea.KeyMsg:
|
||||
t.errMsg = ""
|
||||
switch m.String() {
|
||||
case "up", "w":
|
||||
case "w":
|
||||
_ = t.MoveUp()
|
||||
case "down", "s":
|
||||
case "s":
|
||||
_ = t.MoveDown()
|
||||
case "e":
|
||||
_ = t.ToggleSelectedExpand()
|
||||
|
||||
@@ -76,10 +76,10 @@ func (m *NoteView) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
|
||||
case tea.KeyMsg:
|
||||
switch msg.String() {
|
||||
case "d", "right":
|
||||
case "d":
|
||||
m.viewState = StateContent
|
||||
m.vp.SetContent(m.renderNote())
|
||||
case "a", "left":
|
||||
case "a":
|
||||
m.viewState = StateHints
|
||||
m.vp.SetContent(m.renderNote())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user