The binaries of this version are built with Go 1.20.9.
They support Windows 7, 8.1, 10, 11, WindowsServer 2008 or later, and Linux.
New features
- nyagos.d/suffix.lua: Enabled automatic expansion of wildcards used in parameters of commands listed in
%NYAGOSEXPANDWILDCARD%(for example:nyagos.env.NYAGOSEXPANDWILDCARD="gorename;gofmt") - #432 Add new option:
glob_slashto enable with the option of executable--glob-slash, calling lua function likenyagos.option.glob_slash=true, or executing commandset -o glob_slash. When it is set,/is used on wildcard expansion. - Support Japanese input method editor: SKK (Simple Kana Kanji conversion program) - How To Setup
- Add the lua-function:
nyagos.atou_if_neededthat converts the string that is not valid utf8 one to utf8-string as the current codepage string.
Fixed bugs
- #433 To avoid garbled characters, backquote uses
nyagos.atou_if_neededto prevent UTF8 from being further converted to UTF8. ( Thanks to @kgasawa ) - Fix: On linux version, backquotation failed with error and did not work. ( because the lua function
atoualways returned "not supported", it is changed to returning the same value with given ) - #432 When
set -o glob,*and?double-quoted were expanded as wildcards (They should not be) ( Thanks to @juggler999 ) - Fix the problem that
more,nyagos.getkey, andnyagos.getviewwidthmight not work on Windows 7, 8.1 and Windows Server 2008 at v4.4.13_3. - #434 Fix:
nyagos.which('cp')does not work as expect on Linux (Thanks to @ousttrue) - Fix: the background color of U+3000 was not changed to red
Breaking changes
nyagos.default_promptandnyagos.promptreturn the prompt-string instead of output it to the terminal directly. This modifying is to use the new fieldPromptWriterof the go-readline-ny.Editor instead ofPromptthat is deprecated.
当バージョンのバイナリは Go 1.20.9 でビルド。
サポート対象は Windows 7, 8.1, 10, 11, WindowsServer 2008以降, Linux となります。
新機能
- nyagos.d/suffix.lua: 環境変数
NYAGOSEXPANDWILDCARDにリストされているコマンドのパラメータはワイルドカードを自動展開するようにした(例:nyagos.env.NYAGOSEXPANDWILDCARD="gorename;gofmt") - #432 新オプション
glob_slashを追加。設定されている時(起動オプション:--glob-slash, lua関数:nyagos.option.glob_slash=true、コマンドライン:set -o glob_slash)、ワイルドカード展開で/を使う - SKK (Simple Kana Kanji conversion program) サポート - 設定方法
- 適切なUTF8文字列でない時は ANSI文字列とみなして UTF8変換を試みる関数
nyagos.atou_if_neededを追加
不具合修正
- #432
set -o glob時、二重引用符内の*,?がワイルドカードとして展開されていた(本来されるべきではない) ( Thanks to @juggler999 ) - Linux版で逆クォートがエラーになって機能しない不具合を修正 (Lua関数 atou が常に "not supopported" を返していたので、引数と同じ値を戻すようにした)
- #433 文字化けを避けるために、逆クォートでは
nyagos.atou_if_neededを使って、UTF8 を更に UTF8 化させないようにした ( Thanks to @kgasawa ) - v4.4.13_3 で、
more,nyagos.getkey,nyagos.getviewwidthが Windows 7, 8.1 や WindowsServer 2008 で動かない問題を修正 - #434 Lua で
nyagos.which('cp')が機能しない問題を修正 (Thanks to @ousttrue ) - 全角空白(U+3000)の背景色が赤くなっていなかった不具合を修正
破壊的変更
nyagos.default_promptやnyagos.promptは直接ターミナルへプロンプトを出力するのではなく、プロンプト文字列を戻り値として返すようにした。(go-readline-ny.Editor の deprecated フィールドの Prompt ではなく、PromptWriter を使用するための修正)
