module VER options.horizontal_scrollbar = false options.vertical_scrollbar = false aliases = Hash.new{|h,k| k } major_mode :Fundamental do use :control end major_mode :MiniBuffer do use :basic, :readline map :abort, '', '', '' map :attempt, '' map :complete_small, '' end major_mode :HoverCompletion do use :basic map :cancel, '', '' map :continue_completion, '', '' map :go_down, '', '' map :go_up, '', '' map :submit, '' end minor_mode :readline do map :accept_line, '' map :last_char, '', '' map :insert_selection, '' map :insert_tab, '' map :kill_end_of_line, '' map :kill_next_char, '', '' map :kill_next_word, '' map :kill_prev_char, '' map :kill_prev_word, '' map :next_char, '', '' map :next_word, '', '' map :prev_char, '', '' map :prev_word, '', '' map :start_of_line, '', '' map :transpose_chars, '' missing :insert_string end minor_mode :basic do map :quit, '' end minor_mode :control do inherits :basic become :ascii_digit, '' map :start_select_char_mode, '' map :undo, '' map :redo, '' map :save, '', '' handler Methods::Help map :nano, '', '' handler Methods::Layout map :close, '', '' map :focus_prev, '', '' map :focus_next, '', '' handler Methods::Control map :wrap_line, '', '' map :unindent_line, '' handler Methods::Insert map :file, '', '' missing :string handler Methods::Search map :status_next, '', '' map :again, '', '' handler :at_insert map :ask_go_line, '', '' map :backward_scroll, '', '' map :end_of_buffer, '', '' map :last_char, '', '' map :forward_scroll, '', '' map :indent_line, '' map :kill_line, '', '' map :matching_brace, '' map :next_char, '', '' map :next_line, '', '' map :next_page, '', '' map :next_word, '', '' map :prev_char, '', '' map :prev_line, '', '' map :prev_page, '', '' map :prev_word, '', '' map :start_of_buffer, '', '' map [:killing, :end_of_buffer], '' map [:killing, :prev_char], '' map [:killing, :next_char], '' map :newline, '', '' # M-( (M-9) Go to beginning of paragraph; then of previous paragraph map :start_of_paragraph, '', '' # M-) (M-0) Go just beyond end of paragraph; then of next paragraph map :end_of_paragraph, '', '' handler Methods::SearchAndReplace map :query, '', '', '' handler Methods::Clipboard map :paste, '', '' map :copy_line, '' handler Methods::Nano map :verbatim, ['', :verbatim] map :home, '', '' map :suspend, '' map :redraw, '' map :toggle_help_mode, '' map :toggle_cursor_pos, '' map :toggle_one_more_line, '' map :toggle_smooth_scrolling, '' map :toggle_whitespace_display, '' map :toggle_color_syntax_highlighting, '' map :toggle_smart_home_key, '' map :toggle_auto_indent, '' map :toggle_cut_to_end, '' map :toggle_long_line_wrapping, '' map :toggle_convert_typed_tabs_to_spaces, '' map :toggle_backup_files, '' map :toggle_multiple_file_buffers, '' map :toggle_mouse, '' map :toggle_dos_mac_format_conversion, '' map :toggle_suspension, '' map :toggle_soft_line_wrapping, '' ## Missing # M-J Justify the entire file # M-D Count the number of words, lines, and characters # ^C (F11) Display the position of the cursor # ^T (F12) Invoke the spell checker, if available # ^^ (F15) (M-A) Mark text at the cursor position end minor_mode :verbatim do handler Methods::Nano # try mapping all possible Control-Key combinations. map :verbatim_insert, "" missing :verbatim_insert end minor_mode :ascii_digit do handler Methods::Nano enter :ascii_enter leave :ascii_leave map :ascii, *(''..'') end end