00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "sys.h"
00013 #include "el.h"
00014 el_private const struct ElBindings_t el_func_help[] = {
00015 { "vi-paste-next", VI_PASTE_NEXT,
00016 "Vi paste previous deletion to the right of the cursor" },
00017 { "vi-paste-prev", VI_PASTE_PREV,
00018 "Vi paste previous deletion to the left of the cursor" },
00019 { "vi-prev-space-word", VI_PREV_SPACE_WORD,
00020 "Vi move to the previous space delimited word" },
00021 { "vi-prev-word", VI_PREV_WORD,
00022 "Vi move to the previous word" },
00023 { "vi-next-space-word", VI_NEXT_SPACE_WORD,
00024 "Vi move to the next space delimited word" },
00025 { "vi-next-word", VI_NEXT_WORD,
00026 "Vi move to the next word" },
00027 { "vi-change-case", VI_CHANGE_CASE,
00028 "Vi change case of character under the cursor and advance one character" },
00029 { "vi-change-meta", VI_CHANGE_META,
00030 "Vi change prefix command" },
00031 { "vi-insert-at-bol", VI_INSERT_AT_BOL,
00032 "Vi enter insert mode at the beginning of line" },
00033 { "vi-replace-char", VI_REPLACE_CHAR,
00034 "Vi replace character under the cursor with the next character typed" },
00035 { "vi-replace-mode", VI_REPLACE_MODE,
00036 "Vi enter replace mode" },
00037 { "vi-substitute-char", VI_SUBSTITUTE_CHAR,
00038 "Vi replace character under the cursor and enter insert mode" },
00039 { "vi-substitute-line", VI_SUBSTITUTE_LINE,
00040 "Vi substitute entire line" },
00041 { "vi-change-to-eol", VI_CHANGE_TO_EOL,
00042 "Vi change to end of line" },
00043 { "vi-insert", VI_INSERT,
00044 "Vi enter insert mode" },
00045 { "vi-add", VI_ADD,
00046 "Vi enter insert mode after the cursor" },
00047 { "vi-add-at-eol", VI_ADD_AT_EOL,
00048 "Vi enter insert mode at end of line" },
00049 { "vi-delete-meta", VI_DELETE_META,
00050 "Vi delete prefix command" },
00051 { "vi-end-word", VI_END_WORD,
00052 "Vi move to the end of the current space delimited word" },
00053 { "vi-to-end-word", VI_TO_END_WORD,
00054 "Vi move to the end of the current word" },
00055 { "vi-undo", VI_UNDO,
00056 "Vi undo last change" },
00057 { "vi-command-mode", VI_COMMAND_MODE,
00058 "Vi enter command mode (use alternative key bindings)" },
00059 { "vi-zero", VI_ZERO,
00060 "Vi move to the beginning of line" },
00061 { "vi-delete-prev-char", VI_DELETE_PREV_CHAR,
00062 "Vi move to previous character (backspace)" },
00063 { "vi-list-or-eof", VI_LIST_OR_EOF,
00064 "Vi list choices for completion or indicate end of file if empty line" },
00065 { "vi-kill-line-prev", VI_KILL_LINE_PREV,
00066 "Vi cut from beginning of line to cursor" },
00067 { "vi-search-prev", VI_SEARCH_PREV,
00068 "Vi search history previous" },
00069 { "vi-search-next", VI_SEARCH_NEXT,
00070 "Vi search history next" },
00071 { "vi-repeat-search-next", VI_REPEAT_SEARCH_NEXT,
00072 "Vi repeat current search in the same search direction" },
00073 { "vi-repeat-search-prev", VI_REPEAT_SEARCH_PREV,
00074 "Vi repeat current search in the opposite search direction" },
00075 { "vi-next-char", VI_NEXT_CHAR,
00076 "Vi move to the character specified next" },
00077 { "vi-prev-char", VI_PREV_CHAR,
00078 "Vi move to the character specified previous" },
00079 { "vi-to-next-char", VI_TO_NEXT_CHAR,
00080 "Vi move up to the character specified next" },
00081 { "vi-to-prev-char", VI_TO_PREV_CHAR,
00082 "Vi move up to the character specified previous" },
00083 { "vi-repeat-next-char", VI_REPEAT_NEXT_CHAR,
00084 "Vi repeat current character search in the same search direction" },
00085 { "vi-repeat-prev-char", VI_REPEAT_PREV_CHAR,
00086 "Vi repeat current character search in the opposite search direction" },
00087 { "em-delete-or-list", EM_DELETE_OR_LIST,
00088 "Delete character under cursor or list completions if at end of line" },
00089 { "em-delete-next-word", EM_DELETE_NEXT_WORD,
00090 "Cut from cursor to end of current word" },
00091 { "em-yank", EM_YANK,
00092 "Paste cut buffer at cursor position" },
00093 { "em-kill-line", EM_KILL_LINE,
00094 "Cut the entire line and save in cut buffer" },
00095 { "em-kill-region", EM_KILL_REGION,
00096 "Cut area between mark and cursor and save in cut buffer" },
00097 { "em-copy-region", EM_COPY_REGION,
00098 "Copy area between mark and cursor to cut buffer" },
00099 { "em-gosmacs-traspose", EM_GOSMACS_TRASPOSE,
00100 "Exchange the two characters before the cursor" },
00101 { "em-next-word", EM_NEXT_WORD,
00102 "Move next to end of current word" },
00103 { "em-upper-case", EM_UPPER_CASE,
00104 "Uppercase the characters from cursor to end of current word" },
00105 { "em-capitol-case", EM_CAPITOL_CASE,
00106 "Capitalize the characters from cursor to end of current word" },
00107 { "em-lower-case", EM_LOWER_CASE,
00108 "Lowercase the characters from cursor to end of current word" },
00109 { "em-set-mark", EM_SET_MARK,
00110 "Set the mark at cursor" },
00111 { "em-exchange-mark", EM_EXCHANGE_MARK,
00112 "Exchange the cursor and mark" },
00113 { "em-universal-argument", EM_UNIVERSAL_ARGUMENT,
00114 "Universal argument (argument times 4)" },
00115 { "em-meta-next", EM_META_NEXT,
00116 "Add 8th bit to next character typed" },
00117 { "em-toggle-overwrite", EM_TOGGLE_OVERWRITE,
00118 "Switch from insert to overwrite mode or vice versa" },
00119 { "em-copy-prev-word", EM_COPY_PREV_WORD,
00120 "Copy current word to cursor" },
00121 { "em-inc-search-next", EM_INC_SEARCH_NEXT,
00122 "Emacs incremental next search" },
00123 { "em-inc-search-prev", EM_INC_SEARCH_PREV,
00124 "Emacs incremental reverse search" },
00125 { "em-undo", EM_UNDO,
00126 "Emacs undo last change" },
00127 { "ed-end-of-file", ED_END_OF_FILE,
00128 "Indicate end of file" },
00129 { "ed-insert", ED_INSERT,
00130 "Add character to the line" },
00131 { "ed-delete-prev-word", ED_DELETE_PREV_WORD,
00132 "Delete from beginning of current word to cursor" },
00133 { "ed-delete-next-char", ED_DELETE_NEXT_CHAR,
00134 "Delete character under cursor" },
00135 { "ed-kill-line", ED_KILL_LINE,
00136 "Cut to the end of line" },
00137 { "ed-move-to-end", ED_MOVE_TO_END,
00138 "Move cursor to the end of line" },
00139 { "ed-move-to-beg", ED_MOVE_TO_BEG,
00140 "Move cursor to the beginning of line" },
00141 { "ed-transpose-chars", ED_TRANSPOSE_CHARS,
00142 "Exchange the character to the left of the cursor with the one under it" },
00143 { "ed-next-char", ED_NEXT_CHAR,
00144 "Move to the right one character" },
00145 { "ed-prev-word", ED_PREV_WORD,
00146 "Move to the beginning of the current word" },
00147 { "ed-prev-char", ED_PREV_CHAR,
00148 "Move to the left one character" },
00149 { "ed-quoted-insert", ED_QUOTED_INSERT,
00150 "Add the next character typed verbatim" },
00151 { "ed-digit", ED_DIGIT,
00152 "Adds to argument or enters a digit" },
00153 { "ed-argument-digit", ED_ARGUMENT_DIGIT,
00154 "Digit that starts argument" },
00155 { "ed-unassigned", ED_UNASSIGNED,
00156 "Indicates unbound character" },
00157 { "ed-tty-sigint", ED_TTY_SIGINT,
00158 "Tty interrupt character" },
00159 { "ed-tty-dsusp", ED_TTY_DSUSP,
00160 "Tty delayed suspend character" },
00161 { "ed-tty-flush-output", ED_TTY_FLUSH_OUTPUT,
00162 "Tty flush output characters" },
00163 { "ed-tty-sigquit", ED_TTY_SIGQUIT,
00164 "Tty quit character" },
00165 { "ed-tty-sigtstp", ED_TTY_SIGTSTP,
00166 "Tty suspend character" },
00167 { "ed-tty-stop-output", ED_TTY_STOP_OUTPUT,
00168 "Tty disallow output characters" },
00169 { "ed-tty-start-output", ED_TTY_START_OUTPUT,
00170 "Tty allow output characters" },
00171 { "ed-newline", ED_NEWLINE,
00172 "Execute command" },
00173 { "ed-delete-prev-char", ED_DELETE_PREV_CHAR,
00174 "Delete the character to the left of the cursor" },
00175 { "ed-clear-screen", ED_CLEAR_SCREEN,
00176 "Clear screen leaving current line at the top" },
00177 { "ed-redisplay", ED_REDISPLAY,
00178 "Redisplay everything" },
00179 { "ed-start-over", ED_START_OVER,
00180 "Erase current line and start from scratch" },
00181 { "ed-sequence-lead-in", ED_SEQUENCE_LEAD_IN,
00182 "First character in a bound sequence" },
00183 { "ed-prev-history", ED_PREV_HISTORY,
00184 "Move to the previous history line" },
00185 { "ed-next-history", ED_NEXT_HISTORY,
00186 "Move to the next history line" },
00187 { "ed-search-prev-history", ED_SEARCH_PREV_HISTORY,
00188 "Search previous in history for a line matching the current" },
00189 { "ed-search-next-history", ED_SEARCH_NEXT_HISTORY,
00190 "Search next in history for a line matching the current" },
00191 { "ed-replay-hist", ED_REPLAY_HIST,
00192 "Replay the current history line" },
00193 { "ed-prev-line", ED_PREV_LINE,
00194 "Move up one line" },
00195 { "ed-next-line", ED_NEXT_LINE,
00196 "Move down one line" },
00197 { "ed-command", ED_COMMAND,
00198 "Editline extended command" },
00199 { NULL, 0, NULL }
00200 };
00201
00202 el_protected const ElBindings_t*
00203 help__get() { return el_func_help; }