mooz / percol

adds flavor of interactive filtering to the traditional pipe concept of UNIX shell
3.3k stars 145 forks source link

Problem binding C-j and RET #80

Closed guiniol closed 9 years ago

guiniol commented 9 years ago

When I rebind C-j, the binding for RET is also changed. When I bind RET, neither binding is changed.

REPRODUCE CASE 1: Put this in ~/.percol.d/rc.py:

percol.import_keymap({
    "C-j" : lambda percol: percol.command.select_next(),
})

While using percol, press RET

Expected result: selected entry is printed to stdout (default RET binding) Actual result: the next entry becomes selected

REPRODUCE CASE 2: Put this in ~/.percol.d/rc.py:

percol.import_keymap({
    "RET" : lambda percol: percol.command.select_next(),
})

While using percol, press RET

Expected result: the next entry becomes selected Actual result: selected entry is printed to stdout (default C-j binding)

guiniol commented 9 years ago

Wow. Awesome! Thanks.

guiniol commented 9 years ago

Actually, RET doesn't seem to work at all anymore, opened issue #81