summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2001-05-24add blobs.Artur Grabowski
2001-05-24Add a compile/grep/id-utils mode.Artur Grabowski
The only pollution this code introduces in the rest of thed code is a call to an init function in main(). In the future we might want to load extensions like this dynamically. Of course I did the test compile in the compile mode.
2001-05-24No need for the extra prefixes here anymore.Artur Grabowski
2001-05-24No need for those extra maps now.Artur Grabowski
2001-05-24Make the keymap/mode table growable in runtime.Artur Grabowski
2001-05-24Don't assume that map_table[0] is the fundamental map.Artur Grabowski
2001-05-24Add a missing piece of something I committed by accident that IArtur Grabowski
planned to add later. A new flag to veread (and caller) called EFDEF that indicates that when a user is prompted for input, a default value is given from start in the output buffer.
2001-05-24Break out function -> name mappings to an own file.Artur Grabowski
Add a possibility to dynamically extend the function table.
2001-05-24fix back a piece of my own stupidityMichael Shalayeff
2001-05-24Give the arguments in the right order to keyname.Artur Grabowski
2001-05-24spacesMichael Shalayeff
2001-05-24vararg bye bye, spacesMichael Shalayeff
2001-05-24no need to cast va_arg outputMichael Shalayeff
2001-05-24use strlcpy vs cpy+len, some other fixesMichael Shalayeff
2001-05-23cinfo is const, keyname() and findbind() take buffer size to use strlcpy vs ↵Michael Shalayeff
cpy+len
2001-05-23functnames can be const, some spacesMichael Shalayeff
2001-05-23Get rid of unnecessary casts of NULL.Artur Grabowski
2001-05-23sprintf instead of two strcpy (there was a bug here)Artur Grabowski
2001-05-23version string is constantMichael Shalayeff
2001-05-23Bye, bye varargs. We're __STDC__.Artur Grabowski
2001-05-23remove VOID. We're way beyond the point where this could build with anArtur Grabowski
ancient compiler.
2001-05-23Use 'fundamental_map' where 'map_table[0].p_map' or 'name_map("fundamental")'Artur Grabowski
were used.
2001-05-23export "fundamental_map" that points to the fundamental keymapArtur Grabowski
2001-05-23prettyArtur Grabowski
2001-05-23No need to export nfunct and functnames now that help doesn't use themArtur Grabowski
anymore. nfunct isn't used anywhere.
2001-05-23Call it 'C-SPC', not 'NUL'. Less confusing.Artur Grabowski
2001-05-23Simplify a lot of code in the help functions.Artur Grabowski
It might be a bit more cpu-intensive now, but it shrinks the code a lot.
2001-05-23export free_file_list. XXX - it doesn't belong in echo.c and it's the wrong ↵Artur Grabowski
name.
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