Skip to content

Inputrc mode conditions not handled #624

Closed

Description

@DirtYiCE

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

Activity

  1. added
    enhancement
    on Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions