summary refs log tree commit diff
Commit message (Collapse)AuthorAge
* Cache the expanded prompt for editlineJune McEnroe2020-12-23
| | | | | | | | | | | | | | | | | | | Previously, the prompt would be expanded every time editline called the getprompt callback. I think the code may have been written assuming that editline only calls getprompt once per prompt, but it may actually call it many times, for instance every time you type backspace. This results not only in slower editing from expanding complex prompts repeatedly, it also consumes more and more stack memory each time getprompt is called. This can be seen by setting PS1 to some command substitution, typing many characters at the prompt, then holding backspace and observing memory usage. Thankfully all this stack memory is freed between prompts by the stackmark calls around el_gets. This change causes prompt expansion to always happen in the setprompt call, as it would when editline is disabled, and a cached copy of the prompt is saved for getprompt to return every time editline calls it. Since getprompt is no longer doing expansion, the stackmark calls surrounding el_gets can be removed.
* Bind libedit's secret filename completion functionJune McEnroe2020-12-22
| | | | | | | | | | Check if the FreeBSD (and by extension macOS) _el_fn_sh_complete version of the function exists, which does shell escaping of completed filenames before _el_fn_complete learned to. Tab is bound after calling el_set() and el_source() since the default bindings set tab to something else, and it should always be filename completion in the shell.
* Build with libedit by defaultJune McEnroe2020-12-22
|
* Fail if building --with-libedit and can't find libeditJune McEnroe2020-12-22
| | | | | Previously, configure --with-libedit would only fail in the case where libedit is available but its header file histedit.h is not.
* Merge commit '71c7cbab2b50436db940721a10d6ea1ca5d75f89' as 'bin/dash'June McEnroe2020-12-22
|\ | | | | | | From tag 'v0.5.11.2'.
| * Squashed 'bin/dash/' content from commit a45870fJune McEnroe2020-12-22
| | | | | git-subtree-dir: bin/dash git-subtree-split: a45870f71f42be6bf3c8eada04debd1008f9dc3e
* Limit prune.sh to ~/.config ~/.localJune McEnroe2020-12-22
| | | | | Otherwise macOS gets very mad as it tries to access a bunch of protected directories.
* Match the number part of the argument to :RFCJune McEnroe2020-12-21
| | | | This fixes pressing K on "RFC3501", for example.
* Move rfc.vim to doc/rfcJune McEnroe2020-12-21
| | | | | That default path is a bit wonky, but it prevents having to template rfc.vim for basically no reason.
* Move rfc to doc/rfcJune McEnroe2020-12-21
|
* Move wcfix to port/wcwidthJune McEnroe2020-12-21
|
* Update PDF URLsJune McEnroe2020-12-21
|
* Move pdf to doc/pdfJune McEnroe2020-12-21
|
* Remove TF2 configJune McEnroe2020-12-21
| | | | | Uninstalled TF2 and upgraded to macOS Catalina which can't run it ever again. Goodbye TF2, you used to be fun.
* Emit tags for section headings without trailing dotsJune McEnroe2020-12-20
| | | | | Some RFCs reference other sections like "(Section 1.2)", where the section header says "1.2.".
* Depend on rfc-index.txt.gz in MakefileJune McEnroe2020-12-20
|
* Convert :RFC number to numberJune McEnroe2020-12-19
| | | | This removes any leading zeros such as in rfc-index.txt.
* Move :RFC to plugin scriptJune McEnroe2020-12-19
|
* Sort RFC tags fileJune McEnroe2020-12-19
| | | | | This supposedly lets vim do binary search on the file, not that it seemed slow before. Also handle section headings with no names.
* Open rfc-index.txt for :RFC without argumentJune McEnroe2020-12-19
|
* Include rfc-index.txt in RFC syncJune McEnroe2020-12-19
|
* Add :RFC vim command to view IETF RFCsJune McEnroe2020-12-18
| | | | | | This sets iskeyword so that ^] will work for the kinds of tags generated by rfctags.pl, and keywordprg so that K on another RFC number will view that one. It also binds gO to jump to the table of contents of the RFC.
* Add scripts to download, compress and tag IETF RFCsJune McEnroe2020-12-18
|
* Fix bibsort name sorting for middle names, trailing titlesJune McEnroe2020-12-18
| | | | Correctly sorts "Kevin L. Mitchell" and "K. Zeilenga, Ed." for example.
* Add bibsortJune McEnroe2020-12-15
| | | | | My first perl script! hi doesn't have syntax highlighting for perl, and I don't think I could sanely implement it, but oh well.
* Add modem -r flag to set baud rateJune McEnroe2020-12-08
| | | | | | Also fix it to continue reading output, rather than exiting as soon as the child exits... Except on macOS this still doesn't seem to work correctly for some reason.
* Clean up variable expansions in c.shJune McEnroe2020-12-07
|
* Add I Feel It AllJune McEnroe2020-12-06
|
* Handle const strings in c -eJune McEnroe2020-12-05
|
* Disable mouse in htopJune McEnroe2020-12-05
| | | | I feel like this option is new, otherwise I would have unset it before.
* Note lack of macro expansions in Q(...)June McEnroe2020-12-03
|
* Fix missing "to" in "hot tips"June McEnroe2020-12-02
|
* Publish "hot tips"June McEnroe2020-12-02
|
* Publish "Inability"June McEnroe2020-11-26
| | | | I don't know, it's something.
* Render content into atom feedJune McEnroe2020-11-26
| | | | And fix some atom lints.
* Update plan with different things I won't doJune McEnroe2020-11-26
|
* Add "Come On Petunia"June McEnroe2020-11-19
|
* Add x4 to LESSJune McEnroe2020-11-13
|
* Remove modified sensitivity settingsJune McEnroe2020-11-04
|
* Remove editJune McEnroe2020-10-29
|
* Switch gr alias back to git rebaseJune McEnroe2020-10-27
| | | | | I always type out git reset and sometimes still expect gr to be rebase... Never got used to it I guess.
* Allow cd host: to cd to same path over sshJune McEnroe2020-10-27
|
* Use SendEnv for cd host:pathJune McEnroe2020-10-27
| | | | Works properly for weird paths, etc.
* Allow cd host:path over sshJune McEnroe2020-10-27
| | | | Requires AcceptEnv SSH_CD in the remote sshd_config.
* Use mandoc -T utf8 for text.June McEnroe2020-10-07
| | | | Don't depend on LANG being set.
* Add The Awakened KingdomJune McEnroe2020-09-20
| | | | A cute extra novella. Finally finished this series.
* Move /opt/local back, cheat port select to use system manJune McEnroe2020-09-12
| | | | | | This is not really how you're supposed to use the select system, I don't think, since the mandoc package actually creates those files, but it does work. This lets me actually use the git installed by MacPorts.
* Move /opt/local behind /usr againJune McEnroe2020-09-12
| | | | | | The reason I did this with pkgsrc was because I actually don't want the man(1) from mandoc, since it won't follow MANSECT. Same applies to MacPorts. I wish I could disable its man(1) with a variant or whatever.
* Enable toc in cgit renderings of man pagesJune McEnroe2020-09-12
| | | | | | | | But keep it disabled for READMEs since they always use non-standard sections and the TOC is just distracting there, I think. Also add the style so its h1 is the same size as the ones inside sections...
* Install mandoc on macOSJune McEnroe2020-09-11
|