From 461da25c93a16d6ff08cb62b0046cf76e8c1ea78 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 13 Dec 2025 15:20:59 +0000 Subject: [PATCH] Add dual note navigation options in evidence_detail view Now provides two ways to access notes in evidence_detail view: - Enter: Opens note_detail view (single note focus) - 'v': Opens notes modal with selected note highlighted (all notes) The 'v' key now intelligently jumps to the selected note when opening the modal, providing context while still showing all notes. This gives users flexibility in how they want to view their notes. --- trace/tui.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/trace/tui.py b/trace/tui.py index 6064082..415649b 100644 --- a/trace/tui.py +++ b/trace/tui.py @@ -1454,7 +1454,19 @@ class TUI: if self.current_view == "case_detail": self.view_case_notes() elif self.current_view == "evidence_detail": - self.view_evidence_notes() + # Open notes modal with selected note highlighted + if self.active_evidence: + notes = self.active_evidence.notes + list_h = self.content_h - 5 + display_notes = notes[-list_h:] if len(notes) > list_h else notes + + if display_notes and self.selected_index < len(display_notes): + # Calculate the actual note index in the full list + note_offset = len(notes) - len(display_notes) + actual_note_index = note_offset + self.selected_index + self.view_evidence_notes(highlight_note_index=actual_note_index) + else: + self.view_evidence_notes() # Delete elif key == ord('d'):