Skip to content

Continue paragraphs seletion, upwards or downwards, in any file. This plugin serves as a feature of the Micro editor.

License

Notifications You must be signed in to change notification settings

guifur/selectparagraphs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Select Paragraphs plugin

Continue paragraphs seletion, upwards or downwards, in any file.

This plugin serves as a feature of the Micro editor, found in:

Table Of Contents

Supported languages

Select Paragraphs plugin supports all languages, since it works in the documents/files themselves.

Installation

Enter in the command line of your terminal:

$ micro --plugin install selectparagraphs

Or within Micro:

> plugin install selectparagraphs

Ensure you have the following files in '~/.config/micro/plug/selectparagraphs':

├── help                      <-- a folder containing help within Micro
│   └── selectparagraphs.md   <-- THIS FILE's clone Micro calls with: `help selectparagraphs`
├── LICENSE                   <-- the license file
├── README.md                 <-- THIS FILE
├── repo.json                 <-- plugin information file
├── selectparagraphs.lua      <-- source code
└── thumbnail.webp            <-- plugin thumbnail

Use

Enter select-up or select-down in Micro's command bar, while on a paragraph, and the selection will start.

It is recommended to bind keys to triger those commands. For example, place the following snippet in your 'bindings.json' file:

    "CtrlShiftUp":    "command:select-up",
    "CtrlShiftDown":  "command:select-down",
    "CtrlShiftHome":  "SelectToStart",
    "CtrlShiftEnd":   "SelectToEnd",

This way, whenever you hit CtrlShiftUp it will start selecting (or increase the selection of) the paragraph above. The same goes to CtrlShiftDown, selecting the paragraph below.

Note that CtrlShiftHome and CtrlShiftEnd were rebinded (overwritten), according to Micro's default key bindings. They, now, select to the start (if SelectToStart) or to the end (if SelectToEnd) of the document/file.

Thanks

I hope this plugin helps you improving your workflow.

Special thanks to the creator, contributors and other volunteers of Micro.

More infos

Plugin version: 0.1.0
Author: © 2025 Guifur, from: https://github.com/guifur
License: MIT. *Read the 'LICENSE'.

*Also consider reading the 'repo.json' file.

About

Continue paragraphs seletion, upwards or downwards, in any file. This plugin serves as a feature of the Micro editor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages