Commit graph

650 commits

Author SHA1 Message Date
aycabta
3cef8869b0 [ruby/reline] Version 0.2.8.pre.8
967e19786d
2021-09-06 16:10:22 +09:00
manga_osyo
97a569c648 [ruby/reline] Memoize path of .inputrc [Ref #319]
When `ENV["HOME"] = "foo"` on irb, an exception is raised when retrieving the path of `.inputrc`.
Memoize the path of `.inputrc` and don't get the path after the second time.

7b90b16165
2021-09-06 07:05:52 +09:00
aycabta
32ff4a8c93 [ruby/reline] Set scrollbar color
d7962e420d
2021-09-06 05:35:03 +09:00
aycabta
79652c5873 [ruby/reline] Support multiple trap_key
b0207fa049
2021-09-06 05:24:05 +09:00
aycabta
d07060c42a [ruby/reline] No need to use max_by when array.size == 1
7e56c8af05
2021-09-06 05:23:55 +09:00
aycabta
8913b9b742 [ruby/reline] Use sort.last instead of sort.reverse.first
67f1d8d2d2
2021-09-06 05:23:46 +09:00
aycabta
3773296bfc [ruby/reline] Allow Reline::KeyStroke to compare raw and meta-key processed key sequences
731103f9c9
2021-09-06 05:23:27 +09:00
aycabta
544cd3fb91 [ruby/reline] Support oneshot key bindings config for key_trap of dialog callbacks
5f1141b693
2021-09-06 05:23:06 +09:00
aycabta
e68a586263 [ruby/reline] Add that Reline::Unicode.take_range is cutting based on width
18405d9594
2021-09-06 05:22:36 +09:00
aycabta
1fe604a675 [ruby/reline] Add comments about optimizing chars in ASCII range of UTF-8
3c13d93486
2021-09-06 05:22:29 +09:00
aycabta
03e9887d2e [ruby/reline] Correct misalignment of scrollbar
7924b4cfc6
2021-09-04 21:40:17 +09:00
aycabta
ec36ceb072 [ruby/reline] Implement scrollbar
4c7fc42151
2021-09-04 21:40:12 +09:00
aycabta
36afcf1e15 [ruby/reline] Version 0.2.8.pre.7
c77c3c6fae
2021-09-04 02:17:50 +09:00
aycabta
057ab5f056 [ruby/reline] Emulate Unix like terminals that sends Alt+key as \e+key
dc2cf90fa6
2021-09-03 04:27:53 +09:00
aycabta
9e0caba187 [ruby/reline] Add Reline::Key#match?
8f6aa3af2e
2021-09-03 04:27:48 +09:00
aycabta
38ae3b8e36 [ruby/reline] Add key accessor for dialog callbacks
c949e44a14
2021-09-03 04:27:42 +09:00
aycabta
f3fe3511da [ruby/reline] Swap the order of initialization for readability
d53749b208
2021-09-03 03:32:12 +09:00
aycabta
93080111cd [ruby/reline] Fix autocomplete dialog width
9868432687
2021-09-03 03:32:07 +09:00
aycabta
a0a5bdb3ae [ruby/reline] Version 0.2.8.pre.6
175d5ad4c4
2021-09-02 22:16:36 +09:00
aycabta
afa4b59e06 [ruby/reline] Clear only necessary parts when dialog disappearing
46ff0ff435
2021-09-02 17:11:21 +09:00
aycabta
4208cd0301 [ruby/reline] Shrink the dialog height when contents is shorter than it
a18817635f
2021-09-02 17:11:14 +09:00
aycabta
a44d28db9f [ruby/reline] Fix a misalignment when dialog is shown on top
0527b1a492
2021-09-02 17:11:09 +09:00
aycabta
123fcc8c92 [ruby/reline] Remove an unnsed constant
44da8a6b9e
2021-09-02 17:11:01 +09:00
aycabta
4852d87a81 [ruby/reline] Fix a crash when completing empty line
8226ae7e57
2021-09-02 14:07:48 +09:00
aycabta
5f23003cc2 [ruby/reline] Fix a crash when completing after 2nd line
f9d3480c34
2021-09-02 14:07:40 +09:00
aycabta
f9bdb17c02 [ruby/reline] Use padding_space_with_escape_sequences to padding spaces in reset_dialog
7d582f4982
2021-09-01 18:05:37 +09:00
aycabta
acf11b94d2 [ruby/reline] Cut out a method that calcs width including the escape sequence and padding with spaces
46c9d944e5
2021-09-01 18:05:30 +09:00
aycabta
a669b9661e [ruby/reline] Calc width including escape sequences and padding with spaces correctly
21c795e97f
2021-09-01 18:05:25 +09:00
aycabta
3bd3adde7c [ruby/reline] Calc width including escape sequences and clear dialog correctly
9b812d5151
2021-09-01 18:05:20 +09:00
aycabta
ba0464e0cf Reline::GeneralIO should work fine without tty 2021-09-01 17:29:01 +09:00
aycabta
9b188ac238 [ruby/reline] Remove one unnecessary nest for simplicity's sake
f4bda85a7c
2021-08-31 20:48:54 +09:00
aycabta
64373a3c58 Move access to dialog_render_info inside nil check 2021-08-31 20:35:10 +09:00
aycabta
8273e95753 [ruby/reline] Version 0.2.8.pre.5
79b7d80fee
2021-08-31 15:22:05 +09:00
aycabta
7afb5b8b95 [ruby/reline] Use Reline::Unicode.take_range to devide exactly by width
de1ad93f44
2021-08-31 15:19:44 +09:00
aycabta
4f5166e790 [ruby/reline] Check if dialog_render_info is nil or not
e2b87fe831
2021-08-31 15:19:37 +09:00
aycabta
c8a07a1231 [ruby/reline] Fix Reline::Unicode.take_range as it was not fully functional
5da6a8d851
2021-08-31 15:19:32 +09:00
aycabta
7fae57dbb4 [ruby/reline] Use dynamic contents width
f0e54f239b
2021-08-31 15:19:25 +09:00
aycabta
a598730e79 [ruby/reline] Remove an unused variable
0ae7d8b336
2021-08-31 05:45:02 +09:00
aycabta
bb2b5052f5 [ruby/reline] Version 0.2.8.pre.4
059d39b090
2021-08-31 05:28:17 +09:00
aycabta
c98b2e14c7 [ruby/reline] Pass "dialog" to context to get "dialog.scroll_top" later
d81f29a134
2021-08-31 05:26:53 +09:00
aycabta
81d40b5b7e [ruby/reline] Scroll autocompletion pointer in dialog correctly
dc79ed2dd8
2021-08-31 05:26:39 +09:00
aycabta
282f7ce896 [ruby/reline] Use DialogRenderInfo struct
ac6f652a39
2021-08-31 05:26:33 +09:00
aycabta
0c09418fff [ruby/reline] Fix dialog rendering at the bottom edge
860be91bd7
2021-08-31 05:26:28 +09:00
aycabta
b6b2b767ed [ruby/reline] Version 0.2.8.pre.3
6e0ea3362a
2021-08-30 02:37:23 +09:00
aycabta
e1ee7f9ced [ruby/reline] Version 0.2.8.pre.2
5e3ea74891
2021-08-30 02:37:23 +09:00
aycabta
62555d7ae6 [ruby/reline] Set autocompletion is false by default
For compatibility with ext/readline.

13d9b936bc
2021-08-30 02:37:23 +09:00
aycabta
935bb4c617 [ruby/reline] Add autocompletion on emacs mode by Tab / S-Tab
22d0b4e5d8
2021-08-30 02:37:23 +09:00
aycabta
11b825076b [ruby/reline] Add config.autocompletion
3d918e4ccb
2021-08-30 02:37:23 +09:00
aycabta
8876710f2a [ruby/reline] Version 0.2.8.pre.1
2668715509
2021-08-29 20:30:33 +09:00
aycabta
b023ef8594 [ruby/reline] Clear dialog by C-c
f66a079c85
2021-08-29 20:30:33 +09:00