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
Autosuggestions do not appear when cursor passes the fish_right_prompt #6948
Comments
I think this was originally by design, although I can no longer remember the rationale. If someone would like to tackle this, screen.cpp |
I have been interested in trying to make a contribution and via some debugging have small idea of how the layout computation works. I saw this code in screen.cpp:
which explains why autosuggestions are not shown because rendering option (3) is happening. @ridiculousfish is the suggestion to add another option that would sit between 2 and 3? IE Left prompt visible, right prompt hidden, command line visible, autosuggestion visible On a side-note the comment for (4) suggests autosuggestions should be displayed when the command line extends across multiple-lines. My observation in the code and using fish is currently autosuggesions are omitted. Should I open another issue for that? |
Yeah that's the logic that computes the layout hierarchy. I think #4 is now a stale comment - we no longer push the command to a new line if it grows too long. |
Hi, when I have a
fish_right_prompt
that is very long and type a command that overlaps it, the right prompt disappears (as expected!), but the autosuggestions on the command line stop appearing, as well.Here is an example of what I'm trying to do:
At a higher level, I'm trying to create a prompt that shows a "ghost" of
$PWD
until the user types (please let me know if there's a better way to do this!):Many thanks!
The text was updated successfully, but these errors were encountered: