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

Inputrc mode conditions not handled #624

Closed
DirtYiCE opened this issue Dec 30, 2023 · 0 comments · Fixed by #687
Closed

Inputrc mode conditions not handled #624

DirtYiCE opened this issue Dec 30, 2023 · 0 comments · Fixed by #687
Labels
enhancement New feature or request

Comments

@DirtYiCE
Copy link

Description

I just updated to ruby 3.3.0 and got this thing instead of readline, and I immediately ran into a few issues.

  1. As far as I can see, it doesn't even attempt to parse /etc/inputrc, which is also a standard location.
  2. Condition support is lacking. Here it looks like it treats almost everything as false:
    when 'mode'
    . This also means that is skips most of the standard gentoo inputrc which is inside a $if mode=emacs ... $endif, so for example no history search mapped to Page up/down.

Minimized inputrc that shows the problem:

$if mode=emacs
# map "page up" and "page down" to search history based on current cmdline
"\e[5~": history-search-backward
"\e[6~": history-search-forward
$endif

What are your expected behavior

It works like readline if this expected to be a drop-in replacement.

actual behavior of your environment?

It's practically unusable without making a reline specific inputrc and making sure I only export INPUTRC for ruby processes.

Terminal Emulator

urxvt + tmux

@ima1zumi ima1zumi added the enhancement New feature or request label Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

2 participants