A Neovim plugin for intelligent line-wise and delimiter-aware text sorting with natural number handling.
sort.nvim is a Neovim plugin designed for intelligent text sorting within the editor. It enhances Neovim's native sorting by adding delimiter-aware sorting for single lines and supporting natural sorting of numbers within strings. It solves the problem of manually organizing lists, data, or code segments by providing fast, context-aware sorting operations.
Neovim users who frequently work with structured text, such as developers editing configuration files, CSV-like data, lists, or code requiring consistent ordering. It's particularly useful for those who prefer keyboard-driven, motion-based editing workflows.
Developers choose sort.nvim for its deep integration with Neovim's editing model, offering both familiar commands and powerful motion-based operations. Its unique selling point is the combination of delimiter detection, natural sorting, and Vim-style text objects, which streamlines sorting tasks without interrupting the editing flow.
Sorting plugin for Neovim that supports line-wise and delimiter sorting.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically identifies and sorts by common delimiters like commas, pipes, and spaces, with configurable priority order and single-line adaptation, as shown in the default delimiters list and usage examples.
Supports natural sorting for strings containing numbers via the 'z' flag or configuration, ensuring logical ordering like 'item1, item2, item10', which is particularly useful for version numbers and file names.
Integrates seamlessly with Neovim through operators, text objects, and motions like 'go' and dot-repeat functionality, enabling efficient, repeatable sorting without leaving normal mode, as detailed in the mappings table.
Enhances Neovim's built-in :sort command with additional flags and delimiter sorting for single lines, maintaining compatibility while adding features like unique sorting and case-insensitive options.
Only functions within Neovim, with no support for Vim or other editors, limiting its utility to users committed to the Neovim ecosystem and excluding those on different platforms.
Lacks support for advanced sorting criteria like custom comparator functions, regex patterns, or multi-column sorting with mixed data types, relying solely on predefined delimiters and natural sorting flags.
Requires understanding of Lua setup and Vim mappings for customization, which can be daunting for casual users or those unfamiliar with Neovim's configuration system, as seen in the optional overrides and mapping examples.