Changeset 435d6b2
- Timestamp:
- Jul 17, 2009, 10:42:58 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- b4ef908
- Parents:
- 2f2a643
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r2fc8397 r435d6b2 916 916 "", ""), 917 917 918 OWLCMD_VOID_CTX("edit multi:move-up-line", owl_editwin_key_up,918 OWLCMD_VOID_CTX("edit:move-up-line", owl_editwin_key_up, 919 919 OWL_CTX_EDITMULTI, 920 920 "moves the cursor up one line", 921 921 "", ""), 922 922 923 OWLCMD_VOID_CTX("edit multi:move-down-line", owl_editwin_key_down,923 OWLCMD_VOID_CTX("edit:move-down-line", owl_editwin_key_down, 924 924 OWL_CTX_EDITMULTI, 925 925 "moves the cursor down one line", 926 926 "", ""), 927 927 928 OWLCMD_VOID_CTX("edit multi:done", owl_command_editmulti_done,928 OWLCMD_VOID_CTX("edit:done", owl_command_edit_done, 929 929 OWL_CTX_EDITMULTI, 930 930 "completes the command (eg, sends message being composed)", 931 931 "", ""), 932 932 933 OWLCMD_VOID_CTX("edit multi:done-or-delete", owl_command_editmulti_done_or_delete,933 OWLCMD_VOID_CTX("edit:done-or-delete", owl_command_edit_done_or_delete, 934 934 OWL_CTX_EDITMULTI, 935 935 "completes the command, but only if at end of message", 936 936 "", 937 937 "If only whitespace is to the right of the cursor,\n" 938 "runs 'edit multi:done'.\n"\938 "runs 'edit:done'.\n"\ 939 939 "Otherwise runs 'edit:delete-next-char'\n"), 940 940 941 OWLCMD_VOID_CTX("edit multi:forward-paragraph", owl_editwin_forward_paragraph,941 OWLCMD_VOID_CTX("edit:forward-paragraph", owl_editwin_forward_paragraph, 942 942 OWL_CTX_EDITMULTI, 943 943 "Move forward to end of paragraph.", … … 945 945 "Move the point to the end of the current paragraph"), 946 946 947 OWLCMD_VOID_CTX("edit multi:backward-paragraph", owl_editwin_backward_paragraph,947 OWLCMD_VOID_CTX("edit:backward-paragraph", owl_editwin_backward_paragraph, 948 948 OWL_CTX_EDITMULTI, 949 949 "Move backward to the start of paragraph.", … … 2791 2791 2792 2792 2793 void owl_command_edit multi_done(owl_editwin *e)2793 void owl_command_edit_done(owl_editwin *e) 2794 2794 { 2795 2795 owl_history *hist=owl_editwin_get_history(e); … … 2806 2806 } 2807 2807 2808 void owl_command_edit multi_done_or_delete(owl_editwin *e)2808 void owl_command_edit_done_or_delete(owl_editwin *e) 2809 2809 { 2810 2810 if (owl_editwin_is_at_end(e)) { 2811 owl_command_edit multi_done(e);2811 owl_command_edit_done(e); 2812 2812 } else { 2813 2813 owl_editwin_delete_char(e); -
editwin.c
r72ab15f r435d6b2 1220 1220 /* XXX force a redisplay? */ 1221 1221 if ((j.ch==13 || j.ch==10) && owl_editwin_check_dotsend(e)) { 1222 owl_command_edit multi_done(e);1222 owl_command_edit_done(e); 1223 1223 return; 1224 1224 } -
keys.c
r2fc8397 r435d6b2 103 103 owl_keymap_set_submap(km_ew_multi, km_editwin); 104 104 105 BIND_CMD("UP", "edit multi:move-up-line", "");106 BIND_CMD("M-[ A", "edit multi:move-up-line", "");107 BIND_CMD("C-p", "edit multi:move-up-line", "");108 BIND_CMD("DOWN", "edit multi:move-down-line", "");109 BIND_CMD("M-[ B", "edit multi:move-down-line", "");110 BIND_CMD("C-n", "edit multi:move-down-line", "");111 112 BIND_CMD("M-}", "edit multi:forward-paragraph", "");113 BIND_CMD("M-{", "edit multi:backward-paragraph", "");105 BIND_CMD("UP", "edit:move-up-line", ""); 106 BIND_CMD("M-[ A", "edit:move-up-line", ""); 107 BIND_CMD("C-p", "edit:move-up-line", ""); 108 BIND_CMD("DOWN", "edit:move-down-line", ""); 109 BIND_CMD("M-[ B", "edit:move-down-line", ""); 110 BIND_CMD("C-n", "edit:move-down-line", ""); 111 112 BIND_CMD("M-}", "edit:forward-paragraph", ""); 113 BIND_CMD("M-{", "edit:backward-paragraph", ""); 114 114 115 115 /* This would be nice, but interferes with C-c to cancel */ 116 /*BIND_CMD("C-c C-c", "edit multi:done", "sends the zephyr");*/116 /*BIND_CMD("C-c C-c", "edit:done", "sends the zephyr");*/ 117 117 118 118 BIND_CMD("M-p", "edit:history-prev", ""); … … 121 121 /* note that changing "disable-ctrl-d" to "on" will change this to 122 122 * edit:delete-next-char */ 123 BIND_CMD("C-d", "edit multi:done-or-delete", "sends the zephyr if at the end of the message");123 BIND_CMD("C-d", "edit:done-or-delete", "sends the zephyr if at the end of the message"); 124 124 125 125
Note: See TracChangeset
for help on using the changeset viewer.