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

Tab completion needs a workaround for macOS #26

Open
Debilski opened this issue Sep 30, 2023 · 1 comment
Open

Tab completion needs a workaround for macOS #26

Debilski opened this issue Sep 30, 2023 · 1 comment

Comments

@Debilski
Copy link
Member

See python/cpython#102130

[…] the Homebrew community has switched to libedit readline as of Python 3.11. There exists a gnureadline package which allows one to continue using the gnu readline, but unfortunately cmd.py will continue to use the libedit one, and that doesn't always work properly.

@Debilski
Copy link
Member Author

Workaround: Add to cmd_completer.py

if 'libedit' in readline.__doc__:
    readline.parse_and_bind("bind ^I rl_complete")
else:
    readline.parse_and_bind("tab: complete")

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

1 participant