C-j for printing input rather than the candidate. - iomenu - interactive terminal-based selection menu
 (HTM) git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d039d19d82cc89665d453180d25007bf2329c3e6
 (DIR) parent e01fa60f7992641ba6f3f5109dec6783e397a248
 (HTM) Author: Josuah Demangeonā  ā µ <mail@josuah.net>
       Date:   Tue,  4 Apr 2017 00:07:11 +0200
       
       C-j for printing input rather than the candidate.
       
       Diffstat:
         M iomenu.1                            |       5 ++++-
         M iomenu.c                            |       4 ++++
       
       2 files changed, 8 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/iomenu.1 b/iomenu.1
       @@ -52,9 +52,12 @@ An active selection is highlighted, and can be controlled with keybindings.
        .It Ic ^P Ns , Ic ^N
        Move selection to the previous/next item.
        .
       -.It Ic ^M Ns , Ic ^J Ns , Ic Enter
       +.It Ic ^M Ns , Ic Enter
        Print the selection to the standard output, and exit 0.
        .
       +.It Ic ^J
       +Print the current input to the standard output, and exit 0.
       +.
        .It Ic ^Y
        Print the selection to the standard output but
        .Sy continue running .
 (DIR) diff --git a/iomenu.c b/iomenu.c
       @@ -413,6 +413,10 @@ input_key(void)
                        break;
        
                case CONTROL('J'):
       +                fputws(input, stdout);
       +                putwchar('\n');
       +                return EXIT_SUCCESS;
       +
                case CONTROL('M'):  /* enter */
                        print_selection();
                        return EXIT_SUCCESS;