Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Visual Block Mode Support and Blinking Feature #14

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

ashkansamadiyan
Copy link

This PR adds two major features to visimatch.nvim and improves documentation:

Visual Block Mode Support

  • Added full support for visual block mode (^V)
  • Implemented proper highlighting for block selections
  • Added configuration options for block mode appearance
  • Set reasonable defaults for block mode behavior

Blinking Feature

  • Added blinking functionality to indicate when matches are found
  • Particularly useful for large files to provide visual feedback
  • Configurable blink timing and highlight groups
  • Smart blinking that only activates for character-wise and block selections

Documentation Updates

  • Updated README with new features and configuration options
  • Added clear explanations for new functionality
  • Improved configuration documentation clarity
  • Added new screenshot showcasing the features

Technical Details

  • Added new configuration options:
    • blink_enabled: Toggle blinking feature
    • blink_time: Control blink interval
    • blink_hl_group: Customize blink appearance
    • block_hl_group: Style block mode matches
    • block_max_width: Control maximum block width
  • Optimized performance for both features
  • Maintained backward compatibility

Testing

  • Tested with various file types and sizes
  • Verified performance in large files
  • Confirmed compatibility with existing features
  • Tested all visual modes: v, V, and ^V

Screenshot added to README

ashkansamadiyan and others added 14 commits March 7, 2025 15:48
slightly more convenient defaults
- Add visual block mode support with proper highlighting

- Add blinking feature to indicate matches in large files

- Update README with new features and configuration options

- Fix typos and improve documentation clarity
- Combine type annotations with new features

- Preserve documentation and type safety

- Add new configuration options with proper types
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.

1 participant