summary refs log tree commit diff
path: root/bin (follow)
Commit message (Collapse)AuthorAge
...
* Lex strings inside macrosJune McEnroe2020-12-28
|
* Set H_SETUNIQUEJune McEnroe2020-12-28
|
* Add initial version of hilexJune McEnroe2020-12-28
| | | | | | | | | | hilex is meant to replace hi, based on lex rather than a mess of overlapping regexps. I want to preserve hi's tagging abilities, but that will require some amount of parsing/post-processing, which I'm not sure how to approach yet. Macro lexing for C still needs work, as I want to match strings and comments inside macros.
* Remove 1shJune McEnroe2020-12-23
|
* Fix dash Makefile compatibility with BSD makeJune McEnroe2020-12-23
|
* Fix multi-line prompts when right prompts are usedJune McEnroe2020-12-23
| | | | | | editline does not render a multi-line PS1 correctly when RPS1 is also set. To work around this, return only the last line of the cached prompt to editline, and print the leading lines separately inside setprompt.
* Add RPS1 and RPS2 right prompt variablesJune McEnroe2020-12-23
|
* 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'.
* 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
|
* Handle const strings in c -eJune McEnroe2020-12-05
|
* Remove editJune McEnroe2020-10-29
|
* Open /dev/tty in nudgeJune McEnroe2020-09-04
| | | | | This makes it work even when it's run connected to a pipe, i.e. as the notify command of catgirl...
* Add nudgeJune McEnroe2020-09-04
|
* Build fbclock with -lzJune McEnroe2020-09-03
| | | | I guess this got lost somewhere, long ago...
* Use scheme for bin htmlJune McEnroe2020-08-23
|
* Use CSS variables in scheme outputJune McEnroe2020-08-23
|
* Highlight .in files as shJune McEnroe2020-08-18
| | | | Almost always templated shell for rc scripts.
* Bump title buffer to 64KJune McEnroe2020-08-15
| | | | YouTube now sends <title> that occurs 38K into the file...
* Fix setting second title request to GETJune McEnroe2020-07-25
| | | | | | | Since 9c845be2797e2047547ec247cb037471aeb48bb0 in curl (7.71.0), setting CURLOPT_NOBODY to 1 sets the request method to HEAD, but setting it back to 0 does not change the method back to GET. Setting CURLOPT_HTTPGET both sets the request method and unsets CURLOPT_NOBODY.
* Read from stdin in orderJune McEnroe2020-07-18
|
* Add facebook and twitter to title user-agentJune McEnroe2020-07-08
| | | | | | | | | This fixes fetching tweets again! https://github.com/thelounge/thelounge/pull/ 3602 (Intentionally breaking the link so GitHub doesn't add a "referenced this PR" thing?)
* Remove aesJune McEnroe2020-06-17
|
* Fix pbd for neovimJune McEnroe2020-06-11
| | | | | At some point neovim started setting argv[0] to the absolute path for some reason.
* Add additional permission for linking with LibreSSLJune McEnroe2020-06-08
| | | | https://www.gnu.org/licenses/gpl-faq.en.html#GPLIncompatibleLibs
* Replace __DECONST with regular castsJune McEnroe2020-06-08
| | | | sed -E 's/__DECONST[(]([^,]+), ([^)]+)[)]/(\1)(\2)/'
* Replace __printflike with __attribute__((format(printf, ...)))June McEnroe2020-06-08
| | | | sed -E 's/__printf0?like[(]([^,]+), ([^)]+)[)]/__attribute__((format(printf, \1, \2)))/'
* Replace __dead2 with __attribute__((noreturn))June McEnroe2020-06-08
| | | | sed 's/__dead2/__attribute__((noreturn))/'
* Replace __FBSDID macros with commentsJune McEnroe2020-06-08
| | | | sed -E 's|__FBSDID[(]"([^"]+)"[)];|/* \1 */|'
* Remove reference to FreeBSD-specific libedit hackJune McEnroe2020-06-08
| | | | | | | | Newer versions of libedit have sane tab-complete now without FreeBSD's hacks, and in fact the hack is gone in FreeBSD-CURRENT. I'm still a little confused why binding this weird function is necessary at all, but at least it exists everywhere, I guess.
* Remove mktemp options from mkbuiltins, mktokensJune McEnroe2020-06-07
| | | | Why even?
* Cast z_stream fields to size_tJune McEnroe2020-06-07
| | | | | In the version of zlib in OpenBSD, these fields are of type off_t, which is signed (why?), rather than uLong.
* Call static_assert by _Static_assertJune McEnroe2020-06-07
| | | | | OpenBSD doesn't #define static_assert in assert.h and _Static_assert is its real name I guess so why not?
* Allow redirecting input in everJune McEnroe2020-06-01
|
* Add %c conversion to c scriptJune McEnroe2020-05-31
|
* Add c script to READMEJune McEnroe2020-05-31
|
* Add c scriptJune McEnroe2020-05-31
|
* Add hi rule for sh arithmetic expansionJune McEnroe2020-05-14
| | | | | Shell highlighting is hopeless anyway but this makes it slightly less obviously broken.
* Use . as ${LDLIBS.$@} separatorJune McEnroe2020-04-20
|
* Teach hi how to underline in IRCJune McEnroe2020-03-30
|
* Highlight diff lines without lading space as KeywordJune McEnroe2020-03-30
|
* Add HISTFILE history savingJune McEnroe2020-03-09
|
* Source .editrc before applying -v or -eJune McEnroe2020-03-09
| | | | | Otherwise a bind -v in .editrc will take precedence and overwrite the ^I binding for sh-complete.
* Add \? exit status prompt expansionJune McEnroe2020-03-09
|