Releases: nyaosorg/go-readline-ny
Releases · nyaosorg/go-readline-ny
v1.3.1
v1.3.0
v1.2.0
v1.1.0
- "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
v1.0.0
v0.15.2
- Fix: Coloring.Next(CursorPositionDummyRune) was not called when the cursor is at the end of the string
- Add
(ColorSequence) Chain
that joins two instances ofColorSequence
- カーソルが末尾にある時、
Coloring.Next
がCursorPositionDummyRune
(U+E000) を受けとれない問題を修正 (ColorSequence) Chain
を追加 (二つのColorSequenceを連結する)
v0.15.1
v0.15.0
- Remove the deprecated fields, methods and functions for v1.0.0
KeyGoFuncT
. UseGoCommand
insteadmoji.GetCharWidth
GetFunc
. Usenameutils.GetFunc
instead(*Editor) LineFeed
. use(*Editor) LineFeedWriter
instead(*Editor) Prompt
. use(*Editor) PromptWriter
instead(*Editor) GetBindKey
(*KeyMap) BindKeyFunc
. Usenameutils.BindKeyFunc()
instead(*KeyMap) BindKeyClosure
(*KeyMap) GetBindKey
(*KeyMap) BindKeySymbol
. Usenameutils.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
- 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 fieldEditor.Prompt
- 関数
GetKey(tty) string
を公開- 内部的には前からあった関数でしたが、利用パッケージで同等の関数を再実装することが多かったので、ユーティリティー関数として公開しました。
- GetKey は
(*TTY) ReadRune
と違って、"[\x1B[A"
のような一連のキー入力シーケンスを1文字列といて返します - 引数 tty は go-tty.TTY もしくは、その互換型を想定。メソッド Raw(), ReadRune(), Buffered() を実装していなければいけません
Editor.Prompt
フィールドに Deprecated コメントをセットしました