Sort, remove adjacent duplicates, trim, join and wrap the selected lines in the Markdown editor. / Markdown エディタで選択した行の並べ替え、連続した重複行と空白の削除、連結、指定位置での改行を行います。
| Links: | |
|---|---|
| Maintainers: | akiratamcat |
| Version: | 1.0.0 |
| Minimum app version: | 3.7 |
| Downloads: This version: | 4 |
| Last updated: | 2026-11-28T21:43:25Z |
Sort, remove adjacent duplicates, trim, join and wrap the selected lines in the Joplin Markdown editor.
Run sort, uniq, trim, paste -s and fold-like operations from a menu without leaving your note. Lines in English, in other languages, or in a mix of languages are all handled with the same rules.
日本語:このページの後半(README.ja.md と同じ内容)



uniq). Identical lines that are not next to each other are kept.|) between them.fold). The width is counted in half-width equivalents (full-width characters count as 2) or in Unicode characters, and the break is either exactly at the width or after the last whitespace within the width. A character (including emoji sequences) is never split.Open Joplin's plugin screen (Tools → Options → Plugins on Windows and Linux, Joplin → Settings → Plugins on macOS), search for Selected Line Tools, and install it.
You can also download the .jpl file from GitHub Releases and install it with "Install from file" on the plugin screen. To build the plugin yourself, see CONTRIBUTING.md.
Requirements: Joplin 3.7 or later, desktop (Windows, macOS, Linux). Mobile is not supported.
| Command | What it does |
|---|---|
| Sort selected lines (ascending) | Sorts the selected lines in ascending order |
| Sort selected lines (descending) | Sorts the selected lines in descending order |
| Remove adjacent duplicate lines | Turns each run of identical lines into one line |
| Remove leading whitespace | Removes the whitespace at the start of each line |
| Remove trailing whitespace | Removes the whitespace at the end of each line |
| Join selected lines | Joins the selected lines into one line |
| Wrap selected lines at the set width | Breaks lines longer than the width into lines of that width |
Open Tools > Options > Selected Line Tools.
| Setting | Options | Default |
|---|---|---|
| Sort: add "Sort selected lines (ascending)" and "Sort selected lines (descending)" to the right-click menu | On / Off | Off |
| Sort: comparison method | Unicode collation (language-independent) / Code point order (same as LC_ALL=C sort) |
Unicode collation |
| Sort: ignore case | On / Off (Unicode collation only) | Off |
| Sort: compare digit sequences as numbers | On / Off (Unicode collation only; item2 comes before item10) |
Off |
| Remove adjacent duplicate lines: add it to the right-click menu | On / Off | Off |
| Remove whitespace: add "Remove leading whitespace" and "Remove trailing whitespace" to the right-click menu | On / Off | Off |
| Whitespace to remove | All Unicode whitespace (including full-width space) / Space and tab only | All Unicode whitespace |
| Join selected lines: add it to the right-click menu | On / Off | Off |
| Join: separator between lines | One space / None / One vertical bar (|) | One space |
| Wrap selected lines at the set width: add it to the right-click menu | On / Off | Off |
| Wrap: width | An integer, 1 or more | 80 |
| Wrap: how to count the width | Half-width equivalent (full-width characters count as 2) / Unicode characters (every character counts as 1) | Half-width equivalent |
| Wrap: where to break | Exactly at the width (like fold -w) / After the last whitespace within the width (like fold -s) |
Exactly at the width |
The right-click menu settings apply the next time you right-click (no restart needed). Joplin's right-click menu cannot have sub-menus, so the commands you turn on are listed there directly.
Apple and apple when ignoring case) are ordered by code point, so the result is always the same.Please use the Issues page for bugs, questions and requests. English or Japanese is fine. For security problems, see SECURITY.md. To build the plugin or contribute, see CONTRIBUTING.md.
Selected Line Tools is released under the MIT License.
The plugin package contains no third-party software. See THIRD_PARTY_NOTICES.md, which is also included in the plugin package.
This plugin is developed with extensive use of generative AI (Anthropic's Claude). A large share of the requirements, design, source code, tests, documentation, and translations was produced with Claude. The maintainer reviews each output step by step, decides what to adopt, and makes corrections as needed. The maintainer is responsible for the final content. If you find a problem, please report it on the Issues page.
Joplin の Markdown エディタで、選択した行の並べ替え、連続した重複行と空白の削除、連結、指定位置での改行を行うプラグインです。
sort、uniq、trim、paste -s、fold と同じような処理を、ノートを離れずにメニューから実行できます。英語とそれ以外の言語が混ざった行も、同じ規則で処理します。



uniq と同じ)。離れた位置にある同じ行は残します。|)1 個のどれかを入れます。fold と同じ)。長さは半角換算(全角の文字は 2)か Unicode 文字単位で数え、改行する位置は「指定した長さの位置」か「指定した長さまでの最後の空白の後ろ」から選べます。1 文字(絵文字なども含む)を途中で分けることはありません。Joplin のプラグインの画面(Windows と Linux は「ツール」→「オプション」→「プラグイン」、macOS は「Joplin」→「設定」→「プラグイン」)で Selected Line Tools を検索して、インストールします。
GitHub Releases から .jpl ファイルをダウンロードし、プラグインの画面の「ファイルからインストール」で入れることもできます。自分でビルドする方法は CONTRIBUTING.ja.md を見てください。
動作環境:Joplin 3.7 以降のデスクトップ版(Windows、macOS、Linux)。モバイル版には対応していません。
| 機能 | 内容 |
|---|---|
| 選択行を昇順にソート | 選択した行を昇順に並べ替えます |
| 選択行を降順にソート | 選択した行を降順に並べ替えます |
| 連続した重複行を削除 | 続いている同じ行を 1 行にします |
| 行頭の空白文字を削除 | 各行の先頭の空白を削除します |
| 行末の空白文字を削除 | 各行の末尾の空白を削除します |
| 選択行を連結 | 選択した行を 1 行につなぎます |
| 選択行を指定位置で改行 | 指定した長さより長い行を、その長さごとに改行します |
「ツール」→「オプション」→「Selected Line Tools」で変えられます。
| 設定 | 選択肢 | 初期値 |
|---|---|---|
| ソート:「選択行を昇順にソート」「選択行を降順にソート」を右クリックメニューに追加する | オン/オフ | オフ |
| ソート:比較方式 | Unicode 照合順(言語に依存しない)/コードポイント順(LC_ALL=C sort と同じ) |
Unicode 照合順 |
| ソート:大文字と小文字を区別しない | オン/オフ(Unicode 照合順のときだけ有効) | オフ |
| ソート:数字の並びを数値として比べる | オン/オフ(Unicode 照合順のときだけ有効。item2 を item10 より前に置く) |
オフ |
| 連続した重複行を削除:右クリックメニューに追加する | オン/オフ | オフ |
| 空白文字を削除:「行頭の空白文字を削除」「行末の空白文字を削除」を右クリックメニューに追加する | オン/オフ | オフ |
| 削除する空白文字 | Unicode の空白すべて(全角スペースを含む)/半角スペースとタブだけ | Unicode の空白すべて |
| 選択行を連結:右クリックメニューに追加する | オン/オフ | オフ |
| 連結:行と行の間に入れる文字 | 半角スペース 1 個/なし/バーティカルバー 1 個(|) | 半角スペース 1 個 |
| 選択行を指定位置で改行:右クリックメニューに追加する | オン/オフ | オフ |
| 改行:位置(1 行の長さ) | 1 以上の整数 | 80 |
| 改行:長さの数え方 | 半角換算(全角の文字は 2 と数える)/Unicode 文字単位(どの文字も 1 と数える) | 半角換算 |
| 改行:改行する位置の決め方 | 指定した長さの位置(fold -w と同じ)/指定した長さまでの最後の空白の後ろ(fold -s と同じ) |
指定した長さの位置 |
右クリックメニューの設定は、次に右クリックしたときから反映されます(再起動はいりません)。Joplin の右クリックメニューには下の階層を作れないため、オンにした機能はメニューに直接並びます。
Apple と apple など)は、コードポイント順で順番を決めます。そのため、結果はいつも同じになります。不具合、質問、要望は Issues にお寄せください。日本語でも英語でもかまいません。セキュリティの問題は SECURITY.ja.md を見てください。ビルドや開発への参加は CONTRIBUTING.ja.md を見てください。
Selected Line Tools は MIT ライセンスで公開しています。
プラグインのパッケージには、サードパーティのソフトウェアは入っていません。詳しくは THIRD_PARTY_NOTICES.ja.md を見てください(このファイルはプラグインのパッケージにも同梱しています)。
本プラグインは、生成 AI(Anthropic の Claude)を全面的に用いて開発しています。 要件書、設計書、ソースコード、テスト、ドキュメント、翻訳のかなりの部分を Claude で作成しました。 作者が Claude の出力を逐次確認し、採用するかどうかの判断と修正を行っており、 最終的な内容の責任は作者が負います。問題を見つけた場合は Issue でお知らせください。