add open with micro

This commit is contained in:
2026-01-04 17:44:36 +00:00
parent 259645ec6e
commit f51c0b17c6
2 changed files with 18 additions and 2 deletions
+3 -2
View File
@@ -56,7 +56,8 @@ type NoteView struct {
// ================== messages ===================
type loadNote struct {
path string
path string
force bool
}
type loadedNote struct {
@@ -157,7 +158,7 @@ func (m *NoteView) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, cmd
case loadNote:
if m.path == msg.path {
if m.path == msg.path && !msg.force {
return m, nil //noop
}
m.path = msg.path