Updated RELEASE_NOTES.
[mp-5.x.git] / RELEASE_NOTES
blobcaf68c912b15c0c6c14ccef886c27bca6e83d038
1 Minimum Profit Release Notes
2 ============================
4 5.1.3
5 -----
7  * Fixed some clipboard issues and crashes.
8  * win32 executable has been renamed to `mp-5.exe'.
9  * Setting an empty encoding to fall back to system defaults
10    always work.
12 5.1.2
13 -----
15  * The `grep' action can now be recursive.
16  * New syntax color for special documentation blocks.
17  * Fix searching into empty selected blocks (this was bug #1269).
18  * New action `section_list', that shows a list of _sections_
19    in the current document to jump to. Sections are usually
20    function definitions and special marks in programming
21    languages.
22  * New action `seek_misspelled', to search the next
23    misspelled word. It has been assigned to keycode `f5'.
24  * New action `ignore_last_misspell', to add the last misspelled
25    word found by `seek_misspelled' to a whitelist so it won't
26    be found again.
27  * New action `seek_repeated_word', to search for words starting
28    or ending with the same number of letters up to a maximum
29    distance. It's controlled by the new configuration directives
30    `mp.config.rw_num_chars' and `mp.config.rw_max_dist'.
31    It has been assigned to keycode `f6' (this keycode was
32    previously assigned to `join_paragraph', which has no
33    keybinding now).
34  * The action `open_templates_file' has been fixed.
35  * Several GTK interface updates by fellow developer Sebastian Vöcking.
36  * New command line option `-d', to change the working directory.
37  * Several fixes to the win32 driver; word wrapping, combobox
38    drop-down sizes, underlined text.
39  * Avoid hanging if the external ispell program is broken.
40  * The `dump()' function now dumps its argument as MPSL code.
42 5.1.1
43 -----
45  * Internationalization works in all platforms (including KDE4,
46    were it was faulty, and win32, where it was non-existent since
47    the 3.x series).
48  * The status line format string can also include the %w token
49    to show the number of words in the current document or selection
50    (can be slow).
51  * Search and replace is now limited to the selected block, if any.
53 5.1.0
54 -----
56 Fixes to the KDE4 driver:
58  * Underlined text works.
59  * Text fields in forms now have history.
60  * If no xserver can be contacted, fall back to the curses interface.
62 5.1.0-rc1
63 ---------
65  * KDE4 support.
66  * Rectangular block copy/paste support.
67  * New syntax highlight for the Euphoria language.
69 5.0.3
70 -----
72  * New action `open_under_cursor', that picks the word in the
73    current document under the cursor, accepts it as a document
74    name and tries to open it. If it's in the format string:number,
75    is accepted as a file name and a line number. It's bound by
76    default to `ctrl-enter' (`alt-enter' under Curses).
77  * The `grep' action bevahaviour has changed; instead of in a form,
78    matches are shown in a read-only document that is only closed
79    explicitly. Each change can be moved to by using the new
80    `open_under_cursor' (`ctrl-enter' or `alt-enter') action shown above.
81  * In a similar way, the `build' action also shows its output in a
82    read-only document instead of a form that is not automatically closed,
83    making the browsing and editing of compilation errors more useful.
84  * Forms in the Curses driver have changed their look. All fields in a
85    form are shown simultaneously on screen. This is one step to close
86    bug #1249.
87  * A set of character encoding converters have been natively implemented,
88    improving those platforms where the 'iconv' library is not available
89    (i.e. Windows and old Unix systems). The available encodings can be
90    shown by executing
92         dump(EMBEDDED_ENCODINGS);
94 5.0.2
95 -----
97  * New option to mark end of line characters, with its associated
98    configuration directive (mp.config.mark_eol).
99  * The end of line string (mp.config.eol) is now system-dependent (so,
100    on win32, it's set by default to \r\n).
101  * Copy and paste on GTK has been fixed (this was bug #1205).
102  * Fixed some redrawing issues (bug #1236 and others).
103  * Ctrl-keys no longer fail on GTK (bug #1252).
104  * New document _Minimum Profit Action Reference_.
105  * New action `build', for building Makefile-based projects. See the
106    action reference for details.
108 5.0.1
109 -----
111  * Improved line edition in the Curses interface (full edition plus file
112    expansion using the `tab' key in open / save file prompts).
113  * Auto-indenting is temporarily disabled while pasting (bug #1250).
114  * New document _Minimum Profit Function Reference_ (contributed by Lee Page).
116 5.0.0
117 -----
119  * The search hit is highlighted.
120  * When invoked from the menu, the `record_macro' action dropped
121    the last key (bug #1245).
122  * A Curses configuration detection has been fixed that made
123    some things behave strangely, as the drop-down menu not
124    responding under some terminal configurations (bug #1247).
125  * The Curses menu no longer crashes if it doesn't fit on
126    the screen (bug #1195).
127  * The -f (execute script) command line argument really works
128    (bug #1240).
129  * New manual page (bug #1219) and README files (bug #1218).
130  * Updated documents, _MPSL Overview_ and _Minimum Profit Cookbook_.
131  * New documents, _Minimum Profit Data Model_ and
132    _Creating interactive dialog boxes_.
134 5.0.0-rc3
135 ---------
137  * New session support. All open documents and its current position
138    can be stored / retrieved with the new `save_session' and
139    `load_session' actions. Two new configuration flags has
140    been added: `mp.config.auto_sessions', to automatically load / save
141    sessions, and `mp.config.local_sessions', to save sessions in the
142    currently active directory instead of in the home directory.
143  * Multiple key sequences for invoking actions (ala Emacs) are
144    now possible. To create them, just assign a hash to a keycode
145    instead of an action. For example, to assign the key sequence
146    Ctrl-x Ctrl-f to `open' and Ctrl-x Ctrl-s to `save', you can use
148         mp.keycodes['ctrl-x'] = {
149                 'ctrl-f'        => 'open',
150                 'ctrl-s'        => 'save'
151         };
153  * In the curses version, confirmations now have default values
154    (shown in brackets), activated with the ENTER key.
155  * New action `close_all', that closes all documents.
157 5.0.0-rc2
158 ---------
160  * New `complete' action, that asks for completion on the current
161    word using any of the words found in the same document.
162  * New `redo' action, to revert undo operations.
163  * The global configuration file `/etc/mp.mpsl' is also executed.
164  * In the `replace' action, the substitution string can contain
165    the special character &, that will be replaced by the matched
166    string (as in the `sed' command line tool).
168 5.0.0-rc1
169 ---------
171  * New support for translating key sequences into MP keycodes, mainly
172    for redefining ANSI sequences not supported by current terminfo /
173    termcap. For example, if your terminal sends the ANSI sequence [6;5~
174    whenever you press Ctrl+page down, you can add to your config file
175    the following line:
177         mp.add_keyseq("[6;5~", 'ctrl-page-down');
179  * A new `system_command' action, to pipe from and to system commands
180    (Closed bug #1120).
181  * A new `word_count' action, to count the number of lines and words
182    in a document (or in the selected block).
183  * Incorrect word wrapping has been fixed (Closed bug #1137).
184  * Search and replace expand backslashed characters like \n and \t
185    (Closed bug #1214).
186  * New timer functionality has been added; a user function can be called
187    each time a specified period of milliseconds have elapsed. If, for
188    example, you want to print a string on standard output each two
189    seconds, you can run
191         mp.timer(2000, sub { print("Hi, world!\n"); });
193 5.0.0-pre1
194 ----------
196  * Password-protected files fully work.
197  * Moving to next / previous instance of character (bound to ctrl-page-down
198    and ctrl-page-up) works (Closed bug #1131).
199  * Files open MUCH faster.
200  * Selection can be done by pressing shift + any movement key (Closed bug #1182).
201  * Dialog boxes work under Windows 98 (Closed bugs #1196, #1197).
202  * Block selection can be done by dragging the mouse (Closed bugs #1200, #1201).
203  * New `grep' functionality (Closed bug #1116).
204  * New action `sync' (save all modified documents, closed bug #1206).
205  * New action `document_list' (show a box with all open documents, allowing
206    the selection of the active one; closed bug #1211).
207  * Translations ported from mp 3.x (closed bug #1169).
208  * Most syntax highlight definitions ported from mp 3.x (closed bug #1168).
210 4.99.12
211 -------
213  * The menu in the Curses interface has been (finally) implemented.
214  * Interfaces have changed internally; a new driver function, mp.drv.form()
215    serves as a dialog box generic generator, resulting in more useful queries
216    for data (for example, all data required for a `replace' operation is
217    queried in only one dialog box). The Curses implementation, though
218    functional, is still just a wrapper to the old interface functions
219    and fields are queried one-by-one (which is annoying). This is an example
220    of a call to mp.drv.form(); the r variable will contain an array of 5
221    elements (one per widget) containing the values, or NULL if user cancelled:
223         local r = mp.drv.form( [
224         
225                 /* a 'text' widget */
226                 { 'label'       => "Replace this:",
227                   'type'        => 'text',
228                   'history'     => 'search',
229                   'value'       => 'THIS' },
230         
231                 /* another one */
232                 { 'label'       => "With:",
233                   'type'        => 'text',
234                   'history'     => 'replace',
235                   'value'       => 'THAT' },
236         
237                 /* a 'password' widget */
238                 { 'label'       => 'Password:',
239                   'type'        => 'password' },
240         
241                 /* a 'checkbox' widget */
242                 { 'label'       => "Case sensitive:",
243                   'type'        => 'checkbox',
244                   'value'       => mp.config.case_sensitive_search },
245         
246                 /* a 'list' widget */
247                 { 'label'       => 'All C files:',
248                   'type'        => 'list',
249                   'list'        => glob('*.c'),
250                   'value'       => 10 }
251         ] );
253  * Password protecting files works (but they cannot be opened yet, so this
254    is far from useful, unless you use mp 3.x to open them).
255  * Case sensitivity in searches can be controlled with the new
256    config flag mp.config.case_sensitive_search.
257  * Replace (and global replace by use of the new config flag
258    `mp.config.global_replace') works.
260 4.99.11
261 -------
263  * Syntax highlight definition have changed (again, hopefully for the last
264    time). Definitions are now an array of attribute name / regexes in which
265    the order is significative.
266  * Template insertion works.
267  * Tag selection (open the file where a symbol is defined) works.
268  * Symbol completion (using tags) works.
269  * Closed bugs #1159, #1158, #1153, #1161.
271 4.99.10
272 -------
274  * A big advance in the Curses interface; alerts, confirmations, and open
275    file, save file, search and generic prompts are working. Still lacking
276    the selection lists (as the rest of interfaces) and the menu.
277  * Improved menus; if an invalid action is added to a menu, it's shown
278    followed by a ?; if a key is bound to that action, it's shown between
279    square brackets.
280  * For systems lacking iconv support (MS Windows), a crappy, ad-hoc utf-8
281    converter has been added. This means that hitting `escape' and typing
282    `encoding('utf-8');' makes reading and writing utf-8 encoded files
283    possible on every system.
284  * New action `join_paragraph', to join current paragraph all in one line.
285  * New action `word_wrap_paragraph', that re-word-wraps current paragraph.
286    Word wrapping must be set ('mp.config.word_wrap = number;') for this to
287    work.
289 4.99.9
290 ------
292  * The GTK and win32 drivers now include a native open/save file dialog.
293  * Interactive help (help for the word under the cursor, triggered by
294    pressing `f1') works.
295  * The menu in GTK and win32 works.
296  * New icon!
297  * Some bugs that caused random crashes has been fixed.
298  * New action `exec-doc', that executes the active open document as
299    MPSL code.
301 4.99.8
302 ------
304  * New configuration option `mp.config.tabs_as_spaces', to store tabs
305    as spaces.
306  * Each syntax highlight definition can contain an optional function
307    called detect() that receives the document as argument and can be used
308    to tailor special detection rules.
309  * A big part of the internal storage of colors and attributes have
310    been rewritten to make it more dynamic.
311  * Tag target for the word over the cursor is shown in the status line.
312  * Move word left works.
313  * Opening an already open file makes it the active one instead of
314    re-opening it.
315  * The `execute code' action has been remapped from `ctrl-f1' to escape.
316  * Spellchecking via ispell works (though it's SLOW!). Activate it by
317    hitting escape and typing:
319         mp.ispell(1);
321  * By default, files are now unlinked before (re)written. File permissions
322    and ownership are restored if available. This behaviour can be disabled
323    by setting `mp.config.unlink' to zero.
324  * The GTK driver drawing code has been optimized, so it's much more
325    responsive now.
327 4.99.7
328 ------
330  * The `modified' flag of documents is maintained, so now closing files
331    with pending modifications ask for confirmation. Also, the %m status
332    line directive works (marking modified files with an asterisk).
333  * Flex and bison are no longer needed to build.
334  * The `close window' button in GUIs (win32 and GTK) now generate the
335    special keycode `close-window'.
336  * The `exit' action now closes all open documents, asking for saving
337    confirmation on those modified.
338  * Temporary versions of the `open' ans `save' actions (using
339    mp.drv.readline() instead of an ad-hoc open file dialog) have
340    been implemented.
341  * The GUI interfaces now can have their font preferences configured
342    by using mp.config.font_face and mp.config.font_size.
343  * The actions `zoom-in' and `zoom-out' (font size rescaling, bound to
344    `f11/f12' and `ctrl-kp-minus/ctrl-kp-plus') have been implemented.
345  * New mouse-related actions; `move-to-mouse-position', `move-mouse-wheel-up'
346    and `move-mouse-wheel-down'.
348 4.99.6
349 ------
351 This is an EXPERIMENTAL version for evaluation purposes only. There are
352 many things that aren't implemented, others fail miserably and many more
353 do it incorrectly. Basically, what is known to work is:
355  * Basic text editing fully works. I've been using it for six months or so
356    to maintain itself, and there has not been a crash in three months,
357    more or less.
358  * Scripting works fine (90% of Minimum Profit 5.x itself is implemented
359    in MPSL, its internal scripting language).
360  * Undo works fine. It's bound to ctrl-z.
361  * Works cleanly in an UTF-8 environment.
363 I do development on the GTK version, so it's where it works best. The
364 curses version lacks many of the interface (alerts, confirmations,
365 asking for text, etc.), so it's barely usable. The win32 version seem
366 to work, but it needs to be manually installed and probably need some
367 tweaking.
369 What it doesn't work:
371  * The dialogs to open or save a file by its name aren't implemented.
372    There are workarounds for this: files can be opened from the command
373    line and save works correctly if the edited file has a name. Also,
374    files can be opened by hitting `ctrl-f1' (execute script code) and
375    typing:
377         mp.open("file-to-be-opened");
379  * There is no menu.
380  * No ispell support.
381  * No password protected files.
382  * No grep.
383  * No external commands (so no support for help, tags, etc.).
384  * Some movement commands as moving a word left, moving to matching
385    brackets, etc. are still not implemented.
386  * Only a few syntax highlight definitions are implemented.
387  * Many other things I cannot remember.
389 Documentation is still scarce: the more interesting bits are inside the
390 mpsl/doc directory. This is where the scripting language is documented,
391 with some basic overviews and implementation notes (there is even an
392 embryo of a PostScript quick reference guide).
394 Customizing can be done by writing MPSL commands in the ~/.mp.mpsl file,
395 which is read on startup.
397 I have not tried to optimize the internal engine, so it's probably some
398 magnitudes slower than the 3.x version.