A lightweight Neovim plugin that visually highlights command-line ranges before execution.
range-highlight.nvim is a Neovim plugin that provides real-time visual highlighting for command-line ranges as you type them. It solves the problem of executing commands on incorrect lines by showing exactly which lines will be affected before you press Enter. The plugin supports various range formats including absolute, relative, pattern-based, and mark-based ranges.
Neovim users who frequently work with command-line ranges for editing, navigation, or batch operations and want visual confirmation before executing commands.
Developers choose this plugin for its extreme lightweight implementation (~120 lines of code), real-time feedback that prevents errors, and comprehensive support for all Neovim range syntax without impacting editor performance.
An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implemented in approximately 120 lines of code, ensuring minimal impact on Neovim's performance and seamless integration, as highlighted in the philosophy section.
Handles all Neovim range syntax including absolute, relative, pattern-based, and mark ranges, detailed in the features list from single lines to complex combinations.
Highlights lines instantly as you type command-line ranges, providing immediate confirmation to reduce errors, demonstrated in the provided GIF demo.
Includes a debounce option with a default wait time of 100ms to prevent performance lag during rapid typing, mentioned in the configuration settings.
Requires Neovim 0.10.0 or higher, excluding users on older stable releases or distributions with outdated packages, as specified in the installation requirements.
Only provides visual feedback for ranges; it does not preview the effects of commands like substitute or delete, limiting utility for complex edit operations.
As a lightweight plugin, it may not gracefully handle conflicts with other command-line or highlighting plugins, potentially requiring manual troubleshooting.