# CodeCommander by Chris Phelps, chicane@reninet.com # CodeCommander is a simple code editor for use with just about any programming language. It is still in the early development stages, but is fairly useful as a c/c++ editor without too many frills. This program is meant as a learning experience for me, as well as a project which I thought that GNOME was lacking. My number one goal in all of my programming is stability. What good does a program do you if it crashes all the time? Thats all for now... -Chicane :Help File Starts Here: Beginning Notes: Command line options: -s, --session= Open a specific session file -f, --file= Open a specific file -l, --line= Jump to a specific line in the file specified by -f Working with selections and Find/Replace: CodeCommander handles this situation a little differently than most editors. Here are the rules: Find: If command entry has text that will be the search text, and the find dialog will not be brought up. Standard settings will apply. If command entry has text and the document has a selection, the find will only occur inside the bounds of the selection. The dialog will not appear, and the standard search setting will apply. If command entry is empty and the document has no selection, the normal case will apply, which is to say, the dialog will popup, and no find text will be specified, unless there is a history of finds. If command entry is empty and the document has a selection with length less than 48 characters, the selected text will be copied to the find entry. If command entry is empty and the document has a selection with length greater than 48 characters, the selection bounds will be used as the extents of the search. NOTE: Due to certain constraints with selections, if you want to search a selection for some text, it is a good idea to select the text from the end to the start, so the cursor position is at the start of the text to search. For reference, the extents of a selection in a GtkEditable are: GtkEditable::selection_start_pos & GtkEditable::selection_end_pos. GtkEditable::has_selection is TRUE if there is a selection. Replace: Same as Find, except with the following changes; If command entry has text, and document has a selection, the selection will be replaced with the text in the entry. Searching Man pages: Order of operations is similar to find/replace... 1. Command entry 2. selection in document 3. current word in document