feat: Add configurable column alignment, separator, and sorting for buffer lists#73
Open
ilovevim wants to merge 2 commits intoahkohd:mainfrom
Open
feat: Add configurable column alignment, separator, and sorting for buffer lists#73ilovevim wants to merge 2 commits intoahkohd:mainfrom
ilovevim wants to merge 2 commits intoahkohd:mainfrom
Conversation
This commit introduces a new sorting feature for buffer lists, allowing users to sort buffers by ID, filename, or label in either ascending or descending order. Key changes: - Added sort configuration options in the list settings - Implemented sort_buffers function to handle sorting logic - Added support for sorting by id, filename, or label fields - Included ascending/descending sort order options - Updated documentation with new sorting features The sorting can be configured in the setup function under config.list.sort with fields: - field: "id", "filename", or "label" - ascending: true or false
- Added `align` configuration for filename, label, and stick components - Added `separator` option for list mode to customize spacing between components - Refactored rendering logic to support column-based alignment - Improved buffer sorting and filtering functionality - Enhanced label text handling with active indicator support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Key Features:
Column Alignment Configuration
alignconfiguration for filename, label, and stick componentsSeparator Customization
separatoroption for list mode to customize spacing between componentsSorting Functionality
sort_buffersfunction to handle sorting logicChanges:
These improvements provide users with greater control over how buffer information is displayed and organized in list mode, making the plugin more flexible and user-friendly.