Commit graph

360 commits

Author SHA1 Message Date
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
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
b023ef8594 [ruby/reline] Clear dialog by C-c
f66a079c85
2021-08-29 20:30:33 +09:00
aycabta
d41d41da38 [ruby/reline] Clear completion journey data when finished
03716a411e
2021-08-29 20:30:33 +09:00
aycabta
3d757ba1b6 [ruby/reline] Suppress crashes on nil
b5f62c366b
2021-08-29 20:30:33 +09:00
aycabta
acd15a39d2 [ruby/reline] Support custom bg color
cd0cbf53d5
2021-08-29 20:30:33 +09:00
aycabta
4cd344c958 [ruby/reline] Add the ability to handle context between dialogs
063d9c70d9
2021-08-29 20:30:33 +09:00
aycabta
8d4370b066 [ruby/reline] Support for multiple dialog rendering
f589fab718
2021-08-29 20:30:33 +09:00
aycabta
164e486225 [ruby/reline] Remove @dialog_updown and @dialog_contents_width
458cb8a9cc
2021-08-29 20:30:33 +09:00
aycabta
4b2b10707a [ruby/reline] Implement dynamic selection of candidates
e46437df00
2021-08-29 20:30:33 +09:00
aycabta
fdc005e54e [ruby/reline] Completion journey starts with one of candidates
First one is just original string.

ccb70cc240
2021-08-29 20:30:33 +09:00
aycabta
475038a622 [ruby/reline] Move cursor correctly when current line is auto wrapped
14c8fade54
2021-08-29 20:30:33 +09:00
aycabta
ff43b0f2dd [ruby/reline] Update dialog backup before clearing
a39e2c8813
2021-08-29 20:30:33 +09:00
aycabta
ca1a2d1f68 [ruby/reline] Show autocomplete correctly when starts from prev line
f31a76ff31
2021-08-29 20:30:33 +09:00
aycabta
06bd48aba8 [ruby/reline] Remove unnecessary metadata between lines
83928249e3
2021-08-29 20:30:33 +09:00
aycabta
081e5de34d [ruby/reline] Combine vertical processing into @dialog_vertical_offset
600b93620c
2021-08-29 20:30:33 +09:00
aycabta
f863ed5210 [ruby/reline] Drop too much contents before processing
94f7027edc
2021-08-29 20:30:33 +09:00
aycabta
fb9fe4c43f [ruby/reline] Display autocomplete below original line if end point was wrapped
49f3392d59
2021-08-29 20:30:33 +09:00
aycabta
9b2afb2eed [ruby/reline] Scroll properly to create margin
064d54f8f1
2021-08-29 20:30:33 +09:00
aycabta
85dd0ad5e0 [ruby/reline] Move dialog pos to left when goes beyond right edge
f1efa2b062
2021-08-29 20:30:33 +09:00
aycabta
02a61fe33f [ruby/reline] Hide cursor when rendering dialog
a9050cf676
2021-08-29 20:30:32 +09:00
aycabta
c0349765e9 [ruby/reline] Remove debug code
2389d175f7
2021-08-29 20:30:32 +09:00
aycabta
2ec3977ce2 [ruby/reline] Clear after cursor
4d7503cd1f
2021-08-29 20:30:32 +09:00
aycabta
b95e5f4a41 [ruby/reline] Move cursor to rerender right margin of dialog correctly
554855013b
2021-08-29 20:30:32 +09:00
aycabta
6f66927aef [ruby/reline] Add comments about where rerendering
4406069b7e
2021-08-29 20:30:32 +09:00
aycabta
55459bdd67 [ruby/reline] Use background color instead of border frame
8f1db0a076
2021-08-29 20:30:32 +09:00
aycabta
6fda457448 [ruby/reline] Suppress warning; unused variable
74a6124e8d
2021-08-29 20:30:32 +09:00
aycabta
1e527c8a55 [ruby/reline] Remove an unnecessary variable
5435c1aa3f
2021-08-29 20:30:32 +09:00
aycabta
fb0fc20196 [ruby/reline] Implement dialog with autocomplete callback
1401d6165e
2021-08-29 20:30:32 +09:00
aycabta
e66200780b [ruby/reline] Separate calling completion proc with checking args
3203cb97db
2021-08-29 20:30:32 +09:00
aycabta
de93b8b069 Handle SIGINT in other thread correctly
Co-authored-by: Koichi Sasada <ko1@atdot.net>
2021-08-04 18:29:42 +09:00
aycabta
5bb7b57129 Use Symbol of signal for trap 2021-08-04 18:29:42 +09:00
aycabta
95a3cdade6 [ruby/reline] Remove FIXME comment in #render
acd8f8efbb
2021-06-21 17:58:49 +09:00
aycabta
b06218ce6f [ruby/reline] Remove TODO comment in #render_partial
bb6ea232c2
2021-06-21 17:58:49 +09:00
aycabta
7e93917458 [ruby/reline] Reset @rest_height when clear screen
3a7019b0d5
2021-04-02 17:33:48 +09:00
aycabta
89caf51d93 [ruby/reline] Suppress crashing when completer_{quote,word_break}_characters is empty
c6f1164942
2021-03-24 15:43:34 +09:00
aycabta
758f2b35f9 [ruby/reline] Support preposing and postposing for Reline.completion_proc
1f469de90c
2021-03-24 15:43:27 +09:00
aycabta
4b33d860e8 [ruby/reline] Reline.delete_text removes the current line in multiline
da90c094a1
2021-03-24 15:43:19 +09:00
aycabta
aeac4ddcc0 [ruby/reline] Use UTF-8 only for width calc, rest uses original encoding
I confirmed that libvterm supports only which are UTF-8, US ASCII, UK, and
DEC graphics by reading source code, so can't test this patch by
yamatanoorogi gem through vterm gem for now.

This fixes ruby/irb#190.

44596c0cc7
2021-02-21 06:44:05 +09:00
Yoshinao Muramatu
38d30a6942 [ruby/reline] check ENABLE_VIRTUAL_TERMINAL_PROCESSING flag and switch eof processing
3535676689
2021-02-21 06:43:52 +09:00
Yoshinao Muramatu
38cefac7ce [ruby/reline] We still need support new and legacy behavior.
Revert "Support for change in Windows-specific behavior at eol"

This reverts commit cad4de6ee841b43f3f0e441626f9415c3eda0f82.

646587fc2c
2021-02-21 06:43:41 +09:00
Eamonn Webster
ac9e3b514b [ruby/reline] Avoid tripping over nil prompt
d4d9d3e3d4
2021-02-21 06:41:11 +09:00
aycabta
300084a854 [ruby/reline] Terminate correctly in the middle of lines higher than the screen
e1d9240ada
2021-02-07 05:12:19 +09:00
aycabta
fee19da230 [ruby/reline] Autowrap correctly when inserting chars in the middle of a line
ebaf37255f
2021-02-07 05:12:07 +09:00
aycabta
a19ed1623f [ruby/reline] The vi_histedit supports multiline
This closes ruby/reline#253.

f131f86d71
2021-02-07 05:11:54 +09:00
aycabta
a608bb3e9b [ruby/reline] Move cursor just after the last line when finished
ba06e4c480
2021-02-07 05:11:47 +09:00