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