Sergey Nuyanzin created FLINK-24742:
---------------------------------------

             Summary: SQL client add info about key strokes to docs
                 Key: FLINK-24742
                 URL: https://issues.apache.org/jira/browse/FLINK-24742
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Client
            Reporter: Sergey Nuyanzin


SQL client supports key strokes from jline.
Unfortunately there is no docs about that in jline however there is source from 
which it could be found [1]
here it is a list of most useful key strokes which are already supported by all 
existing Flink SQL client

|| Key-Stroke || Description ||
| `alt-b` | Backward word |
| `alt-f` | Forward word |
| `alt-c` | Capitalize word |
| `alt-l` | Lowercase word |
| `alt-u` | Uppercase word |
| `alt-d` | Kill word |
| `alt-n` | History search forward |
| `alt-p` | History search backward |
| `alt-t` | Transpose words |
| `ctrl-a` | To the beginning of line |
| `ctrl-e` | To the end of line |
| `ctrl-b` | Backward char |
| `ctrl-f` | Forward char |
| `ctrl-d` | Delete char |
| `ctrl-h` | Backward delete char |
| `ctrl-t` | Transpose chars |
| `ctrl-i` | Invoke completion |
| `ctrl-j` | Submit a query |
| `ctrl-m` | Submit a query |
| `ctrl-k` | Kill the line to the right from the cursor |
| `ctrl-w` | Kill the line to the left from the cursor |
| `ctrl-u` | Kill the whole line |
| `ctrl-l` | Clear screen |
| `ctrl-n` | Down line from history |
| `ctrl-p` | Up line from history |
| `ctrl-r` | History incremental search backward |
| `ctrl-s` | History incremental search forward |


[1] 
https://github.com/jline/jline3/blob/997496e6a6338ca5d82c7dec26f32cf089dd2838/reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java#L5907



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to