junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
62.31k stars 2.35k forks source link

action execute sudoedit: laggy input #3767

Open telychko opened 2 months ago

telychko commented 2 months ago

Checklist

Output of fzf --version

0.48.1 (9ffe951f)

OS

Shell

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 -- {} )'


2. Run the script `$ ./lag.sh`
3. Press Enter
4. Enter your user password to authorize sudo
5. 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.