Commit graph

650 commits

Author SHA1 Message Date
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
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
d57c7ea252
2019-11-17 23:32:10 +09:00
aycabta
11ae47c266 [ruby/reline] Restore left cursor key support on Unix like OSes...
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
aycabta
e26c6d4ab8 Collect multiline prompt logic into a method 2019-10-17 01:56:20 +09:00
aycabta
7df227804a Support multiline history in incremental search 2019-10-16 22:35:58 +09:00
aycabta
259601ab57 Support backspace in incremental search 2019-10-16 02:55:45 +09:00
aycabta
a5245c1658 C-r is incremental history search in vi insert mode 2019-10-16 02:08:52 +09:00
aycabta
f4252f6496 Version 0.0.3 2019-10-07 16:14:03 +09:00
aycabta
a9e9cd2036 Flush console just after printing 2019-10-07 14:15:05 +09:00
aycabta
136116819e Use built-in Win32API on JRuby
It's fixed for JRuby dedicatedly.
2019-10-07 14:15:05 +09:00
Nobuyoshi Nakada
ae83dbe28d Get rid of IO.select to fix multiline paste 2019-09-26 00:26:33 +09:00
aycabta
b443bdbdb9 Use short wait for select(2)
It is one of the reasons why paste to IRB is slow.
2019-09-23 17:33:25 +09:00
aycabta
934507472c Retrieve key-buffer that was supposed to lose 2019-09-23 17:27:01 +09:00