junegunn/fzf

action execute sudoedit: laggy input

telychko opened this issue · 0 comments

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.48.1 (9ffe951)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

STEPS TO REPRODUCE

  1. Make bash script file lag.sh with following content
#!/bin/bash

echo /etc/fstab | fzf --bind='enter:execute( sudoedit -- {} )'
  1. Run the script $ ./lag.sh
  2. Press Enter
  3. Enter your user password to authorize sudo
  4. Press and hold an arrow key to see cursor moving. Play with the arrow keys. It's easiest way to see the lag. Actually during work, this lag is very notable.

ACTUAL RESULTS
Cursor is stuttering, sometimes for very long time.