Line Arrange Plugin
Line Arrange is an Obsidian plugin that allows users to rearrange lines or blocks of text in various ways, including sorting, reversing, and shuffling. Users can perform these operations based on visual width or lexical order.
Features
-
Line-Based Operations
- Sort Lines by Width: Arrange selected lines based on their visual length.
- Sort Lines Lexically: Arrange selected lines in alphanumerical order.
- Shuffle Lines: Randomize the order of selected lines.
- Reverse Lines: Flip the order of selected lines.
-
Block-Based Operations
- Sort Blocks by Visual Width: Arrange selected blocks hierarchically based on their visual length.
- Sort Blocks Lexically: Arrange selected blocks hierarchically in alphanumerical order.
- Shuffle Blocks: Randomly reorder selected blocks, but maintain hierarchy.
- Reverse Blocks: Flip the order of selected text blocks, but maintain hierarchy.
- Sort Blocks by Visual Width: Arrange selected blocks hierarchically based on their visual length.
Usage
-
Open a note and select the lines you want to arrange.
-
Use the command palette (
Ctrl/Cmd + P
) and type:Sort lines
to arrange lines based on their apparent width.
Shuffle lines
to randomize the order of the selected lines.
Lexisort lines
to arrange lines based on their alphanumerical order.
Reverse lines
to reverse the order of the selected lines.
List of Commands
- Lexisort lines
- Action: Lexically sorts the lines in the selected text.
- Reverse lines
- Action: Reverses the order of the lines in the selected text.
- Sort lines
- Action: Sorts the lines in the selected text.
- Shuffle lines
- Action: Shuffles the lines in the selected text.
- Lexisort blocks
- Action: Lexically sorts the blocks in the selected text.
- Reverse blocks
- Action: Reverses the order of the blocks in the selected text.
- Sort blocks
- Action: Sorts the blocks in the selected text.
- Shuffle blocks
- Action: Shuffles the blocks in the selected text.
Installation
- From within Obsidian:
- Open Settings.
- Navigate to the Community plugins section.
- Search for “Line Arrange”.
- Click “Install” and then “Enable”.
- 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.
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.