Updated RELEASE_NOTES.
[mp-5.x.git] / RELEASE_NOTES
blob5b72587ea8c5be0e9ce0d5171d9a257a30e64290
1 Minimum Profit Release Notes
2 ============================
4 5.2.2
5 -----
7  - Major improvements:
8    - Added Version Control commands (bound by default to `ctrl-p').
9      The supported systems are (adding new ones is very easy):
10      - Git
11      - Subversion
12      - Mercurial
13    - If any file being edited is modified externally, the situation
14      is detected and the user is prompted for file reloading.
15    - GTK library detection: Uses 3.x if available, then 2.x.
16    - Special information gathering on help: if the file being edited
17      is C/C++ and asking for help (by pressing `F1') do not return
18      a `man' page, a special routine inspects all source files and
19      headers looking for structures, variables and function prototypes
20      to be shown as help.
21    - New "Pipes" game.
22  - Minor improvements:
23    - The `build' action remembers the last Makefile target.
24    - The `section_list' action sets the list selector to the most
25      appropriate section regarding the current cursor position.
27 5.2.1
28 -----
30  - New actions:
31    - `indent_block': Indents the current line or the selected block.
32    - `unindent_block': Reverse of `indent_block'.
33  - New features:
34    - ~/.mp_templates can be a directory. If it is, the `global' file
35    there is always read (and those templates put at the top) and it
36    will also read a file named like the current syntax highlight
37    definition (so different templates appear if your editing C, Perl,
38    etc.).
39  - New configuration options:
40    - `mp.config.smart_bol': if set to nonzero, the `move_bol' action
41      now moves to the first non-blank character in the line instead of
42      to column 0 (unless the cursor is already on the first non-blank).
43  - Other improvements:
44    - The following actions accept additional arguments when called
45      as functions (and do not ask for them, if present):
46      - `goto'
47      - `save_as'
48      - `exec_command'
49      - `filter_selection'
51 5.2.0
52 -----
54  - New actions:
55    - `filter_selection': to filter the selection (or the
56      full document if no selection is done) through a system command.
57    - `exec_action': that shows a list of actions to execute
58      on the current document.
59    - `cut_lines_with_string': that cuts to the clipboard all lines
60      in a document or block that matches a regular expression.
61    - `insert_real_tab': bound to `shift-tab', to insert a tab
62      character (\t) regardless of whatever is set in the
63      `tabs_as_spaces' configuration variable.
64    - `insert_next_item': to insert a new enumeration item in
65      a document.
66  - Bugfixes:
67    - Fixed insert / overwrite mode.
68    - If a selection is invisible (incomplete or with the start and end
69      in the same character), a new keystroke does not jump to it.
70  - New configuration options:
71    - `mp.config.hw_cursor': to activate the hardware cursor in
72      text environments (disabled by default).
73  - Text user interface improvements:
74    - File opening list is fully navegable (directories up and down),
75    - Selection lists accept letter keys to jump to elements,
76    - If a text mode menu panel do not fit vertically on the screen,
77      menu items are scrolled as needed.
78  - New command line options:
79    - `-txt': force text mode (instead of GUI).
80  - General improvements:
81    - If a block is selected, actions `word_wrap_paragraph',
82      `join_paragraph' and `eval_doc' act only on it.
83    - The internal engine has been partly rewritten, so it requires
84      less memory and it's a bit faster.
86 5.1.4
87 -----
89  * If a block is selected, any keystroke substitutes it.
90  * Support for Alt + keys (ASCII and movement) has been added,
91    and mostly left unbound to be used by the user for his own
92    keybindings.
93  * A new tab mode, which uses the previous line as a template
94    for tab columns.
95  * Fixed action `open_under_cursor'.
96  * The `mp.paste()' function returns the clipboard content
97    as a string if called without arguments.
98  * New Grutatxt syntax highlighter.
99  * Fix F10 in Win32.
100  * Fix a bug when calculating the drawing position in the
101    selected block, that were leading to crashes.
103 5.1.3
104 -----
106  * A new Qt4 driver (adapted from the KDE4 driver).
107  * A new hexadecimal viewer.
108  * New action `open_dropped_files', to open files dropped from
109    the underlying system GUI.
110  * Improved file encoding autodetection by looking at the
111    UTF BOM marks.
112  * New configuration option `keep_eol', to keep the original
113    end of line sequence each document had.
114  * Fixed some clipboard issues, as replacing the selected block
115    when pasting and some crashes.
116  * win32 executable has been renamed to `mp-5.exe'.
117  * The status line format string can also include the %e token
118    to show the encoding used by the document.
119  * Fixed win32 input processing in non-latin environments.
120  * Setting an empty encoding (to fall back to system defaults)
121    always work.
123 5.1.2
124 -----
126  * The `grep' action can now be recursive.
127  * New syntax color for special documentation blocks.
128  * Fix searching into empty selected blocks (this was bug #1269).
129  * New action `section_list', that shows a list of _sections_
130    in the current document to jump to. Sections are usually
131    function definitions and special marks in programming
132    languages.
133  * New action `seek_misspelled', to search the next
134    misspelled word. It has been assigned to keycode `f5'.
135  * New action `ignore_last_misspell', to add the last misspelled
136    word found by `seek_misspelled' to a whitelist so it won't
137    be found again.
138  * New action `seek_repeated_word', to search for words starting
139    or ending with the same number of letters up to a maximum
140    distance. It's controlled by the new configuration directives
141    `mp.config.rw_num_chars' and `mp.config.rw_max_dist'.
142    It has been assigned to keycode `f6' (this keycode was
143    previously assigned to `join_paragraph', which has no
144    keybinding now).
145  * The action `open_templates_file' has been fixed.
146  * Several GTK interface updates by fellow developer Sebastian Vöcking.
147  * New command line option `-d', to change the working directory.
148  * Several fixes to the win32 driver; word wrapping, combobox
149    drop-down sizes, underlined text.
150  * Avoid hanging if the external ispell program is broken.
151  * The `dump()' function now dumps its argument as MPSL code.
153 5.1.1
154 -----
156  * Internationalization works in all platforms (including KDE4,
157    were it was faulty, and win32, where it was non-existent since
158    the 3.x series).
159  * The status line format string can also include the %w token
160    to show the number of words in the current document or selection
161    (can be slow).
162  * Search and replace is now limited to the selected block, if any.
164 5.1.0
165 -----
167 Fixes to the KDE4 driver:
169  * Underlined text works.
170  * Text fields in forms now have history.
171  * If no xserver can be contacted, fall back to the curses interface.
173 5.1.0-rc1
174 ---------
176  * KDE4 support.
177  * Rectangular block copy/paste support.
178  * New syntax highlight for the Euphoria language.
180 5.0.3
181 -----
183  * New action `open_under_cursor', that picks the word in the
184    current document under the cursor, accepts it as a document
185    name and tries to open it. If it's in the format string:number,
186    is accepted as a file name and a line number. It's bound by
187    default to `ctrl-enter' (`alt-enter' under Curses).
188  * The `grep' action bevahaviour has changed; instead of in a form,
189    matches are shown in a read-only document that is only closed
190    explicitly. Each change can be moved to by using the new
191    `open_under_cursor' (`ctrl-enter' or `alt-enter') action shown above.
192  * In a similar way, the `build' action also shows its output in a
193    read-only document instead of a form that is not automatically closed,
194    making the browsing and editing of compilation errors more useful.
195  * Forms in the Curses driver have changed their look. All fields in a
196    form are shown simultaneously on screen. This is one step to close
197    bug #1249.
198  * A set of character encoding converters have been natively implemented,
199    improving those platforms where the 'iconv' library is not available
200    (i.e. Windows and old Unix systems). The available encodings can be
201    shown by executing
203         dump(EMBEDDED_ENCODINGS);
205 5.0.2
206 -----
208  * New option to mark end of line characters, with its associated
209    configuration directive (mp.config.mark_eol).
210  * The end of line string (mp.config.eol) is now system-dependent (so,
211    on win32, it's set by default to \r\n).
212  * Copy and paste on GTK has been fixed (this was bug #1205).
213  * Fixed some redrawing issues (bug #1236 and others).
214  * Ctrl-keys no longer fail on GTK (bug #1252).
215  * New document _Minimum Profit Action Reference_.
216  * New action `build', for building Makefile-based projects. See the
217    action reference for details.
219 5.0.1
220 -----
222  * Improved line edition in the Curses interface (full edition plus file
223    expansion using the `tab' key in open / save file prompts).
224  * Auto-indenting is temporarily disabled while pasting (bug #1250).
225  * New document _Minimum Profit Function Reference_ (contributed by Lee Page).
227 5.0.0
228 -----
230  * The search hit is highlighted.
231  * When invoked from the menu, the `record_macro' action dropped
232    the last key (bug #1245).
233  * A Curses configuration detection has been fixed that made
234    some things behave strangely, as the drop-down menu not
235    responding under some terminal configurations (bug #1247).
236  * The Curses menu no longer crashes if it doesn't fit on
237    the screen (bug #1195).
238  * The -f (execute script) command line argument really works
239    (bug #1240).
240  * New manual page (bug #1219) and README files (bug #1218).
241  * Updated documents, _MPSL Overview_ and _Minimum Profit Cookbook_.
242  * New documents, _Minimum Profit Data Model_ and
243    _Creating interactive dialog boxes_.
245 5.0.0-rc3
246 ---------
248  * New session support. All open documents and its current position
249    can be stored / retrieved with the new `save_session' and
250    `load_session' actions. Two new configuration flags has
251    been added: `mp.config.auto_sessions', to automatically load / save
252    sessions, and `mp.config.local_sessions', to save sessions in the
253    currently active directory instead of in the home directory.
254  * Multiple key sequences for invoking actions (ala Emacs) are
255    now possible. To create them, just assign a hash to a keycode
256    instead of an action. For example, to assign the key sequence
257    Ctrl-x Ctrl-f to `open' and Ctrl-x Ctrl-s to `save', you can use
259         mp.keycodes['ctrl-x'] = {
260                 'ctrl-f'        => 'open',
261                 'ctrl-s'        => 'save'
262         };
264  * In the curses version, confirmations now have default values
265    (shown in brackets), activated with the ENTER key.
266  * New action `close_all', that closes all documents.
268 5.0.0-rc2
269 ---------
271  * New `complete' action, that asks for completion on the current
272    word using any of the words found in the same document.
273  * New `redo' action, to revert undo operations.
274  * The global configuration file `/etc/mp.mpsl' is also executed.
275  * In the `replace' action, the substitution string can contain
276    the special character &, that will be replaced by the matched
277    string (as in the `sed' command line tool).
279 5.0.0-rc1
280 ---------
282  * New support for translating key sequences into MP keycodes, mainly
283    for redefining ANSI sequences not supported by current terminfo /
284    termcap. For example, if your terminal sends the ANSI sequence [6;5~
285    whenever you press Ctrl+page down, you can add to your config file
286    the following line:
288         mp.add_keyseq("[6;5~", 'ctrl-page-down');
290  * A new `system_command' action, to pipe from and to system commands
291    (Closed bug #1120).
292  * A new `word_count' action, to count the number of lines and words
293    in a document (or in the selected block).
294  * Incorrect word wrapping has been fixed (Closed bug #1137).
295  * Search and replace expand backslashed characters like \n and \t
296    (Closed bug #1214).
297  * New timer functionality has been added; a user function can be called
298    each time a specified period of milliseconds have elapsed. If, for
299    example, you want to print a string on standard output each two
300    seconds, you can run
302         mp.timer(2000, sub { print("Hi, world!\n"); });
304 5.0.0-pre1
305 ----------
307  * Password-protected files fully work.
308  * Moving to next / previous instance of character (bound to ctrl-page-down
309    and ctrl-page-up) works (Closed bug #1131).
310  * Files open MUCH faster.
311  * Selection can be done by pressing shift + any movement key (Closed bug #1182).
312  * Dialog boxes work under Windows 98 (Closed bugs #1196, #1197).
313  * Block selection can be done by dragging the mouse (Closed bugs #1200, #1201).
314  * New `grep' functionality (Closed bug #1116).
315  * New action `sync' (save all modified documents, closed bug #1206).
316  * New action `document_list' (show a box with all open documents, allowing
317    the selection of the active one; closed bug #1211).
318  * Translations ported from mp 3.x (closed bug #1169).
319  * Most syntax highlight definitions ported from mp 3.x (closed bug #1168).
321 4.99.12
322 -------
324  * The menu in the Curses interface has been (finally) implemented.
325  * Interfaces have changed internally; a new driver function, mp.drv.form()
326    serves as a dialog box generic generator, resulting in more useful queries
327    for data (for example, all data required for a `replace' operation is
328    queried in only one dialog box). The Curses implementation, though
329    functional, is still just a wrapper to the old interface functions
330    and fields are queried one-by-one (which is annoying). This is an example
331    of a call to mp.drv.form(); the r variable will contain an array of 5
332    elements (one per widget) containing the values, or NULL if user cancelled:
334         local r = mp.drv.form( [
335         
336                 /* a 'text' widget */
337                 { 'label'       => "Replace this:",
338                   'type'        => 'text',
339                   'history'     => 'search',
340                   'value'       => 'THIS' },
341         
342                 /* another one */
343                 { 'label'       => "With:",
344                   'type'        => 'text',
345                   'history'     => 'replace',
346                   'value'       => 'THAT' },
347         
348                 /* a 'password' widget */
349                 { 'label'       => 'Password:',
350                   'type'        => 'password' },
351         
352                 /* a 'checkbox' widget */
353                 { 'label'       => "Case sensitive:",
354                   'type'        => 'checkbox',
355                   'value'       => mp.config.case_sensitive_search },
356         
357                 /* a 'list' widget */
358                 { 'label'       => 'All C files:',
359                   'type'        => 'list',
360                   'list'        => glob('*.c'),
361                   'value'       => 10 }
362         ] );
364  * Password protecting files works (but they cannot be opened yet, so this
365    is far from useful, unless you use mp 3.x to open them).
366  * Case sensitivity in searches can be controlled with the new
367    config flag mp.config.case_sensitive_search.
368  * Replace (and global replace by use of the new config flag
369    `mp.config.global_replace') works.
371 4.99.11
372 -------
374  * Syntax highlight definition have changed (again, hopefully for the last
375    time). Definitions are now an array of attribute name / regexes in which
376    the order is significative.
377  * Template insertion works.
378  * Tag selection (open the file where a symbol is defined) works.
379  * Symbol completion (using tags) works.
380  * Closed bugs #1159, #1158, #1153, #1161.
382 4.99.10
383 -------
385  * A big advance in the Curses interface; alerts, confirmations, and open
386    file, save file, search and generic prompts are working. Still lacking
387    the selection lists (as the rest of interfaces) and the menu.
388  * Improved menus; if an invalid action is added to a menu, it's shown
389    followed by a ?; if a key is bound to that action, it's shown between
390    square brackets.
391  * For systems lacking iconv support (MS Windows), a crappy, ad-hoc utf-8
392    converter has been added. This means that hitting `escape' and typing
393    `encoding('utf-8');' makes reading and writing utf-8 encoded files
394    possible on every system.
395  * New action `join_paragraph', to join current paragraph all in one line.
396  * New action `word_wrap_paragraph', that re-word-wraps current paragraph.
397    Word wrapping must be set ('mp.config.word_wrap = number;') for this to
398    work.
400 4.99.9
401 ------
403  * The GTK and win32 drivers now include a native open/save file dialog.
404  * Interactive help (help for the word under the cursor, triggered by
405    pressing `f1') works.
406  * The menu in GTK and win32 works.
407  * New icon!
408  * Some bugs that caused random crashes has been fixed.
409  * New action `exec-doc', that executes the active open document as
410    MPSL code.
412 4.99.8
413 ------
415  * New configuration option `mp.config.tabs_as_spaces', to store tabs
416    as spaces.
417  * Each syntax highlight definition can contain an optional function
418    called detect() that receives the document as argument and can be used
419    to tailor special detection rules.
420  * A big part of the internal storage of colors and attributes have
421    been rewritten to make it more dynamic.
422  * Tag target for the word over the cursor is shown in the status line.
423  * Move word left works.
424  * Opening an already open file makes it the active one instead of
425    re-opening it.
426  * The `execute code' action has been remapped from `ctrl-f1' to escape.
427  * Spellchecking via ispell works (though it's SLOW!). Activate it by
428    hitting escape and typing:
430         mp.ispell(1);
432  * By default, files are now unlinked before (re)written. File permissions
433    and ownership are restored if available. This behaviour can be disabled
434    by setting `mp.config.unlink' to zero.
435  * The GTK driver drawing code has been optimized, so it's much more
436    responsive now.
438 4.99.7
439 ------
441  * The `modified' flag of documents is maintained, so now closing files
442    with pending modifications ask for confirmation. Also, the %m status
443    line directive works (marking modified files with an asterisk).
444  * Flex and bison are no longer needed to build.
445  * The `close window' button in GUIs (win32 and GTK) now generate the
446    special keycode `close-window'.
447  * The `exit' action now closes all open documents, asking for saving
448    confirmation on those modified.
449  * Temporary versions of the `open' ans `save' actions (using
450    mp.drv.readline() instead of an ad-hoc open file dialog) have
451    been implemented.
452  * The GUI interfaces now can have their font preferences configured
453    by using mp.config.font_face and mp.config.font_size.
454  * The actions `zoom-in' and `zoom-out' (font size rescaling, bound to
455    `f11/f12' and `ctrl-kp-minus/ctrl-kp-plus') have been implemented.
456  * New mouse-related actions; `move-to-mouse-position', `move-mouse-wheel-up'
457    and `move-mouse-wheel-down'.
459 4.99.6
460 ------
462 This is an EXPERIMENTAL version for evaluation purposes only. There are
463 many things that aren't implemented, others fail miserably and many more
464 do it incorrectly. Basically, what is known to work is:
466  * Basic text editing fully works. I've been using it for six months or so
467    to maintain itself, and there has not been a crash in three months,
468    more or less.
469  * Scripting works fine (90% of Minimum Profit 5.x itself is implemented
470    in MPSL, its internal scripting language).
471  * Undo works fine. It's bound to ctrl-z.
472  * Works cleanly in an UTF-8 environment.
474 I do development on the GTK version, so it's where it works best. The
475 curses version lacks many of the interface (alerts, confirmations,
476 asking for text, etc.), so it's barely usable. The win32 version seem
477 to work, but it needs to be manually installed and probably need some
478 tweaking.
480 What it doesn't work:
482  * The dialogs to open or save a file by its name aren't implemented.
483    There are workarounds for this: files can be opened from the command
484    line and save works correctly if the edited file has a name. Also,
485    files can be opened by hitting `ctrl-f1' (execute script code) and
486    typing:
488         mp.open("file-to-be-opened");
490  * There is no menu.
491  * No ispell support.
492  * No password protected files.
493  * No grep.
494  * No external commands (so no support for help, tags, etc.).
495  * Some movement commands as moving a word left, moving to matching
496    brackets, etc. are still not implemented.
497  * Only a few syntax highlight definitions are implemented.
498  * Many other things I cannot remember.
500 Documentation is still scarce: the more interesting bits are inside the
501 mpsl/doc directory. This is where the scripting language is documented,
502 with some basic overviews and implementation notes (there is even an
503 embryo of a PostScript quick reference guide).
505 Customizing can be done by writing MPSL commands in the ~/.mp.mpsl file,
506 which is read on startup.
508 I have not tried to optimize the internal engine, so it's probably some
509 magnitudes slower than the 3.x version.