📄 readme
字号:
--no-xim Disable XIM support. -no-toolbar Edit windows do not have a toolbar. -m, --minimal-main-window This is used internally to create a new main window with one edit window when the user activates `New Main Window' from the Window menu. You can also use it to force the main window to be just large enough to hold all the sub-windows. -A, -save-setup Save options on exit (default). -P, -no-save-setup Don't save options on exit. -W, --whole-chars-search <chars> Characters that constitute a whole word when searching, default: 0-9a-z_ (typed out in full) -w, --whole-chars-move <chars> Characters that constitute a whole word when moving and deleting, default: 0-9a-z_; ,[](){} (typed out in full) -verbose Print info about X intialisation. -h, -H, -?, --help Print out commandline options summary. -V, -v, --version Print out version number.Commandline examples cooledit +10 hello.c -S -geom + Start cooledit with one file, with minimum 27 October 2001 5cooledit(1) cooledit(1) geometry, with cursor at line 10. cooledit hello.c program.c Start cooledit with two files, the file hello.c being the current file. The previous files are also loaded underneath these two files.MAILING LIST To join, email majordomo@mail.obsidian.co.za with the line subscribe cooledit in the body of the message. Patches, and anything you would like to say about cooledit, are welcome at cooledit@mail.obsidian.co.za .Features Cooledit supports multiple edit windows and has all the conveniences of MSW/MAC text editors. The interface has a beautiful 3D look and feel vaguely like Motif. It has an extensible file size limit of 64Mb and edits binary files flawlessly. Besides typical functions of a basic editor, cooledit has the following features: a builtin Python interpretor for Python programmability; spell-check as you type with red wavy lines; graphical C/C++ debugger; Key for key undo; shift-arrow text highlighting; macro record- ing; a generic shell execution facility that can be used to run make, sort or any user defined shell function on text or editor files; easy key redefinition; mouse text highlighting; XDND drag and drop; double-click on a gcc error message to go immediately to the file and line num- ber; desktop and cursor position memory; easy window cycling; comprehensive search and replace; input histo- ries; and lots more. The editor is very easy to use and requires no tutoring. To see what keys do what, just con- sult the appropriate pull-down menu. A complete set of key definitions follows.HINT MESSAGES Cooledit displays a new help message on the title bar every 2 minutes. All features not obvious from the user interface are documented by these hint messages, so read- ing them should be of considerable help to those who pre- fer not to read this man page. To look at the complete list of hint messages, see the HINTS file in the distribution, or look under the doc/cooledit-3.17.5 directory in your file-system.DEFAULT KEY DEFINITIONS Keys may be redefined using an easy to use key learner. 27 October 2001 6cooledit(1) cooledit(1) See the next section on how to get this to work. The following is a partial list of all default key bind- ings and their actions, for reference. You will probably never need to refer to it because most of the editor actions can be found in the menus. Note that F14 is analo- gous to Shift-F4 etc. Also be aware that on some machines, what X percieves as an Alt/Meta is actually some other modifier key (our Sun-Sparc uses the diamond key). Movement keys: Left left one char Right right one char Up up one line Down down one line Home beginning of line End end of line PgUp up one screen full PgDn down one screen full Ctrl-PgUp beginning of file Ctrl-PgDn end file Ctrl-Home beginning of page Ctrl-End end of page Ctrl-Left left one word Ctrl-Right right one word Ctrl-Up up one paragraph Ctrl-Down down one paragraph Meta/Alt-Up scroll up one line Meta/Alt-Down scroll down one line Highlight keys: Shift with any of the above keys will highlight at the same time. Column highlighting: Holding down the Control key while using the mouse to highlight text, will cause the highlighted text to be displayed in inverse colour. You will be able to select columns (arbitrary rectangles) of text and drag and drop them as usual. Input History: When editing an input line, Shift-Up or Shift-Down will bring up a history of previous inputs. Editing keys: Delete delete char to the right Backspace delete char to the left Meta/Alt-Del delete to line end Meta/Alt-Backspace delete to line begin Meta/Alt-Right delete word to the right Meta/Alt-Left delete word to the left F5 copy highlighted text to cursor F6 move highlighted text to cursor F8 delete highlighted text 27 October 2001 7cooledit(1) cooledit(1) Ctrl-y delete line Shift-Enter insert a newline Enter insert a newline with auto indent (default) Tab insert a tab (see options menu) Insert toggle insert/overwrite Ctrl-q quote - the next key pressed will be interpreted as a literal Undo: Ctrl-u Ctrl-Backspace File Ctrl-F1 man page F2 save F12 or Shift-F2 save as Ctrl-o load Ctrl-n new Ctrl-f save highlighted text as Shift-F5 or F15 insert file at cursor Mark: F3 toggle highlight Ctrl-b toggle highlight columns Search and replace: F7 search F17 or Shift-F7 search again F4 replace F14 or Shift-F4 replace again X Clipboard: Ctrl-Ins copy to clipboard Shift-Ins paste to clipboard Shift-Delete cut to clipboard Ctrl-Delete delete highlighted text Meta/Alt-Ins insert from selection history General: F10 exit (current editor) Ctrl-F3 new edit window Shift-F3 new main window Alt-F6 maximise the window Ctrl-F6 window cycle Ctrl-F10 exit application Meta/Alt-x save all and exit Ctrl-F2 save state of desktop Ctrl-d insert date and time Meta/Alt-l goto line number Meta/Alt-F7 run make Meta/Alt-t sort 27 October 2001 8cooledit(1) cooledit(1) Ctrl-r start/end record macro Ctrl-a execute macro Ctrl-p spell check highlighted text Shift-F9 C formatter Ctrl-Tab complete word Meta/Alt-i insert unicode character Shift/F1 rxvt terminal Debug: Alt-F2 toggle breakpoint Alt-F3 continue until cursor Alt-F4 continue Alt-F5 run from beginning Alt-F8 single step, dive into functions Alt-F9 single step, skip over functions Ctrl-c interrupt program New shell scripts will be added from time to time. Consult the Scripts menu for the hotkeys that envoke these.EMERGENCIES keywords: hang, crash, halt, pause, stop, infinite loop, SIGHUP, SIGUSR1. There are some circumstances when Cooledit may go into an infinite loop, like if there is a bug in the editor move- ment commands, or if you create a recursive macro. In this case, you can restore Cooledit by using the kill shell function. Try kill -SIGUSR1 pid where pid is the process ID of cooledit from: ps | grep cooledit, for example. This will send SIGUSR1, a user signal, which, for Cooledit, will force a jump into its main loop, and restore opera- tion. It is a good idea to then save what you have done and exit immediately in case there has been memory corrup- tion.KEY REDEFINING The Options menu has a key binding learner which is easy to use. The key learning dialog contains a list of every re-definable action that the editor can perform. Simply click on the action you want to associate a key to, and press that key. An 'X' will appear next to the action to indicate the recording of a binding. To clear that binding click on the Clear Line button (or the Clear All button to clear all the bindings). You can even bind the same action to two separate keys: for instance using either the key pad arrows, or the normal arrows for cursor movement --- just click on that action again, and hit another key --- where two X's will appear. Up to three keys can be associ- ated with an action. The binding is also sensitive to the keyboard 'state' (i.e. whether Control, Shift, Alt, Meta, or Hyper is pressed, and any combination of these) so binding Shift-Left to an action will work, and will be 27 October 2001 9cooledit(1) cooledit(1) considered a different key stroke to Shift-Control-Left, and will also be considered a different key stroke to Shift-Left with NumLock on. Note that the difference between 'Enter' and 'Return' is that the one does an auto- indent. The key binding records X11 key-codes. These are the actual hardware codes that come from the keyboard, so the key binding works on the lowest possible level of inter- pretation. The editor checks for these user defined keys before any hard-coded key bindings, so user binded keys will override the default key bindings. This means user defining keys will always work, but may be specific to the hardware you are using. To redefine hardcoded keys (i.e. the default keys), modify the file edit_key_translator.c and then recompile. It con- tains simple C code which gets incorporated directly into the program during compilation. Note that the first func- tion it calls is to get the user defined action for the key if there is one. To recompile, remove the file edit.o and run make in the top directory. This will allow you to change any key-binding. The editor menu however will have to be modified separately to reflect the changes you've made (see editmenu.c). A detailed explanation is given in the commentary of edit_key_translator.c. (I added key redefinition mainly because different X Servers seem to interpret the same keys differently. It
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -