Граф коммитов

210 Коммитов

Автор SHA1 Сообщение Дата
aycabta d616926af9 Remove an unnecessary variable 2019-12-17 14:21:07 +09:00
aycabta 4f9a4c1a8f Remove unnecessary branches 2019-12-17 13:59:19 +09:00
Thomas Leitner a1713bedb1 [ruby/reline] Implement completion_append_character
There is already the possibility to set Reline.completion_append_character.
However, it is not used by the line editor.

https://github.com/ruby/reline/commit/ab798931b9
2019-12-17 13:19:37 +09:00
Nobuyoshi Nakada 11db4d3a3b [ruby/reline] Disable any implementation-defined special control characters
Including dsusp, lnext, and so on.

https://github.com/ruby/reline/commit/a44abe586b
2019-12-17 13:19:37 +09:00
aycabta 618d091151 Support change search direction 2019-12-17 13:10:39 +09:00
aycabta a14a0244b4 Support forward-search-history by C-s 2019-12-17 13:07:19 +09:00
aycabta c2dfc6d869 Show a menu before a document
IRB should show a menu first if a completed list has plural items. But just
shows document without menu if a completed list with plural items includes a
perfect matched item. The behavior is a bug. This commit fixes it.
2019-12-13 08:54:22 +09:00
aycabta 7d991a0571 Suppress to crash IRB if completed list has nil 2019-12-12 08:40:50 +09:00
aycabta 6a7af800db Add a message for CompatibilityError 2019-12-11 11:36:40 +09:00
aycabta ec54ac9381 Support Readline.completion_quote_character by Reline 2019-12-11 11:13:05 +09:00
aycabta fe0df7dcfc Change encoding of completion strings 2019-12-10 17:28:09 +09:00
aycabta 6a22b2a091 Support completion with case-insensitive fashion
Reline performs completion in a case-insensitive fashon if
Readline.completion_case_fold or completion-ignore-case of .inputrc are set
"on".
2019-12-10 07:07:43 +09:00
aycabta a14c01441b Fix encoding compatibility checking of completion correctly 2019-12-09 14:21:20 +09:00
aycabta e72ffc55ba [ruby/reline] Support Ruby 2.5 or later for String#grapheme_clusters
https://github.com/ruby/reline/commit/33e8c8f15b
2019-12-07 20:01:53 +09:00
aycabta e3587ed849 Support disable-completion 2019-12-05 09:02:23 +09:00
aycabta ad8fbf444a Fix variable catch 2019-12-05 09:02:23 +09:00
aycabta 027e847cd2 Fix auto-indent behavior correctly 2019-12-03 13:02:50 +09:00
aycabta a92560132b Support incremental search by last determined word
In the incremental search by C-r, search word is saved when it's determined. In
the next incremental search by C-r, if a user presses C-r again with the empty
search word, the determined previous search word is used to search.
2019-12-03 01:39:59 +09:00
aycabta bce38f706e The C-r in vi command mode is also incremental search 2019-12-03 01:39:59 +09:00
aycabta 103b04128f Support incremental search again by C-r in incremental search 2019-12-02 04:18:22 +09:00
aycabta c7f05310a2 Process Backspace key in incremental search correctly 2019-12-02 03:30:38 +09:00
aycabta e15b0313a7 Search history to back in the middle of histories 2019-12-02 03:09:41 +09:00
aycabta 8cb3f29abf The ed_search_prev_history should always search to backward 2019-12-01 23:54:57 +09:00
aycabta f1cfc7da18 Reline::HISTORY can take Range object 2019-12-01 23:54:57 +09:00
aycabta abe8fb49f0 Delete newline when C-k on emacs mode at EOL 2019-11-28 09:32:51 +09:00
aycabta 9131e62f18 [ruby/reline] Version 0.0.7
09d370bdc1
2019-11-21 07:14:27 +09:00
aycabta f30f78e2e0 Version 0.0.6 2019-11-21 07:04:53 +09:00
aycabta 95f20f463a Consider escape sequence to calculate prompt width 2019-11-21 07:01:41 +09:00
manga_osyo 81586a4d9f Add <Home> <End> keys. 2019-11-21 00:47:36 +09:00
aycabta da0d7211aa Fix indent of a line when a newline is inserted to the next 2019-11-20 10:04:41 +09:00
Nobuyoshi Nakada cef9ebfbd3 Suppress `stty` error on Apple Terminal
`stty` called in `Reline::ANSI.deprep` command shows the following
error message on macOS Apple Terminal, with some settings.

```
$ LANG=C irb
irb(main):001:0>
stty: 'standard input': unable to perform all requested operations
stty: 'standard input': unable to perform all requested operations
```
2019-11-19 02:39:02 +09:00
aycabta 7c6bedfe5c Remove unnecessary check 2019-11-18 03:23:45 +09:00
aycabta 910f9b8338 [ruby/reline] Version 0.0.5
https://github.com/ruby/reline/commit/d57c7ea252
2019-11-17 23:32:10 +09:00
aycabta 11ae47c266 [ruby/reline] Restore left cursor key support on Unix like OSes...
https://github.com/ruby/reline/commit/98b72af751
2019-11-15 18:07:34 +09:00
aycabta fa7618e4c1 Implement em_set_mark and em_exchange_mark 2019-11-15 16:50:40 +09:00
aycabta 6e72b72881 Suppress "shadowing outer local variable" warning in 2.5 2019-11-08 16:18:36 +09:00
aycabta ea97933645 Use prompt_list to calculate height by lines 2019-11-02 00:11:15 +09:00
aycabta 0547627705 Version 0.0.4 2019-10-29 10:35:43 +09:00
aycabta 7bcc639c72 Rename old var name with new name 2019-10-25 10:07:17 +09:00
aycabta 6df6611ce7 Treat only left alt key as meta-key on Windows
On German keyboard, right alt key acts as like shift key.

Ex. right-alt-8 is just "[". This input doesn't have meta-key statement.
2019-10-24 02:49:14 +09:00
aycabta 7bc787fa06 Support forced enter insertion by Ctrl+Enter on Windows 2019-10-24 00:12:58 +09:00
aycabta 8bb716ab91 Fix indent... 2019-10-23 19:57:31 +09:00
aycabta 8c0629ba58 Treat key sequences from getwch() that start from 0 or 0xE0 correctly 2019-10-18 02:54:20 +09:00
aycabta 58657fa134 Add numeric keypad key sequences on Windows 2019-10-18 02:54:20 +09:00
aycabta 53c05a6cf4 Remove freeze 2019-10-18 02:54:20 +09:00
aycabta 13b106a19c Ignore the input method key sequence from getwch() correctly
The function getwch() returns some key sequences which start from 0 or 0xE0
with a following key code. Alt+` that is on/off key for input methods gives 0
and 41 so Reline was always ignoring 0 and following keys but numeric keypad
keys give 0 and following actual keys. This commit changes the behavior to be
ignoring only the 0 and 41 sequence.
2019-10-18 02:54:20 +09:00
aycabta d1a7305848 Insert multiline incremental search result correctly 2019-10-18 00:44:56 +09:00
aycabta 41457dcbe0 Remove unused variable 2019-10-17 16:54:06 +09:00
aycabta 60a0c20cb6 Refactor prompt generation logic 2019-10-17 16:35:18 +09:00
aycabta db84123600 Calculate prompt width correctly 2019-10-17 02:19:01 +09:00