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