-
Notifications
You must be signed in to change notification settings - Fork 709
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
right prompt #237
Comments
Prompt-toolkit doesn't support this RPROMPT yet, but we can definitely implement that. It's an interesting feature. I just tried RPROMPT in zsh, and it seems that it is hidden when the text flows over it. Is that what you would expect? We can probably implement that in the default layout from prompt_toolkit.shortcuts by adding a right aligned float. One that is only displayed if the underlying region is still empty. Are there any other variations to this RPROMPT, known in other shells? Maybe we need a more generic, universal solution, that is more flexible than what I currently have in mind. Jonathan |
Hi @jonathanslenders RPROPMT is totally new to me. The first I have heard of it has been from @arkhan. I agree that the implementation is way easier if you allow it to be overwritten when the input becomes too long. Is this what you were expecting @arkhan? |
if the idea is to have separate prompt, left and right |
Hi all, rprompt has been added to prompt-toolkit. It's commited to the master branch. |
cool, but how to instegrate in xonsh...? |
Thanks @jonathanslenders! @arkhan this is something that will need to be changed in |
@jonathanslenders I have now implemented what I believe are the correct hooks in xonsh/xonsh#696 |
Thanks again! |
+1 |
Ok, closing this. A new release should follow one of these days. |
This is a feature request that we got over at xonsh/xonsh#674 that I thought I would pass along. Apparently, zsh and others have an "RPROMPT" or right prompt ability. I realize that this may be out of scope, but we'd certainly use it in xonsh if PTK supported it. Maybe @arkhan can add more?
The text was updated successfully, but these errors were encountered: