Skip to content

feat: Add configurable column alignment, separator, and sorting for buffer lists#73

Open
ilovevim wants to merge 2 commits intoahkohd:mainfrom
ilovevim:main
Open

feat: Add configurable column alignment, separator, and sorting for buffer lists#73
ilovevim wants to merge 2 commits intoahkohd:mainfrom
ilovevim:main

Conversation

@ilovevim
Copy link
Copy Markdown

Key Features:

  1. Column Alignment Configuration

    • Added align configuration for filename, label, and stick components
    • Support for left, center, and right alignment options
    • Enhanced rendering logic to support column-based alignment
  2. Separator Customization

    • Added separator option for list mode to customize spacing between components
    • Configurable separator between list mode components
  3. Sorting Functionality

    • Added sort configuration options in the list settings
    • Implemented sort_buffers function to handle sorting logic
    • Support for sorting by id, filename, or label fields
    • Included ascending/descending sort order options

Changes:

  • Updated configuration schema to include alignment and separator options
  • Refactored rendering logic to support column-based layout
  • Enhanced buffer sorting and filtering functionality
  • Improved label text handling with active indicator support
  • Updated documentation with new features

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.

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
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