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

Error: Unsupported-key: backward-eof #4096

Open
5 of 10 tasks
Anon258 opened this issue Nov 15, 2024 · 1 comment
Open
5 of 10 tasks

Error: Unsupported-key: backward-eof #4096

Anon258 opened this issue Nov 15, 2024 · 1 comment

Comments

@Anon258
Copy link

Anon258 commented Nov 15, 2024

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.20.0

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

I am using Ubuntu 20.04 WSL, for which fzf 0.20.0 is the latest version according to apt package manager.
When doing an fzf query, I get this error "unsupported key: backward-eof" due to one of the local-binds. I believe this problem can be fixed if I can remove eof key from my local binds, is there a way to do that? Or any other way to fix this?

I cannot upgrade my Ubuntu version due to company tools and restrictions

@Anon258 Anon258 changed the title Unsupported-key: backward-eof Error: Unsupported-key: backward-eof Nov 15, 2024
@LangLangBart
Copy link
Contributor

The issue is reproducible when assigning the backward-eof event to an action in Ubuntu 20.04.

docker run --tty --interactive --rm --privileged ubuntu:20.04 sh -uec ' 
apt-get update && apt-get install -y fzf
echo "export FZF_DEFAULT_OPTS=\"--bind backward-eof:abort\"" > ~/.bashrc
/bin/bash'

According to the changelog, the event was added in 0.22.012.

I believe this problem can be fixed if I can remove eof key from my local binds, is there a way to do that? Or any other way to fix this?

Can you try adjusting your FZF_DEFAULT_OPTS?

Footnotes

  1. fzf/CHANGELOG.md · junegunn/fzf · GitHub

  2. Add backward-eof event for --bind · junegunn/fzf@a7aa08c · GitHub

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