xonecas.io
62159
Sy

symb / commit 3b611e0

fix: search not working so well

xonecas2026-02-15 3b611e056af939a2b7d3197b036058f3244699d6 parent d587e7f

3 files changed

internal/constants/constants.go+1−1
@@ -28,4 +28,4 @@ package constants
2828 // Light themes:
2929 // - tokyonight-day #e1e2e7 81 entries
3030 // - catppuccin-latte #eff1f5 81 entries
31-const SyntaxTheme = "github-dark"
31+const SyntaxTheme = "aura-theme-dark"
internal/tui/mouse.go+4−0
@@ -330,7 +330,11 @@ func (m *Model) tryOpenFilePath(text string) tea.Cmd {
330330 if matches[2] != "" {
331331 lineNum, _ = strconv.Atoi(matches[2])
332332 }
333+ return m.openFile(path, lineNum)
334+}
333335
336+// openFile loads a file into the editor. path is relative to cwd.
337+func (m *Model) openFile(path string, lineNum int) tea.Cmd {
334338 absPath, err := filepath.Abs(path)
335339 if err != nil {
336340 return nil
internal/tui/update.go+1−1
@@ -763,7 +763,7 @@ func (m *Model) updateFileModal(msg tea.Msg) (Model, tea.Cmd, bool) {
763763 return *m, nil, true
764764 case modal.ActionSelect:
765765 m.fileModal = nil
766- openCmd := m.tryOpenFilePath(a.Item.Name)
766+ openCmd := m.openFile(a.Item.Name, 0)
767767 return *m, openCmd, true
768768 }
769769 if cmd != nil {