-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line continuation support #26
Comments
Hello. What you are talking right now is multiline editing. The work would have to start with fixing #6, or maybe a new issue should be Only after that multiline editing (or continuation editing as you call it) should be added. Hope that answers your question. Regards. |
I've cloned the code and I'm looking at it. If I get anywhere with #6 (as that would also be useful for my project), I'll certainly share it |
Any news about this feature? |
Replxx code base has been cleaned up so work on new major feature like multiline editing could be started. I would gladly accept pull requests implementing this feature. |
Great ! I could take a look, do you have an idea where to start? I don't really know the codebase yet. |
|
"Newlines could be bound to Shift-Enter (as this combination can be distinguished from plain Enter on terminals)." Alternatively Alt-Enter, which is used by fish shell |
According to the README.md: single-line and multi-line editing mode with the usual key bindings implemented What is the "multi-line editing mode", and how is it different to "line continuation support"? |
Hello. |
@AmokHuginnsson This is pure awesome! I've started using it for a couple of hours now. However, there is one tiny issue: when moving cursors fast enough (word movements), replxx seems rendering a bit slow. I can visibly experience text "jittering". Maybe we can improve the performance somehow? |
I think we could partially skip |
Cool! It's indeed better. Though some movements are still glitchy. Good: Word-Left, Home, End Btw, it seems we don't handle multiple lines properly which cannot be filled in one screen. I guess it's ok for the moment) |
In what ways are they glitchy? |
Oh, I know how |
I tried to make some screencast but it's not enough to capture the issue.... It's a visible text re-rendering when moving cursors right by word. It's interesting that moving left is perfectly fine. |
|
By any chance, when you are moving right by word, do you land on an opening bracket/parenthesis, e.g. input:
? |
Sorry I missed your last reply. There isn't any opening bracket/parenthesis. I'll try to make clickhouse-client use the upstream version and have it test more widely. |
Please open a new issue when you find mode information about performance problems you are experiencing. Thank you. |
@AmokHuginnsson Do you think we should make |
@amosbird Yes, it would be consistent with how |
We also need to tune the behavior of
In fish-shell, when at the beginning of a line, pressing |
I implemented suggested change on current master.
|
That sounds interesting, though implementing it correctly sounds cumbersome, considering taking proper care of line wrapping (for overlong lines). |
I wonder if its better to indent wrapped parts or not from UX point of view... |
I have implemented first draft of extra indent in miltiline inputs feature. |
I feel that indenting wrapped parts is not good because user cannot easily tell apart lines.
I just tried it and it seems not so good. Moving cursors up and down will break the rendering. And I can move the cursor beyond the end of a given line. |
Can you give me the "input" and set of key strokes where the rendering is broken? |
Here is the input. It's braketed pasted into the buffer. Pressing
|
Oh, I thought you meant that rendering is broken for lines that fit in the terminal. |
Can you check current version? |
It's perfect! |
Heads up! |
Ok.. I've pushed the fix to the PR) |
@AmokHuginnsson Hi! I just found that when the multiple line content goes beyond the height of current terminal, going from bottom to top will not render the buffer from beginning but always shows the tail part. |
This + other reported issue related to very long lines seems difficult to fix properly to me. |
I ran into your library, which looks stunning (thank you), and was wondering if it supported line continuation. For example, my need requires that the user be able to "enter" and continue to the next line, with a numerical indicator of the line. Except for the builtin (help format, save, etc... ) commands are ended with a semi-colon ";" ... something like this ...
I haven't dug into the library yet, so I thought I'd ask before spending to much time. Any advice, example, or information you can provide would be greatly appreciated.
Thank you
The text was updated successfully, but these errors were encountered: