- Fix
REPLy
on Mac, caused by a wrong implementation ofioctl
. Remake entirely the implementation ofReply::Term::Size
in a more portable way. Inspired by (https://github.com/crystal-term/screen/blob/master/src/term-screen.cr.)
- Compute the term-size only once for each input. Fix slow performance when the size is taken from
tput
(ifioctl
fails). - Fix spec on windows due to '\n\r'.
- Fix typo ('p' was duplicate in 'dupplicate').
- Windows support: REPLy is now working on Windows 10. All features expect to work like linux except the key binding 'alt-enter' that becomes 'ctrl-enter' on windows.
- Implement saving history in a file.
- Add
Reader#history_file
which allow to specify the file location. - Add
History#max_size=
which allow to change the history max size. (default: 10_000)
- Add
- Windows: use
GetConsoleScreenBufferInfo
forTerm::Size
andReadConsoleA
forread_char
. - Windows: Disable some specs on windows.
- Small refactoring on
colorized_lines
. - Refactor: Remove unneeded ivar
@max_prompt_size
. - Improve performances for
move_cursor_to
. - Remove unneeded ameba exception.
- Remove useless printing of
Term::Cursor.show
at exit.
- Reduce blinking on ws-code (computation are now done before clearing the screen). Disallow
sync
andflush_on_newline
duringupdate
which help to reduce blinking too, (ic#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.
- Write spec to avoid bug with autocompletion with '=' characters (ic#11), thanks @cyangle!
- BREAKING CHANGE:
word_delimiters
is now aArray(Char)
property instead ofRegex
to return in a overridden function. ctrl-n
,ctrl-p
keybinding for navigate histories (#1), thanks @zw963!delete_after
,delete_before
(ctrl-k
,ctrl-u
) (#2), thanks @zw963!move_word_forward
,move_word_backward
(alt-f
/ctrl-right
,alt-b
/ctrl-left
) (#2), thanks @zw963!delete_word
,word_back
(alt-backspace
/ctrl-backspace
,alt-d
/ctrl-delete
) (#2), thanks @zw963!delete
oreof
onctrl-d
(#2), thanks @zw963!- Bind
ctrl-b
/ctrl-f
with move cursor backward/forward (#2), thanks @zw963!
- Fix ioctl window size magic number on darwin and bsd (#3), thanks @shinzlet!
- Refactor: move word functions (
delete_word
,move_word_forward
, etc.) fromReader
to theExpressionEditor
. - Add this CHANGELOG.
First version extracted from IC.
- Multiline input
- History
- Pasting of large expressions
- Hook for Syntax highlighting
- Hook for Auto formatting
- Hook for Auto indentation
- Hook for Auto completion (Experimental)