Skip to content

Conversation

@copilot-developer-agent-robch
Copy link

@copilot-developer-agent-robch copilot-developer-agent-robch bot commented Feb 20, 2025

This PR implements interactive features for the mdx web command, enhancing usability by adding keyboard shortcuts and mouse controls. Key features:

  • Added InteractiveHelpers class to manage keyboard/mouse interactions
  • Navigation shortcuts:
    • j/k: scroll up/down
    • n/p: next/previous page
    • ESC/q: exit interactive mode
  • Mouse support:
    • Text selection with click and drag
    • Double click for word selection
    • Triple click for line selection
    • Copy selected text with 'y' key
  • Interactive mode improvements:
    • Help overlay (press 'h')
    • Window maximized by default
    • Persistent keyboard event monitoring
    • Non-blocking UI with smooth scrolling

Usage:

mdx web --interactive "your search query"

The PR includes comprehensive help documentation in interactive.txt and integrates smoothly with existing web functionality while maintaining backward compatibility.

Fixes #9.

@copilot-developer-agent-robch copilot-developer-agent-robch bot changed the title [WIP] mdx web -- consider adding mouse and keyboard input abilities Add keyboard and mouse input abilities to mdx web Feb 20, 2025
@copilot-developer-agent-robch copilot-developer-agent-robch bot marked this pull request as ready for review February 20, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mdx web -- consider adding mouse and keyboard input abilities

1 participant