Skip to content

Releases

Note History Diff 1.2.1

Choose a tag to compare

@akiratamcat akiratamcat released this 02 Dec 22:52

Works together with other plugins that use an editor view. / エディタビューを使うほかのプラグインと一緒に入れても、正しく開け閉めできるようにした版です。

Fixed

  • With another plugin that also uses an editor view, opening the history diff could show that plugin's view instead, and Close could show that view instead of the note editor. The history diff now shows and hides only its own view.

修正

  • エディタビューを使うほかのプラグインと一緒に入れていると、履歴の差分を開こうとしてそのプラグインの画面が出たり、「閉じる」でノートのエディタではなくその画面が出たりすることがあった。履歴の差分は、自分の画面だけを出し入れするようにした。

Note History Diff 1.2.0

Choose a tag to compare

@akiratamcat akiratamcat released this 30 Nov 10:59

The history diff in notes opened in their own window. / 別ウィンドウで開いたノートでも、履歴の差分を見られるようにした版です。

Added

  • The history diff of a note opened in its own window: the history button and the menu item open it in a dialog in that window (it used to say that only the main window was supported). The dialog closes with Close or Esc.

追加

  • 別ウィンドウで開いたノートの履歴の差分:履歴ボタンやメニューで、そのウィンドウの中のダイアログに表示する(これまでは「メインウィンドウでだけ使える」と案内していた)。ダイアログは「閉じる」か Esc で閉じる。

Note History Diff 1.1.0

Choose a tag to compare

@akiratamcat akiratamcat released this 28 Nov 07:33

Settings and a right-click Copy menu. / 設定画面と、右クリックの「コピー」を追加した版です。

Added

  • Settings in Tools > Options > Note History Diff: font size of the diff (follows the editor font size by default), unchanged lines kept around each change (or no folding), character highlight, layout when the history diff opens (last used, side by side or unified), wrapping of long lines, and ignoring trailing spaces and line endings. A changed setting applies to the history diff on screen at once.
  • A right-click menu with "Copy" in the history diff, since Joplin's editor view shows none (#3).

Changed

  • The diff uses the editor monospace font (Options > Editor).
  • The rest of the history diff (buttons, version lists) uses the same text size as Joplin's own interface; it was slightly smaller.

Fixed

  • Pressing on the other side of the side-by-side view while text was selected showed the cell next to the old selection as selected.

