1 #ifndef __EDIT_CMD_DEF_H
2 #define __EDIT_CMD_DEF_H
4 /* in the distant future, keyboards will be invented with a
5 seperate key for each one of these commands *sigh* */
8 #define CK_No_Command -1
13 #define CK_Page_Down 5
16 #define CK_Word_Left 8
17 #define CK_Word_Right 9
24 #define CK_Beginning_Of_Text 16
25 #define CK_End_Of_Text 17
26 #define CK_Scroll_Up 18
27 #define CK_Scroll_Down 19
29 #define CK_Begin_Page 21
30 #define CK_End_Page 22
31 #define CK_Delete_Word_Left 23
32 #define CK_Delete_Word_Right 24
33 #define CK_Paragraph_Up 25
34 #define CK_Paragraph_Down 26
41 #define CK_Save_As 104
49 #define CK_Save_Block 207
51 /* search and replace */
53 #define CK_Find_Again 302
54 #define CK_Replace 303
55 #define CK_Replace_Again 304
58 #define CK_Insert_File 401
60 #define CK_Toggle_Insert 403
63 #define CK_Refresh 406
65 #define CK_Delete_Line 408
66 #define CK_Delete_To_Line_End 409
67 #define CK_Delete_To_Line_Begin 410
68 #define CK_Man_Page 411
72 #define CK_Complete 415
73 #define CK_Paragraph_Format 416
75 /* application control */
76 #define CK_Save_Desktop 451
77 #define CK_New_Window 452
80 #define CK_Save_And_Quit 455
81 #define CK_Run_Another 456
82 #define CK_Check_Save_And_Quit 457
85 #define CK_Begin_Record_Macro 501
86 #define CK_End_Record_Macro 502
87 #define CK_Delete_Macro 503
89 /* highlight commands */
90 #define CK_Page_Up_Highlight 604
91 #define CK_Page_Down_Highlight 605
92 #define CK_Left_Highlight 606
93 #define CK_Right_Highlight 607
94 #define CK_Word_Left_Highlight 608
95 #define CK_Word_Right_Highlight 609
96 #define CK_Up_Highlight 610
97 #define CK_Down_Highlight 611
98 #define CK_Home_Highlight 612
99 #define CK_End_Highlight 613
100 #define CK_Beginning_Of_Text_Highlight 614
101 #define CK_End_Of_Text_Highlight 615
102 #define CK_Begin_Page_Highlight 616
103 #define CK_End_Page_Highlight 617
104 #define CK_Scroll_Up_Highlight 618
105 #define CK_Scroll_Down_Highlight 619
106 #define CK_Paragraph_Up_Highlight 620
107 #define CK_Paragraph_Down_Highlight 621
109 /* X clipboard operations */
111 #define CK_XStore 701
113 #define CK_XPaste 703
114 #define CK_Selection_History 704
116 #ifdef MIDNIGHT /* cooledit now has its own full-featured script editor and executor */
118 Process a block through a shell command: CK_Pipe_Block(i) executes shell_cmd[i].
119 shell_cmd[i] must process the file ~/cooledit.block and output ~/cooledit.block
120 which is then inserted into the text in place of the original block. shell_cmd[i] must
121 also produce a file homedir/cooledit.error . If this file is not empty an error will
122 have been assumed to have occured, and the block will not be replaced.
123 TODO: bring up a viewer to display the error message instead of inserting
124 it into the text, which is annoying.
126 #define CK_Pipe_Block(i) (1000+(i))
127 #define SHELL_COMMANDS_i {"/.cedit/edit.indent.rc", "/.cedit/edit.spell.rc", /* and so on */ 0};
129 #define CK_User_Command(i) (1000+(i))
132 /* execute a macro */
133 #define CK_Macro(i) (2000+(i))
134 #define CK_Last_Macro CK_Macro(0x7FFF)