From a00f1e361c2e14cf5a3f8a7efc0c8ff5cc424dd1 Mon Sep 17 00:00:00 2001 From: I3oris Date: Mon, 28 Nov 2022 21:27:39 +0100 Subject: [PATCH] v0.6.0 --- CHANGELOG.md | 32 ++++++++++++++++++++++++++++++++ shard.yml | 2 +- src/ic.cr | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d50dcb..c3d4d48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,35 @@ +# 0.6.0 (Mon Nov 28 2022) + +### New +* The history is now saved in `/.ic_history`. + * The file location can be controlled with the environment variables `IC_HISTORY_FILE`. (`IC_HISTORY_FILE=""` disables history saving) + * History max size is 10_000. (Can be controlled with `IC_HISTORY_SIZE`) +* The new following hotkeys have been added: (thanks @zw963!) + * `ctrl-d`: Delete char or exit (EOF). + * `ctrl-k`: Delete after cursor. + * `ctrl-u`: Delete before cursor. + * `alt-backspace`/`ctrl-backspace`: Delete word after + * `alt-d`/`ctrl-delete`: Delete word before. + * `alt-f`/`ctrl-right`: Move word forward. + * `alt-b`/`ctrl-left`: Move word backward. + * `ctrl-n`/`ctrl-p`: Move cursor up/down. + * `ctrl-b`/`ctrl-f`: Move cursor backward/forward. +* Behavior when auto-completing on only one match is slightly enhanced. +* Crystal interpreter version is now 1.6.2. + +### Bugs fix +* Fix #9: repair require of local files, thanks @lebogan! +* Fix display of auto-completion title on pry. +* Reduce blinking on ws-code (computation are now done before clearing the screen). Disallow `sync` and `flush_on_newline` during `update` which help to reduce blinking too, (#10), thanks @cyangle! +* Align the expression when prompt size change (e.g. line number increase), which avoid a cursor bug in this case. +* Fix wrong history index after submitting an empty entry. +* Fix ioctl window size magic number on darwin and bsd (reply#3), thanks @shinzlet! + +### Internal +* Extract `repl_interface`/`expression_editor`/`char_reader`/`history` into a new shard `REPLy` and use it as dependency. +* Use ameba v1.3.1 and fix lint error. +* Use REPLy v0.3.1. + # 0.5.1 (Mon Sep 12 2022) ### New diff --git a/shard.yml b/shard.yml index d4d7b2f..e1f0d97 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: ic -version: 0.5.1 +version: 0.6.0 description: REPL Interface wrapping Crystal Interpreter (crystal-i). authors: - I3oris diff --git a/src/ic.cr b/src/ic.cr index 1c37241..cfc45cb 100644 --- a/src/ic.cr +++ b/src/ic.cr @@ -2,7 +2,7 @@ require "./repl" require "option_parser" module IC - VERSION = "0.5.1" + VERSION = "0.6.0" end repl = Crystal::Repl.new