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:
|
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()
|
||||||
|
|||||||
@@ -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())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user