追加

  • 「ツール」→「オプション」→「Note History Diff」の設定:差分の文字の大きさ(初期値はエディターのフォントサイズに合わせる)、変更の前後に残す行数(または折りたたまない)、文字単位の強調、履歴の差分を開いたときの表示方式(前回の方式・横並び・1 列)、長い行の折り返し、行末の空白と改行コードの違いを無視。設定を変えると、表示中の履歴の差分にもすぐ反映される。
  • Joplin のエディタビューには右クリックのメニューが出ないため、履歴の差分に「コピー」のある右クリックのメニューを付けた(#3)。

変更

  • 差分の書体に、エディターの等幅フォント(オプションの「エディター」)を使うようにした。
  • 差分以外の部分(ボタン、版の一覧など)の文字を、Joplin 本体の画面と同じ大きさにした(少し小さかった)。

修正

  • 横並びの表示で、文字を選んだまま反対側の列を押すと、前の選択の隣のセルが選ばれた表示になっていた。

Note History Diff 1.0.2

Choose a tag to compare

@akiratamcat akiratamcat released this 28 Nov 05:59

Bug fix release. / 不具合を直した版です。

Fixed

  • Some notes could not be compared and showed "A revision could not be read (patch-not-applied)." even though Joplin's own history viewer could open them. Revisions are now rebuilt the way Joplin rebuilds them: each change is applied to the revision it was recorded against (parent_id), not to the one just before it by date. When part of a stored change no longer fits its text, the rest of the change is still used, as in Joplin. The comparison then opens, but it can miss that part of the change. A warning with the revision ID, and no note text, is written to the plugin console. (#2, #4 by @bwat47)
  • If the recorded links between revisions form a loop, the comparison shows "A revision could not be read (invalid-chain)." (#4 by @bwat47)
  • A revision that cannot be read no longer hides the length of later revisions that do not depend on it in the version list. (#4 by @bwat47)

Many thanks to @bwat47 for the detailed report and analysis, and for the fix with tests.

修正

  • Joplin 本体の履歴画面では開けるのに、比較しようとすると「A revision could not be read (patch-not-applied).」と表示されるノートがあった。版の組み立て方を Joplin 本体に合わせ、各版の差分を、日付でひとつ前の版ではなく、その差分が記録されたもとの版(parent_id)に当てるようにした。保存されている差分の一部が文字に合わないときも、Joplin 本体と同じように残りの差分を当てて続ける。比較は開くが、合わなかった部分の変更は抜けることがある。このときプラグインのコンソールに、版の ID を含む警告を出す(ノートの文字は含まない)。(#2、#4 by @bwat47)
  • 記録されている版どうしのつながりが輪になっているときは、「A revision could not be read (invalid-chain).」と表示する。(#4 by @bwat47)
  • 読めない版があっても、その版に頼らない後の版の文字数は、版の一覧に表示されるようにした。(#4 by @bwat47)

詳しい報告と分析、そしてテスト付きの修正をしてくださった @bwat47 さんに感謝します。

Note History Diff 1.0.1

Choose a tag to compare

@akiratamcat akiratamcat released this 26 Nov 14:25

Bug fix release. / 不具合を直した版です。

Fixed

  • Copying a selection in the side-by-side view copied text from both versions, which looked like the right side's text. Now only the side where the selection was made can be selected and is copied, without line numbers, missing lines or folded lines (#1).
  • An empty line was copied as a non-breaking space.

修正

  • 横並びの表示で範囲選択してコピーすると、比較元と比較先の両方の文字が混ざってコピーされ、右(比較先)の内容に見えていた。範囲選択を始めた側だけが選べるようにし、その側の文字だけを、行番号、行がない側の空き、折りたたんだ行を除いてコピーするようにした(#1)。
  • 空の行が、改行しない空白(U+00A0)としてコピーされていた。

Note History Diff 1.0.0

Choose a tag to compare

@akiratamcat akiratamcat released this 26 Nov 08:20

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

Install it from Joplin's plugin screen (search for Note History Diff), or download the .jpl file below and use "Install from file". Requires Joplin 3.7 or later, desktop.

Joplin のプラグインの画面で Note History Diff を検索してインストールするか、下の .jpl ファイルをダウンロードして「ファイルからインストール」で入れてください。Joplin 3.7 以降のデスクトップ版が必要です。

Added

  • Shows the differences between two versions of a note in the editor area, like Joplin's own note history view. Opened from the note toolbar button, Tools > Show note history diff, or Joplin's "Toggle editors" button.
  • Compares the latest revision with the current note, or the latest revision with the one before it when the note has not changed since.
  • From and To lists to compare any two versions: every revision (newest first, with its date and length) and the current note.
  • Older pair / Newer pair buttons to step through neighbouring revisions.
  • Previous change / Next change buttons to jump between blocks of changes. Unchanged lines are folded, keeping three lines of context.
  • Side-by-side and unified layouts; the choice is remembered. Narrow views (under 600px) use one column.
  • Highlight of the changed characters inside a changed line, and a separate diff of the title.
  • Option to ignore trailing spaces and line ending differences (on by default).
  • Colours for the light and dark themes. Dates follow Joplin's date and time formats.
  • User interface in 11 languages, translated with gettext: English, Japanese, Chinese (Simplified and Traditional), Korean, German, French, Spanish, Italian, Portuguese (Brazil) and Russian.

追加

  • Joplin 本体の「ノートの履歴」と同じように、エディタの場所にノートの 2 つの版の違いを表示する。ノートのツールバーのボタン、「ツール」→「ノート履歴の差分を表示」、Joplin の「エディタの切り替え」ボタンで開く。
  • 最新の版と現在のノートを比べる。最新の版から変更がないときは、最新の版とその 1 つ前の版を比べる。
  • 「比較元」「比較先」の一覧で、好きな 2 つの版を比べる。一覧には、すべての版(新しい順、日時と文字数つき)と現在のノートが並ぶ。
  • 「前の版ペア」「次の版ペア」ボタンで、隣り合う版どうしの比較をたどる。
  • 「前の変更」「次の変更」ボタンで、変更のかたまりへ移動する。変更のない行は、前後 3 行を残して折りたたむ。
  • 横並びと 1 列の表示。選んだ方式を覚える。表示の幅が 600 px 未満のときは 1 列で表示する。
  • 変わった行の中で、変わった文字を強調する。タイトルの差分も別に表示する。
  • 行末の空白と改行コードの違いを無視する設定(初期値は有効)。
  • 明るいテーマと暗いテーマに合わせた色。日時は Joplin の「日付の形式」「時刻の形式」に従う。
  • 11 言語の画面(gettext で翻訳):英語、日本語、中国語(簡体字・繁体字)、韓国語、ドイツ語、フランス語、スペイン語、イタリア語、ポルトガル語(ブラジル)、ロシア語。