- This version was released on Oct. 13, 2024 as a pre-release.
- The pre-release flag was cleared on Oct. 28, 2024 with no modifying on the content.
- The dicscussion for this release is #443
Changes on 4.4.16_0
Removed features and Deprecations
- Remove
nyagos.d/catalog/neco.lua - Remove Lua function:
nyagos.msgbox - Remove the feature to define
grepas an alias offindstr.exewhengrep.exedoes not exist. It was the undocumented feature.
New features
Readline
- PowerShell 7-style input prediction
- When one or more characters are typed, the most recent entry in the history that starts with the typed characters is displayed inline (in blue italics).
- Pressing
→orCtrl-Faccepts the current prediction - Enabled by default. You can disable it with the launch option
--no-predictor by settingnyagos.option.prediction=false
- Ctrl-P/N: save the modified entry when switching history, and restore when switching again, until Enter is pressed
Lua extensions
- Implement
nyagos.getkeys()which returns the input key as a sequence like"\027[A"instead ofnyagos.getkey()which returns unicode. - Enhance functions available in
nyagos.key[KEY] = function(this)...end- key-sequences like
"\007"and"\027[A"are avaliable as KEY. - Implement
this:eval(KEYSEQUNCE)that calls the function assigned to KEYSEQUNCE. - Implement
this:repaint()that updates the screen this.posandthis.textare automatically updated when methods are invoked.
- key-sequences like
- Add the completion for
make: Enable byrequire "makefile-complete" - Add subcommand name completion for the jj command: Enable by requiring "complete-jj".
- Add citation feature for the gmnlisp command: Enable by
require "gmnlisp"- Replaces
@(Lisp command)with the result processed by gmnlisp. - If the command starts with
(, it is executed using gmnlisp.exe.
- Replaces
- Add UNIX-style single quotation feature: Enable by requiring "sq2dq".
- Replaces
'..".."..'with"..\"..\"..". - Leaves
"..'..'.."unchanged (single quotes within double quotes are not converted).
- Replaces
Documents
- Fix the broken links caused by renaming readme.md to README.md ( Thx @HAYASHI-Masayuki )
4.4.16_0 での変更点
- 本バージョンは 2024年10月13日にプレリリースとして公開しました。
- プレリリースフラグは 2024年10月28日に解除しました。内容に特に変更はありません。
- このリリースについての議論は #443 へどうぞ
廃止・非推奨
nyagos.d/catalog/neco.luaを削除- Lua関数:
nyagos.msgboxを削除 - grep.exe が存在しない時、勝手に findstr.exe を grep の別名にする動作を削除
新機能
一行入力
- PowerShell 7 風の入力予測機能の実装
- 一文字以上入力すると、その内容で始まる履歴の最新エントリをインラインで表示(青の斜体)
→もしくはCtrl-Fで今の予測表示内容を採用する- デフォルトでオン。起動オプション
--no-predictもしくはnyagos.option.prediction=falseでオフ
- Ctrl-P/N: 履歴を切り替えるときに変更したエントリを保存し、(Enterが入力されるまでは)再度切り替えたときに復元するようにした
Lua 拡張
- キー入力の最初のコードの Unicode しか返さなくなっていた nyagos.getkey のかわりに、入力キーを
"\027[A"といったキーシーケンスで返す nyagos.getkeys() を実装した nyagos.key[KEY]=function(this)...endの中で使える機能を拡充makeコマンドのエントリ補完を追加:require "makefile-complete"にて有効化jjコマンドのサブコマンド名補完を追加:require "complete-jj"にて有効化gmnlispコマンドの引用機能を追加:require "gmnlisp"にて有効化@(Lispコマンド)を gmnlisp で処理した結果に置換- コマンド先頭が
(で始まっていた場合、gmnlisp.exe で実行
- UNIX風シングルクォーテーション機能を追加:
require "sq2dq"にて有効化'..".."..'を"..\"..\".."へ置換"..'..'.."はそのまま (二重引用符内の一重引用符は変換しない)
ドキュメント
- readme.md → README.md でのファイル名変更でドキュメント間のリンクが切れてしまっていた点の修正 ( Thx @HAYASHI-Masayuki )
