Skip to content
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

Use fzf-redraw-prompt in history widget #2077

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jcassee
Copy link

@jcassee jcassee commented Jun 9, 2020

I am using Powerlevel10k. When I use fzf-tmux with the history widget, it corrupts my prompt. After selecting from the widget, the command is printed, but it seems the cursor position is wrong. After typing anything, the command is duplicated like this:

❯ echo fooecho foo

Using fzf-redraw-prompt for the history widget fixes the problem.

@junegunn
Copy link
Owner

While installing Powerlevel10k, I noticed there are a bunch of options that one has to choose, and in the end, I couldn't reproduce the problem you described with my set of options. Please provide a minimal configuration file that can reproduce the issue.

@romkatv
Copy link
Contributor

romkatv commented Jun 25, 2020

@jcassee Can you reproduce this problem if you disable Powerlevel10k and configure prompt like this?

PS1=$'%~\n'

@jcassee
Copy link
Author

jcassee commented Jun 28, 2020

@romkatv With Powerlevel10k disabled, the behavior is normal again.

But! If I load the default config that also fixes the problem. I tried disabling all prompt elements, but that did not change anything. I will investigate further.

@garodriguezlp
Copy link

garodriguezlp commented Aug 22, 2020

@jcassee I'm experiencing the same issue... but, as you can see in the short clip, it does not happen always 😕

At the time of this writing, this is how my p10k.zsh config looks

Kapture 2020-08-22 at 17 18 11

Update: After having written this message, I tried your solution and seems to fix it 🎉 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants