Skip to content

[BUG] TUI Enter Key Doesn't Open Selected File #157

@olddev94

Description

@olddev94

Project

vgrep

Description

In the TUI (Terminal User Interface), pressing Enter on a selected search result doesn't actually open the file in an editor. Instead, it just sets a status message with the file path. This is misleading UX as users expect Enter to open the file.

Error Message

None - just doesn't work as expected.

Debug Logs

System Information

- Bounty Version: 0.1.0
- OS: Ubuntu 24.04 LTS
- Rust: 1.75+

Screenshots

No response

Steps to Reproduce

  1. Start TUI: vgrep tui
  2. Enter a search query
  3. Press Tab to switch to results
  4. Press Enter on a result
  5. Expected: File opens in editor
  6. Actual: Status message shows "Selected: /path/to/file"

Expected Behavior

  1. Enter key should open the file in the default editor
  2. Optionally jump to the specific line number (result.start_line)
  3. Use $EDITOR environment variable or fall back to common editors

Actual Behavior

  1. Enter key only updates status message
  2. User must manually copy the path and open the file
  3. Defeats the purpose of a TUI search interface

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvalidValid issuevgrep

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions