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