aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin.h
Commit message (Collapse)AuthorAge
* Support for command wrapping ("aliases")Gravatar ridiculousfish2014-08-15
| | | | | | | | | | | | | | | | | | | | | | | Add the --wraps option to 'complete' and 'function'. This allows a command to (recursively) inherit the completions of a wrapped command. Fixes #393. When evaluating a completion, we inspect the entire "wrap chain" for a command, i.e. we follow the sequence of wrapping until we either hit a loop (which we silently ignore) or the end of the chain. We then evaluate completions as if the wrapping command were substituted with the wrapped command. Currently this only works for commands, i.e. 'complete --command gco --wraps git\ checkout' won't work (that would seem to encroaching on abbreviations anyways). It might be useful to show an error message for that case. The commandline builtin reflects the commandline with the wrapped command substituted in, so e.g. git completions (which inspect the command line) will just work. This sort of command line munging is also performed by 'complete -C' so it's not totally without precedent. 'alias will also now mark its generated function as wrapping the 'target.
* Fix line number reporting in new parserGravatar ridiculousfish2014-03-20
|
* Bringup of function definitions, switch statements with new parserGravatar ridiculousfish2013-12-27
|
* Hook up for statements, if statements, and function definition in newGravatar ridiculousfish2013-12-27
| | | | parser
* Apply new indentation, brace, and whitespace styleGravatar ridiculousfish2012-11-18
|
* Remove trailing whitespaces and change tabs to spacesGravatar Łukasz Niemier2012-11-18
|
* Changed "elseif" to "else if"Gravatar ridiculousfish2012-09-03
|
* Adopt posix_spawn (!)Gravatar ridiculousfish2012-08-15
| | | | | Rewrite IO chains to be a vector of pointers, instead of a linked list Removed io_transmogrify
* Work towards getting function.h off of shared_ptrGravatar ridiculousfish2012-05-17
|
* Improved error reporting for builtin_testGravatar ridiculousfish2012-03-07
|
* Remove string_buffer_t (!)Gravatar ridiculousfish2012-03-03
|
* Large set of changes to migrate sb_out and sb_err to wcstringGravatar ridiculousfish2012-02-22
|
* Modified functions in function.h/.cpp to use wcstring instead wchar_t*, ↵Gravatar Siteshwar Vashisht2012-02-19
| | | | other files also modified to use wcstring.
* Fixup wsetlocale to use wcstringGravatar ridiculousfish2012-01-31
|
* More cleanup of static string buffers in favor of wcstringGravatar ridiculousfish2012-01-31
|
* Cleanup of builtins. No more hashes.Gravatar ridiculousfish2012-01-31
|
* Excised some more hallocGravatar ridiculousfish2012-01-29
|
* A bunch of work to move towards a sane memory model in job_tGravatar ridiculousfish2012-01-29
|
* buggy-auto-complete is not so buggy now. Merged branch 'buggy-auto-complete' ↵Gravatar Siteshwar Vashisht2012-01-29
|\ | | | | | | into CPlusPlus
* | More work towards instanced parser. First successful compilationGravatar ridiculousfish2012-01-22
| |
* | More work on instancing the parserGravatar ridiculousfish2012-01-19
| |
* | Get some basic function signatures right for new instanced parserGravatar ridiculousfish2012-01-16
| |
| * Converted all auto completion calls (on pressing tab) to use ↵Gravatar Siteshwar Vashisht2012-01-16
|/ | | | std::vector<completion_t>, bugs are yet to be fixed
* Some changes to migrate towards C++ and a multithreaded modelGravatar ridiculousfish2011-12-26
|
* remove trailing spacesGravatar Grissiom2010-09-18
| | | | | This is done by `sed -i -e 's/[ \t]*$//' *.[c,h]`, which should not introduce any functionality change.
* Add lots of new code comments.Gravatar liljencrantz2008-01-14
| | | | darcs-hash:20080113164747-75c98-9d0cefd27be7aef7ba60772616d9da7e6bb52912.gz
* Comment updates, minor code cleanups and other janitorial jobsGravatar liljencrantz2007-10-02
| | | | darcs-hash:20071002100937-75c98-d4040e70a256e36a6334cca0a05d60500680132b.gz
* Make sure that io redirections are respected by the '.' builtin. This was ↵Gravatar axel2007-04-26
| | | | | | not the case earlier, which caused various bugs, especially after eval was made into a function that internally used '.' darcs-hash:20070425183002-ac50b-d7d93e3b74e7274fe3e0aad98e95dd608bb903ae.gz
* Fix occasional duplicate stack trace, reported by Mike Roberts. Also make ↵Gravatar axel2007-02-01
| | | | | | fish less likely to print huge amounts of help in non-interactive mode, as per suggestion from Mike Roberts. darcs-hash:20070131160317-ac50b-8354948f55a1478515ebfe7ddb6db14b6775dd18.gz
* Update documentation display code to run roff on the client system instead ↵Gravatar axel2006-11-18
| | | | | | of pregenerating documentation and compiling it into program binaries darcs-hash:20061117162438-ac50b-5c4c7f0bd8bf53a16e16ecfead9569e642b7160f.gz
* Add the possibility to set the cursor position using the commandline builtinGravatar axel2006-10-05
| | | | darcs-hash:20061004213948-ac50b-3f673edeb01390bb3f280812d90bc8469f2f8ba8.gz
* Minor tweaks to code validation for the for builtin (again)Gravatar axel2006-10-02
| | | | darcs-hash:20061001155734-ac50b-6009b98dfccaf8f8292859f25c4d564c6b622f47.gz
* Add syntax check to see that the for builtin is not given an insufficient ↵Gravatar axel2006-09-26
| | | | | | number of arguments darcs-hash:20060926124109-ac50b-b088397933fa7ea539e48fa9fcd461de8295f7ce.gz
* Optionally add type of block to the end builtin to verify block nesting ↵Gravatar axel2006-09-06
| | | | | | correctness darcs-hash:20060905204347-ac50b-d0f87a700e38cdff9787be827b0df90b7f7baba5.gz
* Various code polish, including minor rearangement of builtin code to export ↵Gravatar axel2006-06-21
| | | | | | fewer functions, a few additional input checks, and removal of the unneeded, exported error_max variable darcs-hash:20060620212016-ac50b-f76c10eea23fab14a648ea83ed0c83a171b8fef9.gz
* Documentation updates. Fixes a few formating bugs, adds various minor ↵Gravatar axel2006-06-17
| | | | | | missing api documentation, fixes a few typos. Also fixes a few tiny code issues, mostly missing consts, etc darcs-hash:20060617130708-ac50b-cc2ec5aa3e4bfb8e28d7b86441bfb4661f1dd7e7.gz
* Major restructuring of the buildsystem, meaning that the documentation ↵Gravatar axel2006-06-13
| | | | | | doesn't needlessly rebuild itself, and the size of the fish binary drops slightly darcs-hash:20060613134328-ac50b-05ae75eb5cc081b680f38e8866fac00a679cc266.gz
* Edits to source code commentsGravatar axel2006-06-09
| | | | darcs-hash:20060608235557-ac50b-052e5c8f2cceb554064d7408573f277275903e7b.gz
* Move jobs builtin to its own fileGravatar axel2006-05-26
| | | | darcs-hash:20060526113811-ac50b-9c0ed1aa26cd2f247978e406bea86e8c36d73710.gz
* If a help page for a builtin is showed in response to an error, make sure it ↵Gravatar axel2006-05-26
| | | | | | fits on screen, or only print the synopsis - this patch also contains a huge number of tweaks to where and when the help pages are printed darcs-hash:20060526112402-ac50b-88993e45f411b2f1c45b3202c393c5328f1c7429.gz
* Add validator check to make sure the second argument to 'for' is 'in'Gravatar axel2006-05-22
| | | | darcs-hash:20060521221604-ac50b-5bc4ce217a08304f68b97b20e908ea1279fe26e9.gz
* Add support for calculating completions for arbitrary commands through the ↵Gravatar axel2006-01-31
| | | | | | 'complete' builtin darcs-hash:20060130165150-ac50b-5e2ef3bb0298dd5e1a5d6fbdade314cc73ef36f3.gz
* Fixes to api documentation, added .PHONY to makefile actions, made a few ↵Gravatar axel2006-01-24
| | | | | | private functions static darcs-hash:20060123204014-ac50b-b9d2a10c7f00945b5d9d244cb3b8c1489fe280de.gz
* Move the complete builtin to it's own file, and make it accept multiple -c, ↵Gravatar axel2006-01-23
| | | | | | -p, -s, -o and -l switches darcs-hash:20060122211055-ac50b-6ef8cff7fb02e974d6a8096bf83bcbed429d7322.gz
* Yet another batch of description tweaks, as well as the last major checkin ↵Gravatar axel2006-01-12
| | | | | | of translations to swedish (updated patch) darcs-hash:20060111141735-ac50b-b6a9ac5d5d9eb8eac28dd39968cd28f99044e8f5.gz
* Add i18n through gettext, as well as a Swedish translationGravatar axel2006-01-04
| | | | darcs-hash:20060104125102-ac50b-5bf026578a69bd94f7a7a3c8dee0ebccd95e5c24.gz
* Improved error messagesGravatar axel2005-12-08
| | | | darcs-hash:20051207160647-ac50b-4061540829a108381c20a1a6f3c8fd2d004a9800.gz
* Huge API documentation cleanupGravatar axel2005-10-25
| | | | darcs-hash:20051024152625-ac50b-41503feb4ea8d428c5b30c159aaae0c8f7ae46a2.gz
* Implement the ulimit builtinGravatar axel2005-10-15
| | | | darcs-hash:20051014223301-ac50b-f4e6303dcfbe26318e23020444b54d80fed9f535.gz
* Add header guards to the header files.Gravatar James Vega2005-10-05
| | | | darcs-hash:20051004151139-35ec8-7af69b9d7647d145dc621f7eaea726e729cff554.gz