blob: 02e759139cfa121149417abf6c0d3ea80a7649ba [file] [log] [blame]
Chris Allegretta18666092000-11-24 01:37:14 +00001CVS code -
Chris Allegrettabe77c612000-11-24 14:00:16 +00002- General
3 - Added configure argument --disable tabcomp. Affects
4 configure.in, configure, bottom of files.c and write_file, and
5 winio.c:nanogettsr().
6 - Username tab completion code, and cleaned up existing tabcomp
7 code. New functions real_dir_from_tide(), append_slash_if_dir(),
8 username_tab_completion is more than a stub now =-).
Chris Allegretta8a0de3b2000-11-24 20:45:14 +00009 - New options --enable-extra. New code in nano.c:version() to
10 print out various options from ./configure, function do_credits().
Chris Allegretta72623582000-11-29 23:43:28 +000011 - Ignore key sequence 543 & 545, right control and alt keys in
12 windows. Affects main() and winio.c:nanogetstr().
Chris Allegretta650e8a42000-11-24 14:15:17 +000013- files.c:
14 write_file()
15 - Unsetting modified on temp files bug fixed (Rocco Corsi).
Chris Allegretta25f4e582000-11-25 05:03:20 +000016 do_insertfile()
17 - Added call to real_name_from tilde, oops.
Chris Allegretta24946bd2000-11-26 21:34:47 +000018 read_file()
19 - Added check for fileptr == NULL.
Chris Allegretta07798352000-11-27 22:58:23 +000020- global.c:
21 shortcut_init()
22 - Now takes an argument as to whether to display the unjustify
23 shortcut or the normal uncut text one. Needed to accomodate
24 the klugey unjustify code.
Chris Allegretta8be8ce22000-11-28 02:15:30 +000025- nano.1, nano.1.html:
26 - Updated date on pages because of -p changes.
Chris Allegretta9149e612000-11-27 00:23:41 +000027- nano.c:
28 do_justify()
Chris Allegretta8be8ce22000-11-28 02:15:30 +000029 - Wrote unjustify code. Borrows cutbuffer and stores the unjustified
30 text there, then grabs the next keystroke and, if the unjustify
31 key, gets rid of the justified text and calls do_uncut_text.
32 Added macro NANO_UNJUSTIFY_KEY.
Chris Allegrettad00e6df2000-11-29 04:33:26 +000033 do_int_spell*
34 - Various fixes (Rocco Corsi).
35 - Changed abort of program to aborting based on value of "edit a
36 replacement" question, and not caring about the replace loop
37 return value. That way the user can get out of the replace loop
38 and continue spell checking (very important to me anyway).
39- search.c:
40 do_replace_hilight()
41 - New function, displays the currently selected word as hilighted
42 in the spell check. Called from do_replace_loop (Rocco Corsi).
43 - Added calls to curs_set(0) and (1) to diable the cursor when
44 hilighting, looks much better.
Jordi Mallachd819a4c2000-11-25 04:50:25 +000045- es.po:
46 - Traditional Spanish strings updates.
Chris Allegrettabe77c612000-11-24 14:00:16 +000047
Chris Allegrettaca7a21d2000-11-24 01:35:40 +000048nano 0.9.21 - 11/23/2000
Chris Allegrettaf26bca72000-11-21 03:04:45 +000049- AUTHORS
50 - Added Rocco Corsi.
Chris Allegretta31c76662000-11-21 06:20:20 +000051- nano.c:
52 main()
53 - Changed check for argc == 1 to argv[optind] == NULL to decide
54 whether or not to display "New File" in the statusbar.
Chris Allegrettaaaabe1f2000-11-19 18:20:07 +000055- search.c:
56 findnextstr()
Chris Allegretta1cc29f62000-11-20 01:29:37 +000057 - Fix curent_x increment bug by using another variable (Rocco Corsi).
Chris Allegrettaef601bb2000-11-19 19:15:03 +000058 search_init()
59 - Silly typo in our "one simple call" of statusq. Stopped
60 previous search string from being displayed.
Chris Allegrettac793c432000-11-21 12:52:55 +000061 do_replace()
62 - Copy back the previous value of last_replace into answer if
63 using PICO_MODE and answer == ""
Chris Allegretta6c5781b2000-11-23 01:19:58 +000064- winio.c:
65 do_up()
66 - Deleted first update_line() call, screws up display when marker is set.
Chris Allegrettad466ab72000-11-19 20:36:41 +000067- nano.1, nano.1.html
68 - Updated man page for new -p definition.
Chris Allegrettaac0e63a2000-11-19 02:25:43 +000069
Chris Allegretta6da149a2000-11-19 02:23:03 +000070nano 0.9.20 - 11/18/2000
Chris Allegretta67574f42000-11-03 03:35:29 +000071- General
72 - Ran source through indent -kr again. Make everything pretty.
73 - Changed behavior of "search" and "replace" prompts to make all
74 previous values editable. This change was made so that you can
75 replace with the null string without needing a special key for it.
76 changed code in search_init(), do_replace(), nanogetstr (see
77 below).
78 - Added some missing gettext calls here and there (Jordi).
79 - Revamped nanogetsr() and calls to it to use variable length strings.
80 MANY changes in nanogetstr(), many chances in search.c, new
81 function mallocstrcpy which is sure to be a programmatic
82 nightmare, changed last_search, last_replace, answer to
83 pointers. New function not_found_msg in search.c for displaying
Chris Allegrettacbb0f8b2000-11-15 03:50:02 +000084 truncated strings in satusbar when the string is not found
85 (-pedantic fixes by Rocco Corsi). We disable this feature when
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +000086 using PICO_MODE (-p).
Chris Allegretta27eb13f2000-11-05 16:52:21 +000087 - New spelling code by Rocco Corsi. New functions
88 do_int_speller, do_alt_speller, changes to do_spell in nano.c,
89 New functions search_init_globals and do_replace_loop, changes
90 to search_init(), do_replace, findnextstr, moved last_search and
91 last_replace back to nano.c (*shrug*).
Chris Allegretta04d848e2000-11-05 17:54:41 +000092 - New tab completion code. Used check_wildcard_match, input_tab,
93 cwd_tab_completion, username_tab_completion from busybox,
Chris Allegretta7da4e9f2000-11-06 02:57:22 +000094 hacked them a lot, changes to nanogetstr(). nanogetstr() and
95 statusq() now take an arg for whether or not to allow tab
96 completion.
Chris Allegretta5bf51d32000-11-16 06:01:10 +000097 - Fixed value being input in statusbar during a search or replace
98 and CASE_SENSITIVE or the other search is called and the
99 string being typed in is blown away. Reported by Ken Tyler.
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000100 - Changed PICO_MSGS flag to PICO_MODE, changed help strings
101 accordingly.
Chris Allegretta92d2bab2000-11-02 14:53:46 +0000102- files.c:
103 do_writeout()
104 - Change strcpy to answer to mallocstrcpy.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000105- global.c
Chris Allegretta105da332000-10-31 05:10:10 +0000106 - New global replace_list_2, for 2nd half of the replace dialog
107 ("Replace with:"), has fewer options than first half because
108 they were inapropriate.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000109 toggle_init()
110 - Added #ifdef around toggle_regex_msg to get rid of compiler
111 warning.
Chris Allegretta1cc0b7f2000-11-03 01:29:04 +0000112
113- nano.c:
114 keypad_on()
115 - New function, toggles turning the keypad on and off in edit and
116 bottomwin(). Added call to this in finish(), fixes bug #45.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000117- search.c
118 findnexstr()
119 - New arg for begin_x variable, basically a rewrite that
120 makes a little more sense and isn't quite as messy (Rocco Corsi).
121 - Update the line we're checking if not the whole screen, because
122 it's quite possible the search team could exist somewhere way
123 to the right on the same line, for example.
124 replace_abort()
125 - Add reset of placewewant, stops cursor from jumping when moving
126 cursor after a replace.
Chris Allegretta810632d2000-10-27 04:36:01 +0000127 do_replace()
128 - Added code for Gotoline key after entering the search term.
129 Fixes bug #46.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000130 - Removed redundant code involving processing replacemenet string.
131 Converted if statements to switch statements.
132 - Optimizations by Rocco Corsi.
Chris Allegretta105da332000-10-31 05:10:10 +0000133 - Removed code for deleted shortcuts from in replace_list_2.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000134 do_search()
135 - Converted if statements to one switch statement.
Chris Allegrettaf9b6c9b2000-10-18 19:35:59 +0000136- winio.c
137 nanogetstr()
138 - Added check for 343 in while loop to get rid of getting "locked"
139 into statusbar" bug in odd $TERMs like iris-ansi.
Chris Allegretta105da332000-10-31 05:10:10 +0000140 - Changed check to return -2 on "enter" from answer == ""
141 to answer == def.
Chris Allegretta04d848e2000-11-05 17:54:41 +0000142 - Fixed fallthrough code because there was no break. Make much
143 more sense now.
Chris Allegretta5b1faac2000-11-16 19:55:30 +0000144 - Added check for ASCII 54[124] when using PDCURSES, ignore them
145 if noticed.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000146 nanoget_repaint()
147 - New function, removes about 30 lines of duplicate code in
148 nanogetstr().
Chris Allegretta90594e22000-11-02 15:53:40 +0000149 - Black magic code to make $ appear in prompt if we're past
150 COLS.
Chris Allegretta2c975222000-11-15 01:25:42 +0000151 blank_edit()
152 - Removed wrefresh() call, much less choppy now. If there's a need
153 for a wrefresh after a specific call, let me know.
Jordi Mallach0ae0dcd2000-10-28 12:38:02 +0000154- es.po:
Jordi Mallachd25385b2000-11-18 03:31:21 +0000155 - Updated translation for 0.9.20 (Jordi).
Chris Allegrettad7934d42000-10-03 05:39:29 +0000156
Chris Allegretta07e97d62000-10-03 01:52:50 +0000157nano 0.9.19 - 10/02/2000
Chris Allegrettaad1dacc2000-09-21 04:25:45 +0000158- General
159 - Added PDCurses support under cygwin, which allows building
160 a nice stand-alone nano.exe for those poor Windows users.
161 Extra check in configure.in for initscr() in -lcurses (as
162 PDcurses has no tgetent), some #ifdef PDCURSES statements
163 in main().
Chris Allegretta66989d62000-09-27 03:16:11 +0000164 - Changed web site and email to new nano-editor.org domain.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000165- nano.c
Chris Allegretta9e7efa32000-10-02 03:42:55 +0000166 - Added (int) casts to remove compile warnings with -Wall.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000167 main()
168 - Added check for _POSIX_VDISABLE around term variable definition.
Chris Allegrettadf3afdc2000-10-01 17:50:29 +0000169- search.c
170 - Added initializations for last_search and last_replace (Rocco Corsi)
171
Chris Allegretta629edad2000-09-19 00:27:19 +0000172nano 0.9.18 - 09/18/2000
Chris Allegretta805c26d2000-09-06 13:39:17 +0000173- General
174 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
175 added check for regex.h in configure.in.
Chris Allegretta90bd7122000-09-13 18:12:05 +0000176- configure.in:
177 - Added default case for cross-compiling to get rid of annoying
178 AC_TRY_RUN warning.
Chris Allegretta429a5512000-09-05 13:09:56 +0000179- cut.c:
180 do_cut_text()
181 - Don't immediately abort if we're on filebot and the marker is
Chris Allegrettad746d902000-09-05 13:15:44 +0000182 set (fixes bug #42).
Chris Allegrettaf45c18d2000-09-16 05:25:06 +0000183- files.c:
184 open_file()
185 - Fix for bug #44 (Rocco Corsi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000186- global.c:
187 shortcut_init()
188 - Added in FKEYs that for some reason were left out. *boggle*
Chris Allegretta9239d742000-09-06 15:19:18 +0000189- nano.c:
Chris Allegretta2a42af12000-09-12 23:02:49 +0000190 main()
Chris Allegretta9239d742000-09-06 15:19:18 +0000191 - Added check for _POSIX_VDISABLE and use raw mode if not
192 available, allows nano to work with cygwin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000193 - Added gettext calls to enable/disable strings (Jordi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000194 - Revamped a great deal of the F-key and keypad key handling,
195 because we not longer use keypad() (see below).
196 - Removed keypad() call because nano was not working with the
197 keypad in many terms, which is very bad.
Chris Allegretta9c35eb02000-09-13 14:24:52 +0000198 - Made insert key call do_insertfile().
Chris Allegretta2a42af12000-09-12 23:02:49 +0000199 do_toggle()
200 - Rewrote function to allow NOHELP toggle to wotk on systems
201 without a working resizewin(). New function window_init().
Chris Allegretta0b88ce02000-09-15 15:46:32 +0000202 mouse_init()
203 - Add keypad only if mouse support is on, otherwise mouse doesn't
204 work. I guess you have to choose between having the mouse and
205 having a working keypad for the time being (thank god for Meta-m).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000206- winio.c:
207 total_refresh()
208 - Added titlebar() call.
Chris Allegrettae7034c62000-09-15 03:31:09 +0000209 onekey()
210 - Off by one error fix fix ;-) (Rocco Corsi).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000211
Chris Allegrettab9bfc9b2000-09-10 05:06:09 +0000212- search.c:
213 findnextstr()
214 - Reset starting at current for search instead of begin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000215- es.po:
216 - Translated new strings and minor updates (Jordi).
Chris Allegretta834a69d2000-09-18 17:11:33 +0000217- de.po
218 - Revised translations by floki@bigfoot.com
Chris Allegretta429a5512000-09-05 13:09:56 +0000219
Chris Allegretta423cbfd2000-09-04 16:21:29 +0000220nano-0.9.17 - 09/04/2000
Chris Allegretta756f2202000-09-01 13:32:47 +0000221- General
222 - New shortcuts to toggle certain options that are normally only
223 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
224 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
Chris Allegrettae49f1232000-09-02 07:20:39 +0000225 called from shortcut_init(), and do_toggle in nano.c. Also
226 moved the signal code into a separate function in nano.c called
Chris Allegretta18f8be02000-09-04 03:20:38 +0000227 signal_init(). Moved "struct sigaction act"into a static in
228 nano.c.
Chris Allegrettae49f1232000-09-02 07:20:39 +0000229 - Changed from Alt-key symbol (@) which is completely nonstandard
230 to the *nix "Meta" symbol (M-). Changed help_init to show
231 the M-key usage and the help text to explain keys whcih generate
232 Meta. Moved the toggle Meta keystrokes to the first column
233 instead of the third as they are the primary keystrokes for the
Chris Allegretta9541f2a2000-09-02 07:31:32 +0000234 functions. Thanks Mini editor team :->
Chris Allegretta756f2202000-09-01 13:32:47 +0000235 - Changed last_search and last_replace vars to statically
236 allocated (hence nulled) and moved to search.c (Matt Kraai).
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000237- global.c:
238 toggle_init()
239 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
240 "Help mode". See the change to do_toggle() below.
Chris Allegrettae10debd2000-08-22 01:26:42 +0000241- nano.c:
242 do_mouse()
243 - Patch for handling lines w/tabs and mouse better (Ben Roberts).
Chris Allegretta340d6e52000-08-29 03:55:29 +0000244 do_wrap()
245 - Made wrapping code less ambitious.
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000246 do_toggle()
247 - Added checks for no help and no wrap mode, and print opposite
248 enable/disable message.
Chris Allegretta18f8be02000-09-04 03:20:38 +0000249 do_suspend(), do_cont():
250 - New functions, handle suspend signal in a Pico-like manner and
251 work with Meta-Z.
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000252- winio.c:
253 total_refresh()
254 - Added edit_refresh() call to actually update the screen if messy.
255 edit_refresh_clearok()
256 - New function, does a total update for edit refresh, needed to fix
257 lack of reversed text on searching with MARK_ISSET.
Chris Allegrettadabc3cb2000-08-25 01:44:12 +0000258 onekey()
259 - Off by one error fix (Rocco Corsi).
Chris Allegrettae7034c62000-09-15 03:31:09 +0000260
Chris Allegretta6306a112000-09-02 07:55:41 +0000261 update_line()
262 - Added check for binary data >= 1 and <= 26, and use ^+letter
263 to display it. Should fix editing text files with binary
264 data in them. Placing of the cursor seems to be a bit screwed
265 though...
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000266- search.c:
267 search_abort()
268 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
269 ugliness bug (reported by Ken Tyler).
Chris Allegrettae10debd2000-08-22 01:26:42 +0000270 findnextstr():
271 - Added reset for placewewant (Ben Roberts).
Chris Allegretta9babaf32000-08-30 13:49:33 +0000272 - Fixed check for string that only occurs on the same line failing
273 (discovered by Ken Tyler).
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000274
Chris Allegrettaba96f7a2000-08-09 21:38:28 +0000275nano-0.9.16 - 08/09/2000
Chris Allegretta7dc14e82000-08-05 16:03:19 +0000276- cut.c:
277 do_cut_text()
278 - Fixed getting locked into cutbuffer on cutting first line of file.
Chris Allegrettac86f7142000-08-07 14:39:32 +0000279 - Added check_statblank().
280 - Check for fileptr == filebot, if so return, we shouldn't bother
281 cutting the magic line.
282 do_uncut_text()
283 - Added check_statblank().
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000284- nano.c:
285 main()
286 - Changed tabsize long arg to actually accept an argument *sigh*.
Chris Allegretta81b1eea2000-08-05 16:09:07 +0000287- po/Makefile.in.in:
288 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
289 Christian Weisgerber)
Chris Allegrettab4dc9e02000-08-05 22:49:30 +0000290- configure.in:
Chris Allegrettaa2efc362000-08-09 03:26:33 +0000291 - New (and severally revised =) slang test code (Albert Chin-A-Young)
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000292
Chris Allegretta0bf4e142000-08-04 02:42:04 +0000293nano-0.9.15 - 08/03/2000
Chris Allegretta234a34d2000-07-29 04:33:38 +0000294- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
295 Affects many many functions. Removed functions edit_update_top and
296 edit_update_bot.
Chris Allegretta6d690a32000-08-03 22:51:21 +0000297- Added global variable tabsize, we no longer screw with the curses
298 library in order to implement -T (suggested by Christian Weisgerber).
Chris Allegretta7a6f0d92000-07-31 13:00:24 +0000299- configure.in:
300 - Finally fixed check for slang to report "no" if not called
301 with --with-slang or --without-slang
Chris Allegretta7975ed82000-07-28 00:58:35 +0000302- nano.c:
Chris Allegretta18bd0292000-07-28 01:18:10 +0000303 splice_node()
Chris Allegretta7975ed82000-07-28 00:58:35 +0000304 - New function, abstracts linking in nodes. Fixes bug #36.
Chris Allegretta6925bbd2000-07-28 01:41:29 +0000305 null_at()
306 - New function, nulls a string at a given index and realigns it.
Chris Allegretta18bd0292000-07-28 01:18:10 +0000307 delete_buffer()
308 - Removed, same as free_filestruct().
Chris Allegrettada721be2000-07-31 01:26:42 +0000309 do_backspace()
310 - Now calls page_up_center instead of page_up (as it should?)
311 do_enter()
312 - Fixed typo (?) in check for inptr->next. Caused lots of
313 grief for editing lines at filebot.
Chris Allegretta99bf73f2000-08-04 00:22:08 +0000314 main()
315 - Removed now useless usrtabsize variable (Christian Weisgerber).
Chris Allegretta18bd0292000-07-28 01:18:10 +0000316- search.c:
317 replace_abort()
318 - redundant, now just calls search abort until it does something
319 different.
Chris Allegretta95b0b522000-07-28 02:58:06 +0000320- winio.c:
321 edit_refresh()
322 - Added check for current line "running" off the screen.
323 Hopefully this will not cause any recursive lockups.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000324 (Who am I kidding, of course it will!)
Chris Allegrettaed022162000-08-03 16:54:11 +0000325 - Added check to stop infinite loop calling edit_update.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000326 edit_update()
327 - Rewritten, hopefully this will remove a lot of the
328 scrolling the cursor back and forth needlessly.
Chris Allegretta1a471392000-07-28 14:08:01 +0000329- move.c:
330 page_down()
Chris Allegretta234a34d2000-07-29 04:33:38 +0000331 - do an edit_update() at last case. Made function more like
332 Pico's version, only move down to two lines before editbot.
333 page_up()
334 - Made function more like Pico's version, only move down to two
335 lines after edittop.
Chris Allegretta7975ed82000-07-28 00:58:35 +0000336
Chris Allegrettaa1a55c72000-07-28 00:36:03 +0000337nano-0.9.14 - 07/27/2000
Chris Allegretta05597192000-07-24 21:16:12 +0000338- nano.h:
339 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
340- cut.c:
Chris Allegretta962c3c92000-07-24 21:52:17 +0000341 do_cut_text()
Chris Allegretta05597192000-07-24 21:16:12 +0000342 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
Chris Allegretta0e5faca2000-07-27 13:32:46 +0000343 - Simplified check for freeing cutbuffer. Added checks for doing
344 multiple cuts with -k, now sets marked_cut to 2 for later
345 processing by do_uncut_text().
346 do_uncut_text()
347 - Added handler for uncutting with -k cuts.
Chris Allegretta962c3c92000-07-24 21:52:17 +0000348- files.c:
349 write_file()
350 - Removed (redundant) check for writing out files with -t.
351 do_writeout()
352 - Changed check for filename to filename[0]. Added some code,
353 overall fixes bug #30 =-)
Robert Siemborskia417ddc2000-07-24 23:18:48 +0000354- nano.c:
355 do_justify() & do_wrap():
356 - totsize-related fixes (Rob)
Chris Allegretta2ece1672000-07-27 15:25:52 +0000357- de.po
358 - Revised translations by floki@bigfoot.com
Chris Allegretta05597192000-07-24 21:16:12 +0000359
Chris Allegretta1d7110d2000-07-23 16:59:07 +0000360nano-0.9.13 - 07/23/2000
Chris Allegretta627de192000-07-12 02:09:17 +0000361- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
Chris Allegrettad19e9912000-07-12 18:14:51 +0000362 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
363 depends on the marker code which is not available with that setting.
Chris Allegretta30885552000-07-14 01:20:12 +0000364- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
365 -t with an unwritable file causes users to get locked into editor).
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000366- move.c
367 page_down()
368 - Don't edit_refresh() if the bottom of the file is in the edit
369 buffer. (Adam)
Robert Siemborski6967eec2000-07-08 14:23:32 +0000370- nano.c:
371 main():
372 - TABSIZE now set before first call to edit_refresh (Bill Soudan)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000373 - Different ^C kill code (patch by Christian Weisgerber).
Robert Siemborskifcf32bf2000-07-17 03:04:54 +0000374 die():
375 - More intelligent emergency-save filename selection (Rob)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000376 do_spell():
377 - Changed exit semantincs a bit so that aspell wouldn't get
378 all screwy (bug disovered by Joshua Jensen.
379- files.c:
380 read_file():
381 - Added init of buf variable, hopefully this will stop the
382 "bleeding" of text seen with mutt and using i18n.
Chris Allegrettaacb62342000-07-21 22:42:46 +0000383 write_file():
384 - Added code to check to see if using -l and the file is not
385 in fact a link. This should fix the behavior where a file
386 that does not have write permission but could be removed and
387 rewritten is saved without error. Please test this feature
388 and give feedback.
Chris Allegrettaa4d21622000-07-08 23:57:03 +0000389- search.c:
390 search_init():
391 - Added " (to replace)" statement to end of search string if
392 we are doing a replace. Manually converted all the translations
393 from '%s' to '%s%s' to ensure they still work with the new code.
394 Also put in the translation for " (replace)" in the .po's. Hope
395 I didn't step on your toes doing this Jordi. (Chris)
Chris Allegretta635fae32000-07-09 03:26:34 +0000396 do_search(), do_replace():
397 - Removed call to search_abort()/replace_abort() before call to
398 the opposite function.
Chris Allegrettafa8f7bf2000-07-12 02:41:13 +0000399 - Fixed bug #28.
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000400 findnextstr()
401 - do not center string found if it is currently visable. (Adam)
Chris Allegretta7539a822000-07-09 23:55:13 +0000402- fr.po:
403 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
Jordi Mallach8d7ac1b2000-07-13 03:10:01 +0000404- es.po:
405 - Updated strings to 0.9.13 (Jordi).
Robert Siemborski6967eec2000-07-08 14:23:32 +0000406
Chris Allegrettae955dae2000-07-07 22:24:59 +0000407nano-0.9.12 - 07/07/2000
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000408- all:
Chris Allegretta9fc8d432000-07-07 01:49:52 +0000409 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
410 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
411 replace_line, replace_regexp in search.c, changes to
Chris Allegretta47805612000-07-07 02:35:34 +0000412 search_init() and do_replace() and strstrwrapper().
413 - Added _POSIX_VERSION check to regexp code. Better than nothing
414 for non-POSIX systems...
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000415 - Made search functions & keys more like Pico. Added goto line from
416 search and replace function, changed wording to "No Replace" instead
417 of "To Search", "To Replace" to simply "Replace", and changed to
418 Pico's keystroke by default, ^R. Affects search_init(),
419 do_search() in search.c, globals in nano.h and
420 shortcut_init() in global.c.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000421 - changed 'sprintf' calls to safer 'snprintf' (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000422- cut.c
423 - further totsize update corrections
Robert Siemborskideca3e72000-07-04 02:40:41 +0000424- files.c:
425 - changed do_insertfile to call fix_editbot (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000426 - Magic Line code in read_file (Rob)
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000427- nano.c:
428 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Chris Allegrettadbc12b22000-07-03 03:10:14 +0000429 - Removed unnecessary do_oldspell function (Rocco Corsi). Added
430 SMALL_NANO #ifdef around actual spell function.
Chris Allegretta1e57e682000-07-03 04:24:39 +0000431 - Moved page_up() to move.c where is belongs.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000432 - Corrected FIXME in do_enter with explanation. (Rob)
433 - Fixed FIXME in do_justify, resulted in creation of
434 fix_editbot [also fixed in do_enter] (winio.c) (Rob)
Robert Siemborskicdff0152000-07-07 01:58:52 +0000435 help_init():
436 - Moved newline out of if statement (Rocco Corsi)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000437 do_char():
Robert Siemborski23ecb172000-07-04 22:21:40 +0000438 - Magic Line related code in do_char (Rob)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000439 do_backspace(), do_delete():
440 - Added magic line code here too.
441
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000442- de.po:
Chris Allegretta6e805852000-06-22 01:53:29 +0000443 - Revised translations by floki@bigfoot.com.
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000444- fi.po:
445 - Finnish translation by pauli.virtanen@saunalahti.fi.
Robert Siemborski23ecb172000-07-04 22:21:40 +0000446- utils.c:
447 - Added new_magicline()
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000448- winio.c:
Chris Allegrettadba37ae2000-07-07 05:13:09 +0000449 - Added stdlib.h to includes, found by OpenBSD gcc.
Robert Siemborski20d61d52000-07-08 00:43:35 +0000450 - lots of new commenting around display functions
Chris Allegretta5204ea92000-06-22 01:56:23 +0000451 do_yesno(), nanogetstr():
452 - Removed now unnecessary raw/cbreak combos.
Jordi Mallach0b0fc492000-06-23 01:00:13 +0000453 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
454 we decide if those keybindings should be translated. (Jordi)
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000455 clear_bottomwin():
456 - Removed wrefresh(edit) call.
Chris Allegretta48fd2cb2000-07-03 04:31:13 +0000457 edit_update_top():
458 - Fixed a bug that caused nano to not update when
459 current->next == NULL (e.g. paging down to the very bottom of
460 ABOUT NLS wouldn't work).
Robert Siemborskideca3e72000-07-04 02:40:41 +0000461 fix_editbot:
462 - Added (should rebuild editbot from a valid edittop) (Rob)
Robert Siemborski20d61d52000-07-08 00:43:35 +0000463 edit_add:
464 - removal of redundant call to mvwaddnstr
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000465
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000466nano-0.9.11 - 06/20/2000
Chris Allegretta790198d2000-06-20 00:40:01 +0000467- New flag "-T" or "--tabsize" to specify how to display tab widths.
468 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
469 winio.c, and nano.h. Many harcoded "8"s have been changed to the
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000470 TABSIZE int. Added changes to nano.1 and nano.1.html.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000471- id.po:
472 - Indonesian translation by Tedi Heriyanto.
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000473- es.po:
474 - Updated translation (Jordi Mallach).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000475- winio.c
476 - Rewrite of display functions to correct the display problems
477 we had been seeing. Affects: add_marked_sameline, edit_add,
478 and many others. (Rob Siemborski)
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000479 - totsize fixes (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000480 total_refresh():
481 - Cut dispaly_main_list call, as this function is only supposed to refresh
482 what's already on the screen, not go through the process of adding the
483 text again.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000484- cut.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000485 - totsize fixes (Rob Siemborski)
Chris Allegretta12de8e82000-06-09 02:40:50 +0000486- nano.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000487 - experimental do_wrap and check_wrap (Adam Rogoyski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000488 - Removed editwineob, as it was redundant for (editwinrows - 1).
489 Changed all calls to editwinrows - 1 in nano.c and move.c.
490 - Removed all functions that were split into other files.
491 Affects LOTS of funcs.
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000492 do_enter():
493 - Added reset of placewewant to end.
Robert Siemborski10eab1d2000-06-18 01:05:00 +0000494 do_insertfile():
495 - Fix display problem when using ctrl-r to load a file
496 into the buffer (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000497 handle_sigwinch():
498 - Added titlebar(), edit_refresh() and display_main_list() calls because
499 a resize wasn't picking up on possible different width correctly.
500- utils.c:
501 - Moved nmalloc() and nrealloc() here.
502- move.c:
503 - New file, contains movement functions (like do_home(), do_up(),
504 do_down(), page_up(), etc...).
505- files.c:
506 - Contains functions for files (read_file, insert_file,
507 do_writeout(), etc).
508- search.c:
509 - Contains all our searching and related functions, (do_search(),
510 findnextstr(), do_replace(), do_gotoline()).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000511
Chris Allegrettaa2ea1932000-06-06 05:53:49 +0000512nano-0.9.10 - 06/04/2000
513- es.po:
514 - Translation updates (Jordi).
515- AUTHORS, nano.1.html, TODO, README:
516 - Documentation and email address updates (Jordi).
517- nano.c:
518 main():
519 - Moved Adam's termio code down to after getopt() and before initscr()
520 to stop people losing their SIGINT character when using args that
521 exit nano before it runs (--version, --help, etc).
522
523nano-0.9.9 - 05/31/2000
524- Makeile.am:
525 - Added proper lines for defining LOCALEDIR.
526- configure.in:
527 - Spelling fixes (Jordi Mallach)
528 - Removed CFLAGS changes for gcc, reduces portability according to
529 some, and it certainly doesn't seem to decrease exe size.
530- es.po:
531 - Spanish ranslation updates (Jordi Mallach)
532- POTFILES.in:
533 - Added global.c file, was screwing up translations (i.e. they
534 weren't getting done).
535- cut.c:
536 add_to_cutbuffer():
537 - Added totsize increment.
538 - Cut fixes and optimizations (Rob Siemborski).
539 do_uncut_text():
540 - Added totsize increment in several places.
541- nano.c:
542 headers:
543 - Removed LOCALEDIR define.
544 do_justify():
545 - Added edit_refresh() call (bug discovered by Adam).
546 page_down_center():
547 - Added call to edit_update(current) for last case. Removed
548 increment of current_y since it's now just wasteful.
549 do_enter():
550 - Added totsize increment.
551 renumber(), renumber_all():
552 - Removed totsize-- and totsize init in renumber_all.
553 do_mouse():
554 - Added edit_refresh() call to show hilight updates. Removed
555 unnecessary wrefresh(edit).
556 main():
557 - Moved up locale calls so that translated --help messages would
558 actually get translated.
559 do_backspace(), do_delete():
560 - Added decrement of totsize.
561 init_help_msg():
562 - New function, initializes help text if NANO_SMALL isn't set (fixes
563 broken i18n).
564 read_file():
565 - malloc call changed to nmalloc (Rob Siemborski).
566- winio.c:
567 total_refresh():
568 - Completely rewrote function, not quite so braindamaged now.
569
570nano-0.9.8 - 05/18/2000
571- nano.c:
572 main():
573 - Added awesome code that disables the CINTR and CQUIT
574 character (Adam Rogoyski). Removed raw()/noraw() calls so that
575 nano gets input in 'normal' mode, which is the Right Way(tm) to
576 do it. ^S, ^Z and ^Q now work properly as a result, as well as
577 ^C. New variable term, global bariable oldterm to save previous
578 term settings, and changes to finish() and die().
579 - Added extra #ifdefs in getopt code, so that above code and
580 flag init is run even if GETOPT_LONG is not #defined.
581 - Added memset line before sigactions. (Adam Rogoyski)
582 do_suspend():
583 Removed function, see above for why.
584- winio.c:
585 update_line(), center_cursor():
586 - Removed wrefresh(edit) from bottom of functions. wrefresh
587 should now only be called once, at the bottom of the main()
588 loop.
589- global.c:
590 shortcut_init():
591 - Removed suspend sc_init call and suspend message because suspend is no
592 longer needed in the shortcut list to work properly.
593
594nano-0.9.7 - 05/14/2000
595- nano.c:
596 do_home(), do_end():
597 - Added calls to update_line for the current line, fixes
598 lack of update (bug discovered by Alberto García).
599 main():
600 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
601 following symlinks even when -l isn't set, and "no changes"
602 error when nano is called from crontab -e (Adam Rogoyski).
603- cut.c:
604 do_cut_text():
605 - Added edit_update_top to cut when mark is set, fixes lack of
606 display update (bug discovered by Ken Tyler).
607
608nano-0.9.6 - 05/08/2000
609- New Italian translation (it.po), by Daniele Medri.
610- nano.c:
611 page_up(), page_down():
612 - Added reset of placewewant to 0, as it should be.
613 do_up(), do_down():
614 - Added call to update_line() for line we move from and line we
615 move to, in order to keep the highlighting correct.
616 do_wrap():
617 - Added var chop, new code to wrap lines more like Pico, mostly.
618 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
619- winio.c:
620 do_help():
621 - Added edit_refresh() before exit.
622 update_cursor():
623 - Removed cursor updating which really wasn't needed anyway.
624 edit_update():
625 - Removed yucky code that didn't work, this function now just
626 computes edittop and editbot and calls edit_refresh() to do the
627 rest, which removes a lot of dupliicate code..
628
629nano-0.9.5 - 05/01/2000
630- Removed bytes from file struct because it was computationally wasteful.
631- cut.c:
632 do_uncut_text():
633 - Added call to edit_refresh().
634- nano.c:
635 do_backspace():
636 - Added reset of editbot when deleting the last line of the file
637 (bug discovered by Adam).
638 do_char():
639 - Removed call to reset_cursor().
640 do_delete():
641 - Added similar check as to do_backspace().
642 do_enter():
643 - Added call to edit_refresh().
644 do_left(), right():
645 - Added call to update_line(), still redundant but better...
646 do_up(), do_down():
647 - Added refresh calls both for current line and line to which
648 we are moving.
649 main():
650 - Removed inefficient call to edit_refresh() after every keystroke.
651 It is now up each function to leave the screen in a good state.
652- winio.c:
653 do_cursorpos()
654 - Rewritten to not use bytes from filestruct by an incremental sum.
655 update_line(), reset_cursor():
656 - Optimized calls to xplustabs() through a single variable.
657 - update_line() now takes a new arg, an index into the string
658 for where to update the line from. Needed for new update
659 code.
660- configure.in:
661 - Better checks for slang, allows argument to --with-slang.
662 (Albert Chin-A-Young)
663 - Removed -Iintl from CFLAGS in gcc check.
664- Makefile.am:
665 - Addition of -Iintl for gettext (Albert Chin-A-Young)
666
667nano-0.9.4 - 04/25/2000
668 - Fixed calls to no_help and changed them to the more consistent
669 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
670 not 1. Code to temporarily disable NO_HELP when in the
671 help system. (Adam Rogoyski)
672- cut.c:
673 do_marked_cut(), do_cut(), do_uncut():
674 - Commented out unnecessary bits when NANO_SMALL is being used.
675- winio.c:
676 xpt(), strlenpt(), actual_x():
677 - Added check for value of data[i] & 0x80, if so do not make
678 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
679 edit_refresh():
680 - New check for temp == NULL (bad thing), if so go back to the
681 previous line. New filestruct var hold points to prev line.
682 Fixes segfault when paging down to the end of a file.
683- nano.c:
684 write_file():
685 - Added check for if file exists and is not equal to the current
686 filename, prompt for overwrite (Adam Rogoyski).
687 do_down():
688 - Removed check for current->next == NULL, now checks return value
689 of do_down before setting current_x = 0 (discovered by Adam).
690 do_justify():
691 - Fixed segfault when reaching the last line (tried to assign
692 currrent->next->data when current->next == NULL) (discovered
693 by Adam).
694- utils.c:
695 - Removed extra macro defs that are now in nano.h.
696- nano.h:
697 - Changed macro SET() to use |= instead of ^=. Fixes bug in
698 cut code when cutting more than one line, and cutbuffer gets
699 blown away when it shouldnt.
700
701nano-0.9.3 - 04/29/2000
702- cut.c:
703 do_marked_cut():
704 - Fixed off by one error in cut code for marked text.
705 do_cut_text():
706 - Removed check for being on the last line, part of
707 magic line code.
708 add_to_cutbuffer():
709 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
710 - Added inptr->prev = NULL for case where cutbuffer == NULL.
711- nano.c:
712 do_backspace(), do_char():
713 - Removed "magic line" code. It was basically causing more bugs
714 than it was helping for the sake of compatibillity. This fixes
715 at least one known segfault condition.
716 do_enter():
717 - Added setting editbot to new node if the new node is the last
718 node in the file.
719 write_file():
720 - Changed writing file bahavior. Now, if last line of the file
721 has any data on it, we write a newline on it, else we dont.
722- winio.c:
723 add_marked_sameline():
724 - New code that checks for whether the begin and end of the marker
725 are on different lines. Missing previously.
726 edit_add():
727 - added some more checks for text length. Cleaned up some mvwaddnstrs that
728 could be written more simply as waddnstrs.
729 edit_refresh():
730 - Removed check for temp == filebot, it is now treated like any other line.
731 Fixes a bug where selected text on the last line shows normally.
732 xpt():
733 - Removed an extra computation for tabs variable that was incorrect.
734 xplustabs():
735 - Since xpt now actualy works, this func is now just a wrapper for
736 xpt(current, current_x)
737- nano.1, nano.1.html:
738 - Added -l option to man pages.
739- configure.in:
740 - New option --enable-tiny, #defines NANO_SMALL in config.h.
741 Disables call to gettext in functions and other i18n stuff in
742 nano.c, the detailed help mode, the resize functions, and the
743 justify code which no one ever uses.
744 - New option --with-slang. Enables slang libraries instead of
745 ncurses, requires slcurses.h for wrapper functions. (Based
746 on patches for 0.8.7 by Glenn McGrath).
747
748nano-0.9.2 - 04/15/2000
749- This release just fixes the serious segfault problem if nano is
750 invoked any way other than using the absolute path. The bug was
751 in the new code for checking whether nano is invoked as pico.
752
753nano-0.9.1 - 04/14/2000
754- Added pico compatibility for ^T when in search or switch to switch
755 to the opposite function. Added one to REPLACE_LIST_LEN and
756 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
757 new strings that will have to be gettex()ed. New argument 'replacing'
758 to search_init(). Handlers in do_replace and do_search().
759- New write code, now follows symbolic links instead of replacing them
760 with the new file. New option (-l, --nofollow) to enable the old
761 (incorrect, but secure) behavior (Adam Rogoyski).
762- nano.c:
763 do_wrap():
764 - Fixed another bug relating to wrapping, and which would cause
765 a segfault *sigh*.
766 do_replace():
767 - Incremented current_x by the length of the replacement
768 text inside the main repalce loop. Fixes bug #15.
769 add_marked_sameline():
770 - New function, handles marked text when start & end of marker is
771 on one line, also supports most marked text when cursor > COLS.
772 main():
773 - Code to check if nano is invoked as 'pico', and if so
774 automatically set pico_msgs (Robert Jones).
775
776nano-0.9.0 - 04/07/2000
777- nano.1, nano.1.html: Updated man page with my email address and homepage.
778- winio.c:
779 reset_cursor(), update_line():
780 - Changed update algorithm for x value to (COLS - 7) multiple when x
781 value > (COLS - 2).
782- edit_refresh():
783 - Removed inner loop code, now calls update_line() for each line
784 in question, MUCH nicer.
785- xplustabs(), xpt():
786 - Removed redundant increment of tabs when collumn no % 8 == 0.
787 - Added check for data[i] < 32, most of such bits are 2 chars wide.
788- update_line():
789 - Fixed a stupid call to strlenpt with col when we should have
790 been using actual_col. Ugh.
791
792nano-0.8.9 - 03/22/2000
793- nano.c:
794 empty_line(), no_spaces(), justify_format(), do_justify():
795 Actually added these (screwup applying patch).
796 do_justify(): Added call to set_modified().
797
798nano-0.8.8 - 03/12/2000
799- Preliminary internationalization support. Many many functions modified
800 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
801 New dirs po/ and intl/, changes to configure.in and Automake.am to
802 support i18n.
803- nano.c:
804 includes: Ddded sys/param.h and limits.h. (Adam Rogoyski).
805 statics: Changed some things that were not necessarily static
806 (Adam Rogoyski).
807 nrealloc(): New function, similar to nmalloc(). Changed calls from
808 realloc() to nrealloc (Adam Rogoyski).
809 empty_line(), no_spaces(), justify_format(), do_justify():
810 New functions for justify function (Adam Rogoyski).
811- winio.c:
812 blank_edit(): Added wrefresh call to edit so that screen updates (like
813 on ^L) actually work.
814 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
815
816nano-0.8.7 - 03/01/2000
817- main.c:
818 do_wrap(): Better fix for segfaults, and fix for lisnes being wrapped
819 to a single character on one line when no good place to
820 break the line exists, and for wrapping lines longer than COLS.
821- nano.1.html:
822 Html version of man page, now included in dist. For
823 the benefit of nano packages in Linux distributions.
824
825nano-0.8.6 - 02/24/2000
826- gobal.c:
827 shortcut_init():
828 Added shortcuts for goto_line and do_replace when using
829 pico_msgs. Oops.
830- nano.c:
831 statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
832 do_wrap(): Added check for backing up past tabs, which we shouldnt do.
833 Removed check for backing up past spaces first.
834 main(): Added for loop to check for alt keys instead of hard list.
835 do_enter(): Fix for bug #14, added call to reset_cursor and messed
836 up do_char quite a bit.
837 version(): Added time and date stamp for compile on version message.
838 Added mail and web page info.
839- README: Updated mailing list info.
840
841nano-0.8.5 - 02/18/2000
842- nano.c:
843 main(): Finally fixed tilde being input on page up/down keys in
844 certain terminal types. Fix was input 26->91->5[34] check
845 for 126, if so make the kbinput PAGE UP/DOWN, else unget
846 the keystroke and continue. Added #include <ioctl.h> for
847 ioctl call.
848 handle_hup():
849 Handler for hangup signal. Belated include of patch from
850 Tim Sherwood.
851- winio.c:
852 edit_refresh():
853 Temporary fix for selecting text when temp == current.
854 edit_refresh() is now unmanagably complex, and must be
855 revamped.
856 check_statblank():
857 Added check for constupdate, makes things less choppy
858 (Adam Rogoyski)
859
860nano-0.8.4 - 02/11/2000
861- Moved global variables that were only (or mostly) used in one file into
862 its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
863- global.c:
864 shortcut_init():
865 Removed redundant NANO_CONTROL_H from backspace shortcut,
866 added char 127 which should have been there.
867- nano.c:
868 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
869 segfaults (Adam Rogoyski).
870- Makefile.am: Added all source filenames (Adam Rogoyski).
871- nano.1: Fixed mail addressed and added mailing list address.
872- README: Updated my email address and the nano web page.
873
874nano-0.8.3 - 02/08/2000
875- New pico mode (-p, --pico), toggles (more) compatibility with the
876 Pico messages displayed in the shortcut list. Note that there are still
877 small differences in this mode.
878- nano.h: New shortcut struct format, for the benefit of i18n and
879 our help menu. Removed shortcut message macros, they are
880 now all in shortcut_init in global.c.
881- nano.c:
882 do_wrap(): Removed resetting of current_x when we are in fact
883 wrapping to the next line, fixes a bug in -i mode.
884 do_enter():
885 Rewrote the autoindent mode code to be a lot less pretty,
886 but a lot more magical.
887 main():
888 Removed case for ignoring char 126 (~). That's kind of
889 important, we'll have to fix handling that sequence when
890 pageing up/down on a terminal some other way... Revamped
891 main switch loop in much snazzier fashion based on the
892 shortcut list.
893- winio.c:
894 New function display_main_list. Affects all functions
895 that used to call bottombars() with main_list. Added
896 because we now only call bottombars with the macro
897 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
898 changes to the main_list shortcut list (see global.c below).
899 New function do_help, our preliminary dynamic help system.
900- Many many funcs:
901 Changed from int to void to allow one uniform type to call
902 from the shortcut struct. Also a few functions that do
903 not simple have void argument have new functions called
904 funcname_void(void) to be called from the shortcut list.
905 do_cut_text and do_uncut_text were changed to void
906 arguments because they were never called with a filestruct
907 other than *current anyway.
908- global.c:
909 Shortcut list main_list was expanded to cover all
910 shortcuts that could be caught in the main loop.
911 Consequently there is a new macro MAIN_VISIBLE which tells
912 how many items in the main list to actually show.
913
914nano-0.8.2 - 02/02/2000
915- Added initial mouse (-m, --mouse) support. New global variable
916 use_mouse. (Adam Rogoyski)
917
918- nano.c: Set intial value of fill to COLS - 8 rather than just 72
919 regardless. (Adam Rogoyski).
920 do_delete():
921 Deleted call to do_backspace() when on the end of a line,
922 because it won't update the line properly.
923 do_backspace():
924 Removed unnecessary pointer manipulation that was being
925 handled by unlink_node().
926 open_file():
927 Added check for trying to open a directory (currently we
928 segfault on this). Bug pointed out by Chad Ziccardi.
929
930nano-0.8.1 - 01/28/2000
931- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
932 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
933 global.c and proto.h.
934- nano.c:
935write_file(): Added (incredibly) necessary check for EPERM when
936 link() fails. This allows us to actually save
937 files via rename() on filesystems that dont
938 support hard links (AIEEEEEE).
939do_goto():
940 Fixed a stupid mistake where we were calling
941 bottombars() with replace_list instead of goto_list.
942- nano.h:
943 New char *help in shortcut structure for help
944 feature. Added NANO_*_MSG and NANO_*_HELP #deifnes
945 for help function and i18n.
946- global.c:
947 New functions shortcut_init (called in nano.c) and
948 sc_init_one() to initialize the shortcuts without
949 using {}s (for i18n).
950
951nano-0.8.0 - 01/25/2000
952- View flag (-v, --view) implemented. Global variable view_mode, affects
953 main loop of nano.c and new_file(). (me)
954- nano.c:
955 split checks for TERMIOS_H and TERMIO_H up so we
956 can (theoretically) include them both, which is good.
957handle_sigwinch():
958 Added check for ncurses.h. (Andy Kahn)
959do_spell():
960 We now only try ispell because we don't as of yet
961 handle the 'spell' program the right way, now that
962 I finally know what the right way is =-). Added
963 call to edit_update(fileage) to stop segfaults.
964global_init():
965 Added initialization of edit* filestruct pointers
966 to stop segfaults on spell check.
967usage():
968 Check for getopt_long, and if no leave out the
969 GNU options everyone seems to love so much (Andy Kahn)
970main():
971 Added checks for getopt_long (Andy Kahn)
972 We ignore character 126 because it gets put into
973 the buffer when we page up/down on a vt terminal.
974write_file():
975 Fixes for umask (Adam Rogoyski). Renamed tmpfile
976 variable to tmp. Documented the tmp opttion
977 better in the function comments. Fixed my
978 stupidly commented out check for tmp on setting
979 umask which I really like =>
980- nano.h:
981 Made desc variable in shortcut struct a pointer
982 instead of a fixed-length string.
983- utils.c:
984 Fixed check for config.h before nano.h.
985- configure.in:
986 New checks for getopt_long, getopt.h, removed
987 CFLAGS and LDFLAGS changes. Gonna have to run
988 strip manually now =-) (Andy Kahn)
989 Added check for HAVE_WRESIZE, new file acconfig.h (me).
990
991nano-0.7.9 - 01/24/2000
992- New autoindent feature. Command flag 'i' or '--autoindent'. New
993 function do_char() to clean up character output, global
994 variable autoindent in global.c. (Graham Mainwaring)
995- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
996 files on exit without prompting. Affects do_writeout(). Also
997 do_writeout() now takes a parameter for if exiting.
998 Global variable temp_opt in global.c (Graham Mainwaring)
999- Preliminary spell program support. Added command flag '-s' or
1000 '--speller' for alternative speller command. Added function do_spell()
1001 and exit_spell() to nano.c. New global variable alt_speller.
1002- nano.c:
1003 main(): We now ignore input of decimal 410 because these get entered
1004 when we resize the screen. Sorted options in getopt()
1005 switch statement.
1006 usage(): Sorted options and changed tabs to make room for -s option.
1007 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
1008 doesn't print the number of lines written on the statusbar.
1009 global_init():
1010 Added more initializations to globals to support do_spell().
1011
1012nano-0.7.8 - 01/23/2000
1013- Stubbed justify function. Affects main() in nano.c and nano.h defines.
1014- Added Fkey equivalents for Pico compatibilty. Affects nano.h defines
1015 and main() in nano.c
1016- Removed redundant reset_cursor() calls from the blank() routines.
1017- nano.c:
1018 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
1019 Removed check for isprint() characters in main while loop
1020 for people with odd character sets *shrug*. Added some X
1021 window F-key combos.
1022 read_line(): New function, consolidates of most of the special
1023 sections of the file reading code. (Rob Siemborski)
1024 do_replace(): Many scattered fixes. (Rob Siemborski)
1025 write_file(): Added check for empty filename.
1026- winio.c:
1027 nanogetstr(): Fixes for deleting at places other than the end of the
1028 buffer, cut support. (Adam Rogoyski)
1029 blank_edit(): New function, blanks edit buffer. Added call to it in
1030 total_refresh().
1031- configure: Checks for glib if snprintf of vsnprintf aren't available
1032 (Andy Kahn). Changed warning message when no termcap lib
1033 is found.
1034
1035nano-0.7.7 - 01/19/2000
1036- Option '-v' for version moved to '-V', because -v is Pico's "read only"
1037 mode (affects getopt() in main() and usage() function in nano.c
1038- New flag -c, always show cursor position. Affects main() in nano.c and
1039 statusbar() in winio.c
1040- Option '-x' doesn't show help window at the bottom of the editor.
1041 New variable no_help in nano.h and proto.h, affects main(), usage(),
1042 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
1043 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
1044 hand =P) (Adam Rogoyski)
1045- nano.c:
1046 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
1047 page_up(), page_down():
1048 - New functions. We now set the cursor at the top right corner,
1049 not at the center line, and page up and down a full screen
1050 rather than a half screen. Original functions renamed to
1051 page_up_center() and page_down_center().
1052 main():
1053 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
1054 in main while loop because suspend mode was broken. This should
1055 fix it, at least for now.
1056 - Added long option support (By popular harassment ;-) - Added
1057 #include for getopt.h, changed getopt() to getopt_long().
1058 Options added so far: --version (-V), --nowrap (-w), --suspend
1059 (-z), --help (-h), --nohelp (-x).
1060 - Rewrote signal statements (Adam Rogoyski)
1061
1062nano 0.7.6 - 01/15/2000
1063- New ChangeLog format
1064- nano.c:
1065 main(): Bound CONTROL_H to backspace (oops)
1066 Added more Alt-[-key combinations, for page up & down.
1067 read_bytes(): New function (Adam Rogoyski)
1068 read_file(): Optimizations - malloc()s *buf a little at a time rather
1069 than one huge buffer, and replaced the strcat at the end
1070 with an index variable. Added call to read_bytes().
1071 do_next_word(): New function, binding is control-space (0) (me)
1072
1073- winio.c:
1074 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
1075 (formula is extra space needed = COLS / 6 - 13).
1076 actual_x() & strlenpt():
1077 Added bug#9 fix - when tabs % 8 == 0, we should only
1078 increment tabs by 1.
1079 titlebar(): Fixed overrun in titlebar on very long filenames.
1080
10810.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
1082 writing a newline at EOF. do_cursorpos and do_replace are now not
1083 directly bound to signals but picked up as their control sequences
1084 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
10850.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
1086 available memory, align bug fixed (Big Gaute).
1087
1088--- As of version 0.7.4 TIP is renamed to nano.
1089
10900.7.3 Fixed a double blank_statusbar() when jumping to first and last
1091 lines. Took out unnecessary updates in load_file. Bug fix in
1092 do_left. Missing updates to totlines, fixed bug #7 (last line not
1093 having a newline at the end doesnt get read, bugfix in do_replace
1094 with replace all, more/better comments (Robert Siemborski)
10950.7.2 Our first patch accepted into the source! configure fixes
1096 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
1097 Bug fix in update_line for editing long lines. Fixed arguments
1098 being put into the filename when none is specified. Preliminary
1099 +line command argument function.
11000.7.1 configure tweak for better FreeBSD support. Removed refresh() from
1101 edit_refresh to stop cursor "jumping" during screen updates. This
1102 will probably cause a bug or two. Replace is now Alt-R (@R) and
1103 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
1104 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
1105 Control-G will become the Help key, but for now is stubbed out.
11060.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
1107 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
1108 length file. Added Esc-[-A,B,C,D cursor key sequences.
11090.6.9 Preliminary cursor position function. Split up tip.c more, made
1110 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
1111 that was leaving out a character.
11120.6.8 By request, optchr in main() is now an int. Removed unneeded
1113 globals. Bound functions for next/prev page, and wrote functions
1114 do_home and do_end.
11150.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
1116 created read_file. Implemented Insert File. Fixes in tipgetstr
1117 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
11180.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
1119 aborted searches and more Pico-compatible messages. statusq() now
1120 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
11210.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
1122 regarding buffers with filebot in them. Fixins in do_backspace
1123 and do_enter. Removed unused variables. Removed strip_newline.
11240.6.4 Took out the awful newlines from each string buffers. This will
1125 certainly cause more bugs. Fixes in do_exit(). Better empty file
1126 handling (I hope).
11270.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
1128 do_enter() rewritten.
11290.6.2 Better default file permissions. Complete rewrite of do_wrap().
1130 Better handling of editing with cursor near COLS - 1.
11310.6.1 Starting to implement wrapping toggle. Fix for unhandled control
1132 codes being entered into the buffer. Bug fix in actual_x; more
1133 > COLS - 1 functionality, especially on lines with TABs. Fixed being
1134 locked into cutbuffer when cutting more than one marked screen of text.
11350.6.0 We have TABs!!! To do this, placewewant is now set to the actual
1136 width on the screen we want to be, not an index of current->data.
1137 New functions xplustabs and actual_x convert the actual place
1138 the cursor should be on the screen to and from the place in the
1139 string.
11400.5.5 Changed do_right to test do_down before setting current_x to 0,
1141 eliminiating the "looping" on the last line when holding the right
1142 arrow. Preliminary support for longer than COLS - 1 lines.
1143 Wrote do_delete.
11440.5.4 Fixed a big in total_update that wasn't repainting the screen properly.
1145 tipgetstr is much more messy but text is now more editable ;)
1146 Fixed crash on entering a new file, hopefully. Awful stub for tab
1147 handling, only in do_right() to save me some sanity.
11480.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
1149 Fixed a few bugs in do_uncut when not uncutting from marked text.
1150 I would not trust your data with the mark code right now, but then
1151 we're not at version 1.0 yet so dont trust anything ;)
11520.5.2 Added reset_cursor() before end of update_line so cursor doesnt
1153 jump after each keystroke entered. Select text stubbed. Fixed
1154 a bug in total_refresh(). Setting a mark will hilight properly,
1155 but does not actually affect what gets put in the cutbuffer (yet).
11560.5.1 Writing a file out causes modified to be set back to 0. Good.
1157 Set_modified function written. Cut and uncut text now set
1158 modified when called.
11590.5.0 Half way there! Implemented write out, save function seems
1160 stable. Changed statusbar blank routing to not refresh, a separte
1161 program calls it and then refreshes. Made the program not clear
1162 the srceen on exit, just the bottom two lines (like Pico).
11630.4.2 Implemented replace all in replace function. Crude exit function
1164 (asks yes or no if modified but does not write to file).
11650.4.1 Implementing search & replace. Fixed crash on deleting at top of
1166 edit buffer. Implemented "timeout" of statusbar messages.
1167 Implemented ^A and ^E (beginning and end of line).
11680.4.0 Split code into global.c and proto.h to allow for better multiple
1169 file handling. Added #defines for the majority of the shortcut
1170 kets in tip.h for easy modification.
11710.3.1 Write edit_refresh which doesn't move the screen around, just
1172 updates what's there already. do_wrap() and do_enter() added.
11730.3.0 Preliminary cutbuffer (cut and uncut) support.
11740.2.7 Check for Modification added. do_search() works.
11750.2.5 Rewrite of file data struct.
11760.2 Read in data to buffer, bound keystrokes to stub functions,
1177 initial cursor movement on screen. Initial autoconf support.
11780.1 Initial program setup w/ncurses
Chris Allegrettac87a4112000-08-07 02:16:24 +00001179
1180$Id$