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

Blink cursor at top right corner's fzf floating window? #1448

Open
5 tasks done
tmpm697 opened this issue Jan 1, 2023 · 2 comments
Open
5 tasks done

Blink cursor at top right corner's fzf floating window? #1448

tmpm697 opened this issue Jan 1, 2023 · 2 comments

Comments

@tmpm697
Copy link

tmpm697 commented Jan 1, 2023

Should happen with every kind of config, step:

  1. open nvim
  2. start one of supported commands, i.e: :Files or :Buffers
  3. observe blink cursor at top right left corner's fzf floating window -- I think that block of cursor appear in event of creating floating window and disappear right after the floating window is created but It does cause some disruptions to user while using.

Can we hide/disable that cursor at startup of floating window invoked by fzf.vim commands?

EDIT: it's top left (not top right)

@junegunn
Copy link
Owner

junegunn commented Jan 2, 2023

3. top right corner's

Is it top right or top left? In my case, I'm seeing the cursor at the top-left corner. Anyway, if we're talking about the same thing, hiding the cursor before starting fzf seems to help a little. But I wonder if there's a better way.

(The main fzf plugin file)

diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 7d4d8fe..dd59cd9 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -892,7 +892,7 @@ function! s:execute_term(dict, command, temps) abort
       call s:writefile(s:wrap_cmds(a:command), fzf.temps.batchfile)
       let command = fzf.temps.batchfile
     else
-      let command = a:command
+      let command = "echo $'\\x1b[?25l';".a:command
     endif
     let command .= s:term_marker
     if has('nvim')

@tmpm697
Copy link
Author

tmpm697 commented Jan 2, 2023

It's top left corner (edit 1st post)

yes, hiding cursor before starting fzf seems help but it now happens randomly I think, I can see that if I try to run commands serveral times, sometime I'll get that cursor block again.

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

No branches or pull requests

2 participants