Changes from v1.9.1 to v1.10.0 (English)
New features
- Add new options:
-pProtect the header line (Config.ProtectHeaderfor package configuration ) - Do not create a row contains nothing but EOF.
- When
-fixcolis set, the new row whicho&Oinsert has all columns same as the row cursor exists
Fixed bugs
- When
-fixcolis specified- Fix:
oandO: inserted column was always the first one of the new line - Fix:
O: the line of cursor is incorrect before new cell text is input
- Fix:
- Fix timing to close the terminal input was incorrect
(The cause is unknown; however, the issue has not manifested)
Modifying package
- Added a mechanism for cell input validation
- User functions can be assigned to keys
- Make
uncsv.Cell.Original()that returns the original value before modified. csvi.Resulthas removed rows in a field.- Set 14 as the default of
csvi.Config.CellWidth - Implement
csvi.Config.Editas a function instead ofcsvi.Config.Mainas the entry function for external packages
v1.9.1 から v1.10.0 への変更点 (日本語)
新仕様
- 新オプション追加:
-pヘッダー行を保護 ( パッケージ用設定:Config.ProtectHeader) - EOF だけの行を作成しないようにした
-fixcol指定時、oやOで挿入される行は、カーソルのある行と同じ全列を持たせるようにした。
不具合修正
- カラム数固定(
-fixcol)の時oやOで入力されたテキストが記入される列がカーソルのあった列ではなく常に先頭列になっていた不具合を修正Oでテキストを入力する時の反転セルの行位置がずれている不具合を修正
- 端末入力(go-tty)のクローズタイミングがおかしかった点を修正
(なぜか問題として表面化していない)
パッケージ修正
- セルの入力チェックの仕組みを用意
- キーに関数を割り当てられるようにした
- 変更前のセル値を取得する
uncsv.Cell.Original()を用意した csvi.Resultに削除した行情報を保持させるようにした。csvi.Config.CellWidthのデフォルトを14桁とした- 外部へのエントリ関数として、
csvi.Config.Mainのかわりにcsvi.Config.Editを用意