Commit Graph

56 Commits (0fd5d60477ee2f6a0da4136e6a4c03b59611928b)

Author SHA1 Message Date
David Lawrence Ramsey 0fd5d60477 revert last changes, as the "Go to Directory" prompt can allow movement
anywhere, so the error message won't make sense in some cases


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3701 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 07:26:14 +00:00
David Lawrence Ramsey 780f1d3f78 fix breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3700 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 07:12:14 +00:00
David Lawrence Ramsey 6cefb9f21a in do_browser(), display an error messsage on the statusbar if we try to
move up from "/" via the "Go to Directory" prompt, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3699 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 07:03:42 +00:00
David Lawrence Ramsey d04037760d in do_browser(), after entering "..", select the directory we were in
before instead of the first filename in the list, as Pico does; add new
function browser_select_filename() to help do this properly


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3698 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 06:41:31 +00:00
David Lawrence Ramsey ef45a2528c add missing comments
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3697 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 05:12:53 +00:00
David Lawrence Ramsey 727c244ab6 in findnextfile(), simplify the uses of tail()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3696 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 04:46:24 +00:00
David Lawrence Ramsey 68e2c375e7 in browser_refresh(), for the ".." entry, display "(parent dir)" instead
of "(dir)", as Pico does


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3695 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 03:19:28 +00:00
David Lawrence Ramsey 99c87ccb0c in browser_refresh(), fix problems where translated versions of "(dir)"
could be truncated, and where file sizes could be too long


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3694 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 02:44:11 +00:00
David Lawrence Ramsey 4e71ab6891 add missing blank line
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3693 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-30 02:26:26 +00:00
David Lawrence Ramsey b0c1bc28f8 in browser_refresh(), simplify more things
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3692 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-29 15:46:05 +00:00
David Lawrence Ramsey 0e92adf153 in browser_refresh(), simplify the for loop
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3691 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-29 15:28:39 +00:00
David Lawrence Ramsey 3b722460b8 in do_browser(), remove unneeded call to blank_edit()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3690 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-29 15:08:00 +00:00
David Lawrence Ramsey 6c8f92c092 cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3688 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-28 23:27:07 +00:00
David Lawrence Ramsey 2f94f42730 in do_browser(), refactor and simplify the mouse support, modeling it
after do_mouse() for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3687 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-06-28 22:38:11 +00:00
David Lawrence Ramsey ce8623669b handle statusbar blanking in one place instead of many, so that it
always works consistently, per Benno Schulenberg's patch (with a few
tweaks of mine); also, blank the statusbar after 26 keystrokes instead
of 25, for compatibility with Pico


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3541 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-21 21:23:21 +00:00
David Lawrence Ramsey 60edb0a989 improve NANO_REFRESH_KEY handling
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3520 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-15 15:17:50 +00:00
David Lawrence Ramsey 10f8e880ba cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3519 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-15 14:47:16 +00:00
David Lawrence Ramsey e2c9c58104 typo fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3518 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-15 14:34:11 +00:00
David Lawrence Ramsey 8803dd8768 remove unneeded blank lines
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3517 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-15 14:16:55 +00:00
David Lawrence Ramsey 4218206fec still more comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3498 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 16:09:36 +00:00
David Lawrence Ramsey 31efe99e20 more comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3497 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 16:03:59 +00:00
David Lawrence Ramsey 02a7f84412 in browser_refresh(), make sure the highlighting of the currently
selected file or directory respects the -D/--boldtext option


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3492 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 12:37:15 +00:00
David Lawrence Ramsey 26dd1b66de simplify
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3491 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 04:17:21 +00:00
David Lawrence Ramsey 0df4de37c3 in browser_refresh(), change variable i from an int to a size_t in order
to match selected, which it's compared against


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3490 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 03:57:16 +00:00
David Lawrence Ramsey f2fe1fd263 cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3489 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 03:44:49 +00:00
David Lawrence Ramsey 3cba266d4d comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3488 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 03:40:17 +00:00
David Lawrence Ramsey 0ec909cb98 add the ability to move to the first and last file in the file browser
via Meta-\ (Meta-|) and Meta-/ (Meta-?)


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3479 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-06 15:07:26 +00:00
David Lawrence Ramsey b22c80ad1d remove various redundant key checks
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3477 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-06 13:41:59 +00:00
David Lawrence Ramsey cf1879b706 tweak the shortcut list a bit more, and add Space and - as aliases for
PageDown and PageUp in the help browser, per Benno Schulenberg's
suggestions


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3445 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-27 23:39:49 +00:00
David Lawrence Ramsey bc80cb1ba7 readd the Cancel -> Exit aliases for the file browser and help browser,
per Benno Schulenberg's suggestion, and clean up a few other
miscellaneous things


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3428 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-24 23:03:21 +00:00
David Lawrence Ramsey e38b808959 implement filename searches in the file browser
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3334 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 07:03:04 +00:00
David Lawrence Ramsey 231158d61a in do_browser(), make old_selected a size_t too, to match selected
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3315 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-23 23:17:27 +00:00
David Lawrence Ramsey 27ad0cdb37 in do_browser(), make fileline and the static selected size_t's, since
the latter can hold the value of the former, and the former can be that
large


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3312 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-23 20:36:29 +00:00
David Lawrence Ramsey 7369c75828 remove erroneous assert
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3304 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-16 17:45:12 +00:00
David Lawrence Ramsey 6816007242 make sure browser_refresh() is used when refreshing or doing tab
completion at the prompt in the file browser


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3296 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-18 21:32:29 +00:00
David Lawrence Ramsey 1f907c7413 rename browser_draw() to browser_refresh() for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3295 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-10 19:02:30 +00:00
David Lawrence Ramsey d83af2fea7 fix file browser breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3294 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-10 03:27:48 +00:00
David Lawrence Ramsey d4bae13d8d move the browser drawing routines to a separate function, browser_draw()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3293 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-09 23:26:26 +00:00
David Lawrence Ramsey a8a9050083 really fix input parsing in the file browser
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3292 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-09 22:53:54 +00:00
David Lawrence Ramsey c0dcdf43c6 in do_browser(), properly restore the file list display after returning
from the help browser at the "Go To Directory" prompt, and rename
variable j to i, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3286 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-08 19:27:02 +00:00
David Lawrence Ramsey 47d917eea7 remove redundant code
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3285 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-08 05:16:32 +00:00
David Lawrence Ramsey 8a1a886fbe add another missing blank line
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3284 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-08 05:01:58 +00:00
David Lawrence Ramsey 5443b46241 add missing blank lines
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3283 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-08 04:02:30 +00:00
David Lawrence Ramsey 9d8c284135 allow tab completion of directories at the "Go To Directory" prompt
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3280 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 21:11:05 +00:00
David Lawrence Ramsey ef9dc83a4b fix file browser breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3279 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 20:10:28 +00:00
David Lawrence Ramsey 24e0a465c1 in do_browser(), properly set currshortcut back to the file browser
shortcut list after a "Go To Directory" prompt


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3276 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 05:14:55 +00:00
David Lawrence Ramsey 91a2a69c4f rework input parsing in the file browser to be more flexible
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3275 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-02-07 04:41:44 +00:00
David Lawrence Ramsey 034b994eb5 since proto.h includes nano.h, and nano.h includes config.h first,
include proto.h first and remove redundant includes of config.h in all
non-header source files


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3236 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-12-08 02:47:10 +00:00
David Lawrence Ramsey 315eb3280a adjust copyright notices in all source files to account for Chris'
reassigning the 2005-2006 copyright on nano to me


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3215 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-28 19:35:29 +00:00
David Lawrence Ramsey ccd1b7b50a miscellaneous minor fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3201 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2005-11-18 20:21:48 +00:00