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

add pre / post completion 'hooks' #1581

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elbeardmorez
Copy link

@elbeardmorez elbeardmorez commented May 17, 2019

Hi,

Thanks for your excellent project!

I hit an issue with terminal text corruption in the completion output when moving (up/down) through the initial completion. It appeared like the set that fzf was iterating through was 'one off' that displayed on the screen. This left some nasty artifacts and made it difficult to read what was currently selected.

This turned out to be due to zsh's builtin 'timing statistics' outputting on the first line. The sledgehammer disabling of that feature wasn't palatable and hence this PR which, as per the example added to the README.md allows me to tune the environment pre and post fzf execution.

I duplicated what I only really needed for zsh, to the completion.bash script too ..the changes appear (TM) to do what I want them to do ..you are clearly in a better position to determine side-affects ..I've only been using fzf a day or so.

Cheers.

-remove duplicate FZF_DEFAULT_OPTS reference
-add completion specific section
-evaluate new FZF_COMPLETION_PRE/POST_CMDS env vars to facilitate
any necessary, temporary, tuning of the environment
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.

1 participant