-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
multiline-input #1382
Comments
The directions will change depending on if you use --multiline-input or not. Without it:
With it on
So if you are on
What platform are you on? |
Windows Tested with CMD and Power shell . |
Ah, this is a feature of Window Terminal I wasn't aware of (and isn't tied to either the Command Prompt or PowerShell directly). The arrow keys I can fix. The history is a bit harder. Do you use the history feature? |
Of course I use the history why I wouldn't? In terninal , cmd or power shell is a very important feature. :) |
I use the history feature on the shell, it is very useful there, but I've never seen it used inside a program before. |
Your newest fix master-e6a46b0 not helped at all. :-/ |
No, nothing has changed. You can use f9a6364 in the meantime. |
I tested when that happened. master-41654ef …mode`) (#1040)
|
Yes, thank you. This was a feature specific to Windows Terminal (I believe Windows 11) only. When I add the arrows back in, it will work for everyone, but it could take a day or so with everything else that's going on right now. |
Regarding multiline input: Can't we simply use |
@maddes8cht I would love to make it use For what it's worth, |
I know basic c/c++, and the main.cpp doesn't look really complicated at first sight (except for the fact that everything is in a rather unstructured queue). However, I find it surprisingly difficult (but I haven't tried too hard) to find the place where the distinction of multiline input is processed, and finally the input of enter should be processed somewhere there as well. So I ask myself why it doesn't boil down to a simple query of the last two values. If at the end there is a combination of 0/13 or 224/13, then it was shift enter, if it is an alphanum and 13, then it was enter. |
I think that we need a better UI than ending the line with a |
@patrakov Finding two Also, I'm not saying it's the best solution, but it's not impossible to input C macros; you can just add a space to the end of any line that would otherwise end with The I know people have asked about One solution that is probably within reach is to just change it to |
@DannyDaemonic That's why the "unless inside the MarkDown block" suggestion. |
I would imagine it's also not uncommon to have two enters in a row outside of a code block as well. (If you're manually using an alpaca instruct model, it happens all the time.) The other issue is tracking if you're in a code block. Right now each line is stateless. Since you can intermix your generated text with your own text, I feel tracking something like that could get complicated. And again, I don't know how niche it is. |
I think the best will be fast double enter. |
Hmm, interesting approach, but it will trigger when someone pastes text into the terminal. Two I'm softening on the |
"almost instantly" is different than pressed twice enter by human. I think the proper code could recognize it easily ;) |
Few days past .. are you going to fix it? I will be appreciate |
Yeah, sorry. I caught COVID. I'm not dying or anything but it takes a lot out of me. It's still in my plans though. So don't worry, I haven't forgotten! |
Ok no problem ;P I had covid few mounts ago I know feeling .... |
2 weeks passed . |
Sorry, there's a not on github but it probably didn't go to your email. You can try out the patch at #1558. If you're only using the precompiled versions you'll have to wait for it to be reviewed and merged. |
Would be nice multi line input plus working arrows at the same time ... I just saying :P |
You can combine multiline with I also have a future PR that adds the arrows/controls back in along with some other additional features. If you do compile it yourself, I can probably post the PR as a draft for you to try out. |
Downloaded newest build binaries run main.exe with --simple-io <-- such parameter not exist ... |
Yeah, it has to be approved first. There's a bit of a process involved. |
Any improvements? |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
I'm testing newest build.
I have a stupid question as I added --multiline-input as parameter .
How to end of my input now?
Pressing enter just invoking a new line.
Also without that parameter I can invoke answer but arrows up and down are not working so I can not see my history questions.
Arrows left and right also not working so I can not correct my spelling mistakes .
All those things were working fine earlier.
The text was updated successfully, but these errors were encountered: