action execute sudoedit: laggy input
telychko opened this issue · 0 comments
telychko commented
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
- Make bash script file
lag.sh
with following content
#!/bin/bash
echo /etc/fstab | fzf --bind='enter:execute( sudoedit -- {} )'
- Run the script
$ ./lag.sh
- Press Enter
- Enter your user password to authorize sudo
- 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.