Skip to content

Releases: nyaosorg/go-readline-ny

v1.3.1

20 Apr 16:38
Compare
Choose a tag to compare
  • #6 Fix: Sub package completion fails on empty field (Thanks @glejeune)

  • #6 サブパッケージ completion で、空状態で補完するとクラッシュする不具合を修正 (Thanks @glejeune )

v1.3.0

17 Apr 00:54
Compare
Choose a tag to compare
  • Add constant: keys.ShiftTAB = "\x1B[Z"
  • Simplify the terminal interface and implements (Compatibility around ITty is broken)

  • 定数追加: keys.ShiftTAB = "\x1B[Z"
  • 端末のインターフェイスと実装を簡素化 (ITty 周辺の互換性破壊)

v1.2.0

29 Feb 06:07
Compare
Choose a tag to compare
  • "go-readline-ny/keys": Key name constants are now untyped (originally keys.Code)

  • "go-readline-ny/keys": キーの名前定数は型無しとした (元々は keys.Code だった)

v1.1.0

27 Feb 02:24
Compare
Choose a tag to compare
  • "completion": Append the value of CmdCompletion.Postfix or CmdCompletionOrList.Postfix instead of one space when there is only one candidate. (The default value is empty string)

  • "completion": 1候補に絞れた時に空白を追加していたが、空白のかわりに CmdCompletion.Postfix や CmdCompletionOrList.Postfix で指定できるようにした (デフォルトは0文字)

v1.0.1

08 Oct 06:00
Compare
Choose a tag to compare
  • Fix: the color can not be changed where the character is not simple codepoint such as ZERO WIDTH JOIN SEQUENCE, VARIATION SELECTOR SEQUENCE...

  • 合字や異体字など単純なコードポイントでない文字位置で色を変えられなかった問題を修正

v1.0.0

05 Oct 23:26
Compare
Choose a tag to compare
  • Just changed the version to v1.0.0

  • バージョンを v1.0.0 にしました。

v0.15.2

01 Oct 09:37
Compare
Choose a tag to compare
  • Fix: Coloring.Next(CursorPositionDummyRune) was not called when the cursor is at the end of the string
  • Add (ColorSequence) Chain that joins two instances of ColorSequence

  • カーソルが末尾にある時、Coloring.NextCursorPositionDummyRune (U+E000) を受けとれない問題を修正
  • (ColorSequence) Chain を追加 (二つのColorSequenceを連結する)

v0.15.1

30 Sep 16:01
Compare
Choose a tag to compare
  • Implement (ColorSequence) Add
  • Coloring.Next receives CursorPositionDummyRune (U+E000) on the cursor position now

  • (ColorSequence) Add を作成
  • カーソル位置で、Coloring.NextCursorPositionDummyRune (U+E000) を受けとるようにした

v0.15.0

29 Sep 11:44
Compare
Choose a tag to compare
  • Remove the deprecated fields, methods and functions for v1.0.0
    • KeyGoFuncT. Use GoCommand instead
    • moji.GetCharWidth
    • GetFunc. Use nameutils.GetFunc instead
    • (*Editor) LineFeed. use (*Editor) LineFeedWriter instead
    • (*Editor) Prompt. use (*Editor) PromptWriter instead
    • (*Editor) GetBindKey
    • (*KeyMap) BindKeyFunc. Use nameutils.BindKeyFunc() instead
    • (*KeyMap) BindKeyClosure
    • (*KeyMap) GetBindKey
    • (*KeyMap) BindKeySymbol. Use nameutils.BindKeySymbol instead

  • v1.0.0 に向けて、非推奨としていたフィールド、メソッド、関数を削除しました
    • KeyGoFuncT. GoCommand をかわりに使ってください
    • moji.GetCharWidth
    • GetFunc. nameutils.GetFunc をかわりに使ってください
    • (*Editor) LineFeed. (*Editor) LineFeedWriter をかわりに使ってください
    • (*Editor) Prompt. (*Editor) PromptWriter をかわりに使ってください
    • (*Editor) GetBindKey
    • (*KeyMap) BindKeyFunc. nameutils.BindKeyFunc() をかわりに使ってください
    • (*KeyMap) BindKeyClosure
    • (*KeyMap) GetBindKey
    • (*KeyMap) BindKeySymbol. nameutils.BindKeySymbol をかわりに使ってください

v0.14.1

13 Sep 04:54
Compare
Choose a tag to compare
  • Publish the function GetKey(tty) string
    • This function has existed internally for some time, but since equivalent functions were often reimplemented in the packages used, we published it as a utility function.
    • GetKey, unlike (*TTY) ReadRune, returns a series of input key sequences like "[\x1B[A" as a string.
    • The parameter tty is expected to be set the instance of 'go-tty.TTY' or a compatible one.
    • It must have methods: Raw(), ReadRune(), and Buffered().
  • Set Deprecated comment on the field Editor.Prompt

  • 関数 GetKey(tty) string を公開
    • 内部的には前からあった関数でしたが、利用パッケージで同等の関数を再実装することが多かったので、ユーティリティー関数として公開しました。
    • GetKey は (*TTY) ReadRune と違って、"[\x1B[A" のような一連のキー入力シーケンスを1文字列といて返します
    • 引数 ttygo-tty.TTY もしくは、その互換型を想定。メソッド Raw(), ReadRune(), Buffered() を実装していなければいけません
  • Editor.Prompt フィールドに Deprecated コメントをセットしました