1 Minimum Profit Release Notes
2 ============================
7 * Fixed insert / overwrite mode.
8 * New action `filter_selection', to filter the selection (or the
9 full document if no selection is done) through a system command.
10 * If a selection is invisible (incomplete or with the start and end
11 in the same character), a new keystroke does not jump to it.
12 * If a block is selected, actions `word_wrap_paragraph' and
13 `join_paragraph' modify the full block.
14 * New action `exec_action', that shows a list of actions to execute
15 on the current document.
16 * New command line option `-txt' to use text mode (instead of GUI).
17 * New configuration option `mp.config.hw_cursor' to activate
18 the hardware cursor in text environments (disabled by default).
19 * File opening in Curses is fully navegable.
20 * New action `insert_next_item', to insert a new enumeration
22 * If a text mode menu panel do not fit vertically on the screen,
23 scroll menu items as necessary.
28 * If a block is selected, any keystroke substitutes it.
29 * Support for Alt + keys (ASCII and movement) has been added,
30 and mostly left unbound to be used by the user for his own
32 * A new tab mode, which uses the previous line as a template
34 * Fixed action `open_under_cursor'.
35 * The `mp.paste()' function returns the clipboard content
36 as a string if called without arguments.
37 * New Grutatxt syntax highlighter.
39 * Fix a bug when calculating the drawing position in the
40 selected block, that were leading to crashes.
45 * A new Qt4 driver (adapted from the KDE4 driver).
46 * A new hexadecimal viewer.
47 * New action `open_dropped_files', to open files dropped from
48 the underlying system GUI.
49 * Improved file encoding autodetection by looking at the
51 * New configuration option `keep_eol', to keep the original
52 end of line sequence each document had.
53 * Fixed some clipboard issues, as replacing the selected block
54 when pasting and some crashes.
55 * win32 executable has been renamed to `mp-5.exe'.
56 * The status line format string can also include the %e token
57 to show the encoding used by the document.
58 * Fixed win32 input processing in non-latin environments.
59 * Setting an empty encoding (to fall back to system defaults)
65 * The `grep' action can now be recursive.
66 * New syntax color for special documentation blocks.
67 * Fix searching into empty selected blocks (this was bug #1269).
68 * New action `section_list', that shows a list of _sections_
69 in the current document to jump to. Sections are usually
70 function definitions and special marks in programming
72 * New action `seek_misspelled', to search the next
73 misspelled word. It has been assigned to keycode `f5'.
74 * New action `ignore_last_misspell', to add the last misspelled
75 word found by `seek_misspelled' to a whitelist so it won't
77 * New action `seek_repeated_word', to search for words starting
78 or ending with the same number of letters up to a maximum
79 distance. It's controlled by the new configuration directives
80 `mp.config.rw_num_chars' and `mp.config.rw_max_dist'.
81 It has been assigned to keycode `f6' (this keycode was
82 previously assigned to `join_paragraph', which has no
84 * The action `open_templates_file' has been fixed.
85 * Several GTK interface updates by fellow developer Sebastian Vöcking.
86 * New command line option `-d', to change the working directory.
87 * Several fixes to the win32 driver; word wrapping, combobox
88 drop-down sizes, underlined text.
89 * Avoid hanging if the external ispell program is broken.
90 * The `dump()' function now dumps its argument as MPSL code.
95 * Internationalization works in all platforms (including KDE4,
96 were it was faulty, and win32, where it was non-existent since
98 * The status line format string can also include the %w token
99 to show the number of words in the current document or selection
101 * Search and replace is now limited to the selected block, if any.
106 Fixes to the KDE4 driver:
108 * Underlined text works.
109 * Text fields in forms now have history.
110 * If no xserver can be contacted, fall back to the curses interface.
116 * Rectangular block copy/paste support.
117 * New syntax highlight for the Euphoria language.
122 * New action `open_under_cursor', that picks the word in the
123 current document under the cursor, accepts it as a document
124 name and tries to open it. If it's in the format string:number,
125 is accepted as a file name and a line number. It's bound by
126 default to `ctrl-enter' (`alt-enter' under Curses).
127 * The `grep' action bevahaviour has changed; instead of in a form,
128 matches are shown in a read-only document that is only closed
129 explicitly. Each change can be moved to by using the new
130 `open_under_cursor' (`ctrl-enter' or `alt-enter') action shown above.
131 * In a similar way, the `build' action also shows its output in a
132 read-only document instead of a form that is not automatically closed,
133 making the browsing and editing of compilation errors more useful.
134 * Forms in the Curses driver have changed their look. All fields in a
135 form are shown simultaneously on screen. This is one step to close
137 * A set of character encoding converters have been natively implemented,
138 improving those platforms where the 'iconv' library is not available
139 (i.e. Windows and old Unix systems). The available encodings can be
142 dump(EMBEDDED_ENCODINGS);
147 * New option to mark end of line characters, with its associated
148 configuration directive (mp.config.mark_eol).
149 * The end of line string (mp.config.eol) is now system-dependent (so,
150 on win32, it's set by default to \r\n).
151 * Copy and paste on GTK has been fixed (this was bug #1205).
152 * Fixed some redrawing issues (bug #1236 and others).
153 * Ctrl-keys no longer fail on GTK (bug #1252).
154 * New document _Minimum Profit Action Reference_.
155 * New action `build', for building Makefile-based projects. See the
156 action reference for details.
161 * Improved line edition in the Curses interface (full edition plus file
162 expansion using the `tab' key in open / save file prompts).
163 * Auto-indenting is temporarily disabled while pasting (bug #1250).
164 * New document _Minimum Profit Function Reference_ (contributed by Lee Page).
169 * The search hit is highlighted.
170 * When invoked from the menu, the `record_macro' action dropped
171 the last key (bug #1245).
172 * A Curses configuration detection has been fixed that made
173 some things behave strangely, as the drop-down menu not
174 responding under some terminal configurations (bug #1247).
175 * The Curses menu no longer crashes if it doesn't fit on
176 the screen (bug #1195).
177 * The -f (execute script) command line argument really works
179 * New manual page (bug #1219) and README files (bug #1218).
180 * Updated documents, _MPSL Overview_ and _Minimum Profit Cookbook_.
181 * New documents, _Minimum Profit Data Model_ and
182 _Creating interactive dialog boxes_.
187 * New session support. All open documents and its current position
188 can be stored / retrieved with the new `save_session' and
189 `load_session' actions. Two new configuration flags has
190 been added: `mp.config.auto_sessions', to automatically load / save
191 sessions, and `mp.config.local_sessions', to save sessions in the
192 currently active directory instead of in the home directory.
193 * Multiple key sequences for invoking actions (ala Emacs) are
194 now possible. To create them, just assign a hash to a keycode
195 instead of an action. For example, to assign the key sequence
196 Ctrl-x Ctrl-f to `open' and Ctrl-x Ctrl-s to `save', you can use
198 mp.keycodes['ctrl-x'] = {
203 * In the curses version, confirmations now have default values
204 (shown in brackets), activated with the ENTER key.
205 * New action `close_all', that closes all documents.
210 * New `complete' action, that asks for completion on the current
211 word using any of the words found in the same document.
212 * New `redo' action, to revert undo operations.
213 * The global configuration file `/etc/mp.mpsl' is also executed.
214 * In the `replace' action, the substitution string can contain
215 the special character &, that will be replaced by the matched
216 string (as in the `sed' command line tool).
221 * New support for translating key sequences into MP keycodes, mainly
222 for redefining ANSI sequences not supported by current terminfo /
223 termcap. For example, if your terminal sends the ANSI sequence [6;5~
224 whenever you press Ctrl+page down, you can add to your config file
227 mp.add_keyseq("[6;5~", 'ctrl-page-down');
229 * A new `system_command' action, to pipe from and to system commands
231 * A new `word_count' action, to count the number of lines and words
232 in a document (or in the selected block).
233 * Incorrect word wrapping has been fixed (Closed bug #1137).
234 * Search and replace expand backslashed characters like \n and \t
236 * New timer functionality has been added; a user function can be called
237 each time a specified period of milliseconds have elapsed. If, for
238 example, you want to print a string on standard output each two
241 mp.timer(2000, sub { print("Hi, world!\n"); });
246 * Password-protected files fully work.
247 * Moving to next / previous instance of character (bound to ctrl-page-down
248 and ctrl-page-up) works (Closed bug #1131).
249 * Files open MUCH faster.
250 * Selection can be done by pressing shift + any movement key (Closed bug #1182).
251 * Dialog boxes work under Windows 98 (Closed bugs #1196, #1197).
252 * Block selection can be done by dragging the mouse (Closed bugs #1200, #1201).
253 * New `grep' functionality (Closed bug #1116).
254 * New action `sync' (save all modified documents, closed bug #1206).
255 * New action `document_list' (show a box with all open documents, allowing
256 the selection of the active one; closed bug #1211).
257 * Translations ported from mp 3.x (closed bug #1169).
258 * Most syntax highlight definitions ported from mp 3.x (closed bug #1168).
263 * The menu in the Curses interface has been (finally) implemented.
264 * Interfaces have changed internally; a new driver function, mp.drv.form()
265 serves as a dialog box generic generator, resulting in more useful queries
266 for data (for example, all data required for a `replace' operation is
267 queried in only one dialog box). The Curses implementation, though
268 functional, is still just a wrapper to the old interface functions
269 and fields are queried one-by-one (which is annoying). This is an example
270 of a call to mp.drv.form(); the r variable will contain an array of 5
271 elements (one per widget) containing the values, or NULL if user cancelled:
273 local r = mp.drv.form( [
275 /* a 'text' widget */
276 { 'label' => "Replace this:",
278 'history' => 'search',
282 { 'label' => "With:",
284 'history' => 'replace',
287 /* a 'password' widget */
288 { 'label' => 'Password:',
289 'type' => 'password' },
291 /* a 'checkbox' widget */
292 { 'label' => "Case sensitive:",
293 'type' => 'checkbox',
294 'value' => mp.config.case_sensitive_search },
296 /* a 'list' widget */
297 { 'label' => 'All C files:',
299 'list' => glob('*.c'),
303 * Password protecting files works (but they cannot be opened yet, so this
304 is far from useful, unless you use mp 3.x to open them).
305 * Case sensitivity in searches can be controlled with the new
306 config flag mp.config.case_sensitive_search.
307 * Replace (and global replace by use of the new config flag
308 `mp.config.global_replace') works.
313 * Syntax highlight definition have changed (again, hopefully for the last
314 time). Definitions are now an array of attribute name / regexes in which
315 the order is significative.
316 * Template insertion works.
317 * Tag selection (open the file where a symbol is defined) works.
318 * Symbol completion (using tags) works.
319 * Closed bugs #1159, #1158, #1153, #1161.
324 * A big advance in the Curses interface; alerts, confirmations, and open
325 file, save file, search and generic prompts are working. Still lacking
326 the selection lists (as the rest of interfaces) and the menu.
327 * Improved menus; if an invalid action is added to a menu, it's shown
328 followed by a ?; if a key is bound to that action, it's shown between
330 * For systems lacking iconv support (MS Windows), a crappy, ad-hoc utf-8
331 converter has been added. This means that hitting `escape' and typing
332 `encoding('utf-8');' makes reading and writing utf-8 encoded files
333 possible on every system.
334 * New action `join_paragraph', to join current paragraph all in one line.
335 * New action `word_wrap_paragraph', that re-word-wraps current paragraph.
336 Word wrapping must be set ('mp.config.word_wrap = number;') for this to
342 * The GTK and win32 drivers now include a native open/save file dialog.
343 * Interactive help (help for the word under the cursor, triggered by
344 pressing `f1') works.
345 * The menu in GTK and win32 works.
347 * Some bugs that caused random crashes has been fixed.
348 * New action `exec-doc', that executes the active open document as
354 * New configuration option `mp.config.tabs_as_spaces', to store tabs
356 * Each syntax highlight definition can contain an optional function
357 called detect() that receives the document as argument and can be used
358 to tailor special detection rules.
359 * A big part of the internal storage of colors and attributes have
360 been rewritten to make it more dynamic.
361 * Tag target for the word over the cursor is shown in the status line.
362 * Move word left works.
363 * Opening an already open file makes it the active one instead of
365 * The `execute code' action has been remapped from `ctrl-f1' to escape.
366 * Spellchecking via ispell works (though it's SLOW!). Activate it by
367 hitting escape and typing:
371 * By default, files are now unlinked before (re)written. File permissions
372 and ownership are restored if available. This behaviour can be disabled
373 by setting `mp.config.unlink' to zero.
374 * The GTK driver drawing code has been optimized, so it's much more
380 * The `modified' flag of documents is maintained, so now closing files
381 with pending modifications ask for confirmation. Also, the %m status
382 line directive works (marking modified files with an asterisk).
383 * Flex and bison are no longer needed to build.
384 * The `close window' button in GUIs (win32 and GTK) now generate the
385 special keycode `close-window'.
386 * The `exit' action now closes all open documents, asking for saving
387 confirmation on those modified.
388 * Temporary versions of the `open' ans `save' actions (using
389 mp.drv.readline() instead of an ad-hoc open file dialog) have
391 * The GUI interfaces now can have their font preferences configured
392 by using mp.config.font_face and mp.config.font_size.
393 * The actions `zoom-in' and `zoom-out' (font size rescaling, bound to
394 `f11/f12' and `ctrl-kp-minus/ctrl-kp-plus') have been implemented.
395 * New mouse-related actions; `move-to-mouse-position', `move-mouse-wheel-up'
396 and `move-mouse-wheel-down'.
401 This is an EXPERIMENTAL version for evaluation purposes only. There are
402 many things that aren't implemented, others fail miserably and many more
403 do it incorrectly. Basically, what is known to work is:
405 * Basic text editing fully works. I've been using it for six months or so
406 to maintain itself, and there has not been a crash in three months,
408 * Scripting works fine (90% of Minimum Profit 5.x itself is implemented
409 in MPSL, its internal scripting language).
410 * Undo works fine. It's bound to ctrl-z.
411 * Works cleanly in an UTF-8 environment.
413 I do development on the GTK version, so it's where it works best. The
414 curses version lacks many of the interface (alerts, confirmations,
415 asking for text, etc.), so it's barely usable. The win32 version seem
416 to work, but it needs to be manually installed and probably need some
419 What it doesn't work:
421 * The dialogs to open or save a file by its name aren't implemented.
422 There are workarounds for this: files can be opened from the command
423 line and save works correctly if the edited file has a name. Also,
424 files can be opened by hitting `ctrl-f1' (execute script code) and
427 mp.open("file-to-be-opened");
431 * No password protected files.
433 * No external commands (so no support for help, tags, etc.).
434 * Some movement commands as moving a word left, moving to matching
435 brackets, etc. are still not implemented.
436 * Only a few syntax highlight definitions are implemented.
437 * Many other things I cannot remember.
439 Documentation is still scarce: the more interesting bits are inside the
440 mpsl/doc directory. This is where the scripting language is documented,
441 with some basic overviews and implementation notes (there is even an
442 embryo of a PostScript quick reference guide).
444 Customizing can be done by writing MPSL commands in the ~/.mp.mpsl file,
445 which is read on startup.
447 I have not tried to optimize the internal engine, so it's probably some
448 magnitudes slower than the 3.x version.