Skip to content

chitwan27/lineArrange

Repository files navigation

Line Arrange

This is a plugin for Obsidian that allows one to shuffle, reverse, or sort lines, using either visual width or lexical order as per need.

Features

  • Sort Lines by Width: Arrange lines based on their visual length.

Sorted Lines

  • Shuffle Lines Randomly: Randomly arrange the selected lines.

Sorted Lines

  • Sort Lines Lexically: Arrange lines based on their alphanumerical order.

Lexisorted Lines

  • Reverse Selected Lines: Reverse the order of the selected lines.

Reversed Lines

Installation

  1. From within Obsidian:

    • Open Settings.
    • Navigate to the Community plugins section.
    • Search for "Line Arrange".
    • Click "Install" and then "Enable".
  2. Manual Installation:

    • Download the latest release from the GitHub releases page.
    • Extract the contents to your Obsidian plugins folder: YourVault/.obsidian/plugins/lineArrange.
    • Enable the plugin in the Obsidian settings.

Usage

  1. Open a note and select the lines you want to arrange.

    Select Lines Usage
  2. Use the command palette (Ctrl/Cmd + P) and type:

    • Sort lines to arrange lines based on their apparent width.
    Sort Lines Usage
    • Shuffle lines to randomize the order of the selected lines.
    Shuffle Lines Usage
    • Lexisort lines to arrange lines based on their alphanumerical order.
    Lexisort Lines Usage
    • Reverse lines to reverse the order of the selected lines.
    Reverse Lines Usage

Contributing

  • Open an issue for bugs or feature requests on the GitHub repository.
  • Fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or suggestions, reach out via GitHub Issues.