Skip to content

Releases

Selected Line Tools 1.0.0

Choose a tag to compare

@akiratamcat akiratamcat released this 28 Nov 16:04

First release. / 最初の公開版です。

Added

  • Commands for the selected lines in the Markdown editor: Sort selected lines (ascending), Sort selected lines (descending), Remove adjacent duplicate lines, Remove leading whitespace, Remove trailing whitespace, Join selected lines and Wrap selected lines at the set width. Every line that is even partly selected is processed.
  • The commands are in Edit > Selected Line Tools and in the command palette. Commands turned on in the settings are also listed directly in the editor's right-click menu (none by default). They are disabled outside the Markdown editor.
  • Each command is one undo step. The note is not modified when nothing would change.
  • Sorting uses the language-independent Unicode collation (or code point order), with options to ignore case and to compare digit sequences as numbers.
  • Joining puts one space (default), nothing or one vertical bar between the lines.
  • Wrapping breaks long lines at the set width (default 80), counted in half-width equivalents (full-width characters count as 2) or in Unicode characters, either exactly at the width or after the last whitespace within it. Characters, including emoji sequences, are never split.
  • User interface in 11 languages, translated with gettext: English, Japanese, Chinese (Simplified and Traditional), Korean, German, French, Spanish, Italian, Portuguese (Brazil) and Russian.

追加

  • Markdown エディタで選択した行に対するコマンド:「選択行を昇順にソート」「選択行を降順にソート」「連続した重複行を削除」「行頭の空白文字を削除」「行末の空白文字を削除」「選択行を連結」「選択行を指定位置で改行」。一部でも選択されている行を処理する。
  • コマンドは「編集」→「Selected Line Tools」とコマンドパレットから実行できる。設定でオンにしたコマンドは、エディタの右クリックメニューにも直接並ぶ(初期状態では何も追加しない)。Markdown エディタ以外では無効になる。
  • 1 回のコマンドは 1 回の「元に戻す」で戻せる。結果が変わらないときは、ノートを変更しない。
  • ソートは、言語に依存しない Unicode 照合順(またはコードポイント順)で行う。大文字と小文字を区別しない設定と、数字の並びを数値として比べる設定がある。
  • 連結では、行と行の間に半角スペース 1 個(初期値)、なし、バーティカルバー 1 個のどれかを入れる。
  • 改行では、長い行を指定した長さ(初期値は 80)で改行する。長さは半角換算(全角の文字は 2)か Unicode 文字単位で数え、改行する位置は指定した長さの位置か、指定した長さまでの最後の空白の後ろを選べる。絵文字の組み合わせなどの 1 文字を途中で分けない。
  • 11 言語の画面(gettext で翻訳):英語、日本語、中国語(簡体字・繁体字)、韓国語、ドイツ語、フランス語、スペイン語、イタリア語、ポルトガル語(ブラジル)、ロシア語。