summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2001-05-23When a key is bound to selfinsert, it shouldn't be considered to be boundArtur Grabowski
to anything.
2001-05-23There is no need to use name_mode when all we use from the mode is the map.Artur Grabowski
name_map gives us what we want.
2001-05-23prettyArtur Grabowski
2001-05-23Deal with another strangeness caused by the abuse of theArtur Grabowski
global ele variable.
2001-05-23Add an argument to doscan which is a pointer to a KEYMAP pointer.Artur Grabowski
If that argument is not NULL, we set it to the k_prefmap of the pressed key if there is one. This is what most of the users of doscan did anyway, but they did it through leaked global state.
2001-05-23kill complete_function. Not used anymore.Artur Grabowski
2001-05-23complt already has code to finish the completion from a list.Artur Grabowski
No point in duplicating that code in complete_function.
2001-05-23remove unused defineArtur Grabowski
2001-05-23Get rid of 'prefix' and use NULL instead.Artur Grabowski
2001-05-23Creatively use addlinef when listing buffers (C-X-C-B).Artur Grabowski
This also fixes the strange formatting that showed up when the maximal buffer name grew. Now the "Size" column starts in the middle of the visible window instead of far outside.
2001-05-23Don't include the trailing NUL in output.Artur Grabowski
2001-05-23It's unnecessary to have addline as a function. Make it a macro.Artur Grabowski
2001-05-23Add addlinef that's an addline with printf-style format arguments.Artur Grabowski
Make addline a wrapper around addlinef. (should go away)
2001-05-23When showing the matching paren, don't sleep for one second, use ttwaitArtur Grabowski
instead so that the sleep is aborted when we continue typing.
2001-05-04Cleanups in filename and buffer name handling.Artur Grabowski
Mostly just using libc instead of rolling our own.
2001-05-04Qick fix for an overflow in C-X C-B.Artur Grabowski
This function needs a lot of work.
2001-05-03Fix another annoying feature in mg. When I try to use the keypad toArtur Grabowski
escape from I-search (I don't know if it's legal, but it works in emacs) the initial ESC in the sequence is caugth by I-search (which exits), but not the rest of it which ends up written into the buffer. This is extra annoying when we don't have undo. Note that this is better than emacs because the ESC is removed if nothing indicating a multi-char sequence comes within 300 miliseconds. (Try to ESC from I-search in emacs and then press 'x').
2001-05-03Add a delay (in miliseconds) argument to ttwait.Artur Grabowski
2001-05-03 * Let make_file_list always append a '/' at the end of directories.Artur Grabowski
This makes filename TAB-completion more useful, now you don't need to write that '/' manually. * random cleanups including using snprintf and memcmp where open-coded equivalents were used, waitpid instead of 'while (wait() != pid);', etc.
2001-05-01Use opendir/readdir instead of open/read when making a file list.Artur Grabowski
This makes filename tab-completion work and takes dired a step further.
2001-05-01raise the file name and buffer name sizesArtur Grabowski
2001-04-11"Amonst" -> "Amongst"Brandon Creighton
2001-02-12goto-line 0 should go to the beginning of the file, not the end;Todd C. Miller
smart@monkey.org
2001-01-29$OpenBSD$Niklas Hallqvist
2001-01-24Don't use rename to backup the file to a ~ file. We need to make aTodd C. Miller
copy instead so the original is edited in place for things like cron and vipw.
2000-11-10- Section shuffling: comply to the section ordering outlined in mdoc(7).Aaron Campbell
- Some .Nm trimming. - .Sh AUTHOR -> .Sh AUTHORS - Other miscellaneous fixes here and there.
2000-09-01More -Wall anmd KNF, from op2@tomahawk.SQUiSH.orgTodd C. Miller
2000-08-02$HOME paranoia: never use getenv("HOME") w/o checking for NULL and non-zeroTodd C. Miller
2000-07-25o check that we are on a tty (and bail if not)Todd C. Miller
o in panic() just call exit() not abort()
2000-04-13The start of KNF + -Wall. The code has been run through indent butTodd C. Miller
needs hand fixup. I stopped at keymap.c...
2000-04-12Trailing whitespace begone!Aaron Campbell
2000-03-12If no 'begin' key on keypad, use 'home' instead since PC keyboardsTodd C. Miller
have 'home', not 'begin'.
2000-03-10Various cleanups and standardization.Aaron Campbell
2000-03-03Reverse rutgers change (attachtoparent vs. spawncli)Todd C. Miller
New ttreinit function that enters application mode, enables the keypad and resets the tty size. New spawn module that calls tttidy() to exit application mode (and cleanup) then calls ttreinit() after resume to get back into application mode. Assumes we have job control. This takes advantage of the xterm 'alternate screen'.
2000-03-02add missing return valueTodd C. Miller
2000-03-02Use a char, not a char[1] in ttgetc and cast the return value to int.Todd C. Miller
Perhaps this should really be a u_char but I don't think it really matters.
2000-03-02Reorganize to be more like the BSD version + KNFTodd C. Miller
2000-02-29some key binding examplesTheo de Raadt
2000-02-29some binding informationTheo de Raadt
2000-02-29Better backwards regexp searching. POSIX regexp's don't really giveTodd C. Miller
a good way to do this.
2000-02-29Kill old gnuemacs regex code--we now use POSIX regexTodd C. Miller
This means mg is now truly free (public domain)
2000-02-29regex.cTodd C. Miller
2000-02-29Make reverse searching work.Todd C. Miller
2000-02-28Use POSIX extended regular expressions.Todd C. Miller
Reverse regex searching does not yet work.
2000-02-28Lots of obvious clean-up, but needs more work.Aaron Campbell
2000-02-27make this compile on systems w/o TCSASOFTTodd C. Miller
2000-02-27Don't define -DDO_METAKEY twiceTodd C. Miller
2000-02-27Better setting of terminal 'raw' mode, cribbed from BSD curses.Todd C. Miller
We no longer try to put the terminal into 8bit, no parity mode and instead use the TCSASOFT flag to tcsetattr() as per the discussion of this in lib/libocurses/tty.c.
2000-02-27Move dobindkey() into extend.c where it belongs.Todd C. Miller
2000-02-27Remove a now-bogus commentTodd C. Miller
Use pid_t Use vfork(), not fork() when sensible