summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2016-04-14Add 'sentence-end-double-space'.Mark Lumsden
If you prefer "lighter" punctuation and one space between sentences, for example: Mr and Mrs Jones are from the UK. They arrived today. over more liberal use of full stops and double spaces between sentences: Mr. and Mrs. Jones are from the U.K. They arrived today. then toggling 'sentence-end-double-space' will make mg's fill-paragraph function format text using one space instead of two (the default) between sentences. However, be careful, should you have a double spaced document and accidentally "format" it to have single spaces, then you may have a problem. mg won't be able to revert the formatting for you (unless you have a previous version of the text in the "undo" history, or are using mg's backup facility and haven't opened and saved multiple times!). Comments from schwarze@
2016-04-12Stop mg putting a space at the end of a paragraph when usingMark Lumsden
fill-paragraph. Reported by Harald Dunkel.
2016-03-17Show modes for buffers more clearly. ok jasper@Mark Lumsden
2016-03-16notab mode is not enabled at the moment.Mark Lumsden
2016-01-26ensure the backup file has the same mtime as the original file, this is in lineJasper Lievisse Adriaanse
with emacs' behaviour. from Harald Dunkel via Han Boetes ok lum@
2016-01-19Bounds check while stripping trailing slashes. From max atSunil Nimmagadda
max-fillinger.net. Ok lum@
2016-01-19Update my mail address.Sunil Nimmagadda
2016-01-19Fix bad indents. From max at max-fillinger.netSunil Nimmagadda
Ok lum@ jasper@
2016-01-19Check snprintf(3) return value for overflow instead of manual lengthSunil Nimmagadda
check. From max at max-fillinger.net. Ok lum@ jasper@
2016-01-19Skip empty entries in $PATH instead of erroneously interpretingSunil Nimmagadda
them as ".". Ok lum@ jasper@
2016-01-03Allow macro execution to continue without delay in the event of aMark Lumsden
visble bell call.
2016-01-02Add dired-find-alternate-file.Mark Lumsden
2015-12-31Return FALSE on parse errors.Sunil Nimmagadda
Found by and Ok lum@.
2015-12-30Small tidy of recently committed transpose-words: unused valueMark Lumsden
assignment and I missed an ABORT case.
2015-12-30Widen the dired command list. ok jmc@Mark Lumsden
2015-12-29Add transpose-words, ok jasper@.Mark Lumsden
Limited to one iteration until 'undo' is looked into.
2015-12-24Add -R option to allow files specified on the command line to beMark Lumsden
opened read-only. ok jasper@ phessler@ and man page advice from jmc@
2015-12-23Do undo.Mark Lumsden
2015-12-22Remove commands that are not implemented, at the moment. Added byMark Lumsden
accident in previous diff.
2015-12-21Add RET to dired-find-file. ok jasper@Mark Lumsden
(and jasper@ ok'd recent tutorial diff, forgot to mention)
2015-12-21Mention dired.Mark Lumsden
2015-12-14s/begining/beginning/gmmcc
2015-12-11Remove NULL-checks before free().mmcc
2015-12-05Fix an incorrect use of sizeof(pointer) by removing it and switchingJonathan Gray
from strncasecmp to strcasecmp which will stop matching strings with unwanted trailing characters. ok jasper@ deraadt@
2015-11-19"tty proc exec", not "proc exec tty"Anthony J. Bentley
2015-11-18shrink differences between ttinsl/ttdellJasper Lievisse Adriaanse
2015-11-18whitespaceJasper Lievisse Adriaanse
2015-11-18Remove "space-to-tabstop" from the manpage - it is not enabled,Reyk Floeter
ifdef'ed with NOTAB, and doesn't seem to work. OK lum@
2015-11-14The people who wrote this code are not on your sideStuart Henderson
2015-11-12Update the dired mode comments.Mark Lumsden
2015-11-11needs pledge "getpw" alsoTheo de Raadt
2015-11-11pledge "stdio rpath wpath cpath fattr proc exec tty" seems to work.Theo de Raadt
there are a few system, popen, fork... ok florian
2015-11-11Clear the mini buffer once a question has been displayed. ok jasper@Mark Lumsden
2015-11-09use strncasecmp()Jasper Lievisse Adriaanse
ok lum@
2015-11-09no need to initialize variables that are being initialized a few lines belowJasper Lievisse Adriaanse
ok lum@ on a previous diff
2015-11-08whitespaceJasper Lievisse Adriaanse
2015-10-31mark *Completions* buffer as read-onlyJasper Lievisse Adriaanse
ok lum@
2015-10-29I assume KRANDOM was the previous name for FFRAND. KRANDOM is not inMark Lumsden
the mg source now.
2015-10-29Fix opening dired from the command line. Incorrect cursor placementMark Lumsden
and make the error more useful when there is a problem opening a directory. Reported by and ok jasper@
2015-10-29This sausage is made from unsound meat.Ted Unangst
2015-10-13Check if a file name can be extracted from a line before marking forMark Lumsden
deletion.
2015-10-12Maintain a list of files marked for deletion while refreshing a diredMark Lumsden
buffer. Previously, when refreshing the buffer the files marked for deletion would be lost. Since the relationship between the files that have been marked for deletion and those that exist on disk is volatile, I have chosen to implement the discovery of marked files during the refresh function as opposed to maintaining a dired buffer specific list.
2015-10-12Correctly mark-up some recent additions. ok jmc@Mark Lumsden
2015-10-10Make functions that accept multiple iterations via C-u N, honour 0.Mark Lumsden
Except C-k which has a defined behaviour. In mg, C-t doesn't complete n iterations if requested, but probably should, hence it has been included in this diff.
2015-10-10Call onlywind() properly.Mark Lumsden
2015-10-09Fix line number bug when calling onlywind().Mark Lumsden
2015-09-29Check to see if the file to be opened is a directory as soon as isMark Lumsden
feasible. Currently, mg does this check much later on which means some functions (e.g showbuffer()) are called multiple times. This fixes the location of the cursor when opening a directory using filevisit, findvisitalt and poptofile. ok jasper@
2015-09-29rename random.c to util.c so it doesn't look scary. (util.c repo copied)Ted Unangst
ok deraadt guenther
2015-09-29Delete the final, inscrutable NOSTRICT and VARARGS lint commentsPhilip Guenther
ok millert@
2015-09-29Mark eread(), veread(), and eformat() as printf-like andPhilip Guenther
Convert eread(buf, a2, a3, a4) to eread("%s", a2, a3, a4, buf) ok millert@ lum@