Skip to content

Releases: nyaosorg/go-readline-ny

v1.9.0

11 Feb 16:33
Compare
Choose a tag to compare

Changes in v1.9.0 (English)

  • Fix: A space was not inserted after the word when only one completion candidate was available.
  • Fix: The second and subsequent characters defined in Enclosure were not used.
  • Add: New completion features — completion.CmdCompletionList2 and CmdCompletion2.

Changes in v1.9.0 (Japanese)

  • 補完で一候補しかない時に単語の後にスペースが挿入されなかった問題を修正
  • 2番目以降の引用符が使用されない不具合を修正した
  • 新しい補完機能 completion.CmdCompletionList2CmdCompletion2 を追加

v1.8.0

09 Feb 10:10
Compare
Choose a tag to compare

Changes in v1.8.0 (English)

  • By default, avoid using the operating system’s clipboard as the cut buffer. It is now possible to replace the cut buffer with the Clipboard field of the Editor type. (#9)
  • Export the package Moji and its types that were previously internal.

Changes in v1.8.0 (Japanese)

  • OS のクリップボードの読み書きをデフォルトではしないようにし、コピペ用のバッファは Editor型の Clipboard フィールドで差し替えられるようにした (#9)
  • internal だったパッケージ Moji と型を公開

Thanks to @apstndb

v1.7.4

28 Jan 11:24
Compare
Choose a tag to compare

Changes in v1.7.4 (English)

  • Experimental change: The value -1 - (the byte position of the cursor) is now given as the second parameter instead of -1 when calling the FindAllStringIndex method of the Pattern field in the syntax highlighting structure.

Changes in v1.7.4 (Japanese)

  • 実験的仕様変更: シンタックスハイライト構造体の Pattern フィールドの FindAllStringIndex を呼び出す時、第二引数に -1 ではなく、-1 - (カーソルのバイト数位置) の値を与えるようにした。

v1.7.3

23 Jan 13:41
Compare
Choose a tag to compare

Changes in v1.7.3 (English)

  • Improved processing time when the syntax highlighting evaluation function is slow by reducing the number of its calls .

Changes in v1.7.3 (Japanese)

  • シンタックスハイライトの評価関数の呼び出し回数を削減し、評価関数が遅い場合の処理時間を改善した。

v1.7.2

21 Jan 15:23
Compare
Choose a tag to compare

Changes in v1.7.2 (English)

  • Made the following changes for go-multiline-ny:
    • Added a hook: Editor.AfterCommand, which is called after executing commands.
    • Exported previously unexported types and functions: NewEscapeSequenceId, EscapeSequenceId, HighlightToColoring, HighlightColorSequence, and ColorInterface.

Changes in v1.7.2 (Japanese)

  • go-multiline-ny のために以下の変更を行った
    • 各コマンドが動作した後に呼ばれるフック: Editor.AfterCommand を追加
    • 非公開であった型・関数を公開: NewEscapeSequenceId, EscapeSequenceId, HighlightToColoring, HighlightColorSequence, and ColorInterface

v1.7.1

18 Jan 13:50
Compare
Choose a tag to compare

Changes in v1.7.1 (English)

  • Fixed a panic in the syntax highlighting code when Japanese characters were entered using go-readline-skk.
  • Deprecated the GetKey function.
  • Unexported the GetKeys and GetRawKey functions.

Changes in v1.7.1 (Japanese)

  • go-readline-skk を使って日本語を入力した時、シンタックスハイライトを表示するコードでパニックが発生する問題を修正
  • 関数 GetKey を非推奨関数とした(廃止予定)
  • 関数 GetKeys, GetRawKey を非公開とした

v1.7.0

11 Jan 18:29
Compare
Choose a tag to compare

Changes in v1.7.0 (English)

  • Introduced a new interface for syntax highlighting.
    • Pattern specifies the range to which the highlight is applied. A regexp.Regexp is acceptable, but any type is sufficient as long as it has FindAllStringIndex(string, int) [][]int.
    • Sequence specifies the escape sequence to apply to the Pattern parts.
    • DefaultColor specifies the sequence used for parts where no highlight is applied.
    • ResetColor specifies the sequence used when completing the output of the input text.
    • The existing syntax highlighting interface, Coloring, is planned to be deprecated.

Changes in v1.7.0 (Japanese)

  • シンタックスハイライトの新しいインターフェイスを用意した。
    • Pattern はハイライトを適用する範囲を指定する。regexp.Regexp でよいが、FindAllStringIndex(string, int) [][]int を持つ型なら何でもよい
    • SequencePattern の部分に適用するエスケープシーケンスを指定する
    • DefaultColor はハイライトが適用されていない部分に使うシーケンスを指定する
    • ResetColor は入力テキスト出力を終える時に使うシーケンスを指定する
    • 従来のシンタックスハイライトのインターフェイス: Coloring は廃止予定です
editor := &readline.Editor{
    // :
    Highlight: []readline.Highlight{
        {Pattern: regexp.MustCompile("&"), Sequence: "\x1B[33;49;22m"},
        {Pattern: regexp.MustCompile(`"[^"]*"`), Sequence: "\x1B[35;49;22m"},
        {Pattern: regexp.MustCompile(`%[^%]*%`), Sequence: "\x1B[36;49;1m"},
        {Pattern: regexp.MustCompile("\u3000"), Sequence: "\x1B[37;41;22m"},
    },
    ResetColor:     "\x1B[0m",
    DefaultColor:   "\x1B[33;49;1m",
}

v1.6.3

07 Jan 00:50
Compare
Choose a tag to compare

Changes in v1.6.3 (English)

  • Adjusted: Avoided double nesting of bufio.Writer
  • Fixed: default color setting was incorrectly set to bold (#8)

Changes in v1.6.3 (Japanese)

  • bufio.Writer を二重にネストさせないようにした
  • デフォルトの色設定が誤って太字に設定されていた問題を修正 (#8)

Thanks to @brammeleman

v1.6.2

19 Nov 23:33
Compare
Choose a tag to compare
  • Fix: in incremental search on UNIX-like platforms, Backspace-key \x7F did not work to remove the previous character (though Ctrl-H worked)

  • UNIX系プラットフォームでのインクリメンタルサーチで Backspace キー\x7F が直前の文字を削除しない不具合を修正 (Ctrl-H は機能していた)

v1.6.1

08 Nov 17:00
Compare
Choose a tag to compare

  • UN*X系デスクトップのターミナルの機能で、複数行を一度に貼り付けた時、一部のテキストを取りこぼす不具合を修正 (hymkor/go-multiline-ny v0.16.2 向け対応)