aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.h
Commit message (Collapse)AuthorAge
* Revert 1349d12 and properly fix #213Gravatar Sanne Wouda2015-04-06
| | | | | | | | | | | As suggested by @ridiculousfish, when removing autoloaded functions, add them to a tombstones set. These functions will never be autoloaded again in the current shell, not even when the timestamp changes. Tested as per comment 1 of #1033. `~/.config/fish/functions/ls.fish` contains the function definition. `function -e ls` removes the redefined `ls` (and reverts back to the built-in command). `touch .../ls.fish` does not cause the function to be reloaded.
* Add new `functions` flag -V/--inherit-variableGravatar Kevin Ballard2014-10-02
| | | | | | | | | | --inherit-variable takes a variable name and snapshots its current value. When the function is executed, it will have a local variable with this value already defined. Printing the function source will include synthesized `set -l` lines for the values. This is primarily useful for functions that are created on the fly, such as in `psub`.
* Fix line number reporting in new parserGravatar ridiculousfish2014-03-20
|
* Merge branch 'master' into astGravatar ridiculousfish2013-10-16
|\ | | | | | | | | Conflicts: parse_util.cpp
| * Fix #213. You can now remove autoloaded functions.Gravatar Konrad Borowski2013-10-12
| | | | | | | | Oddly enough, the code is here, but is internal function.
* | Beef up completion testsGravatar ridiculousfish2013-10-12
|/
* Apply new indentation, brace, and whitespace styleGravatar ridiculousfish2012-11-18
|
* Remove trailing whitespaces and change tabs to spacesGravatar Łukasz Niemier2012-11-18
|
* Renamed env_vars to env_vars_snapshot_tGravatar ridiculousfish2012-07-20
| | | | Cleanup of non-wcstring version of path_get_path
* Got function.h and function.cpp off of shared_ptr (hooray)Gravatar ridiculousfish2012-05-18
|
* More work towards getting function.h off of shared_ptrGravatar ridiculousfish2012-05-17
|
* Work towards getting function.h off of shared_ptrGravatar ridiculousfish2012-05-17
|
* Put fish on a diet. Tracked down the biggest memory hogs and fixed them. ↵Gravatar ridiculousfish2012-03-03
| | | | Total allocations down by a factor of 3 or so, live allocations a few KB.
* Modified functions in function.h/.cpp to use wcstring instead wchar_t*, ↵Gravatar Siteshwar Vashisht2012-02-19
| | | | other files also modified to use wcstring.
* Removed some more hallocGravatar ridiculousfish2012-02-09
|
* Fixed named_arguments to be wcstring_list_t instead of al_listGravatar ridiculousfish2012-02-08
|
* Get event_t off of halloc (!)Gravatar ridiculousfish2012-02-08
|
* Excised some more halloc and array_list_tGravatar ridiculousfish2012-02-08
|
* LRU work to load functions off of the main thread.Gravatar ridiculousfish2012-01-28
| | | | We'll have to reevaluate this after we fix function autocomplete
* Implemented LRU cache for autoloading.Gravatar ridiculousfish2012-01-25
|
* Migrate function.cpp to scoped_lock and shared_ptrGravatar ridiculousfish2012-01-23
|
* Get some basic function signatures right for new instanced parserGravatar ridiculousfish2012-01-16
|
* Some const correctnessGravatar ridiculousfish2012-01-16
|
* Migrate function.cpp to STL types.Gravatar ridiculousfish2012-01-13
|
* Some changes to migrate towards C++ and a multithreaded modelGravatar ridiculousfish2011-12-26
|
* Merge remote branch 'origin/otherchirps-dev'Gravatar Grissiom2010-09-19
|\
* | remove trailing spacesGravatar Grissiom2010-09-18
| | | | | | | | | | This is done by `sed -i -e 's/[ \t]*$//' *.[c,h]`, which should not introduce any functionality change.
| * replaced the functions '--rename' option with '--copy'.Gravatar Christopher Nilsson2010-09-09
| | | | | | | | | | Copying the function implementation was the main point. Actually removing the original isn't necessary, as that functionality already exists (functions -e).
| * Adding '--rename' option to 'functions' builtin.Gravatar Christopher Nilsson2010-09-08
|/ | | | | | | | | | | | | | | | | | | | | | | | Aim is to allow an existing function to be renamed, allowing some basic function chaining. Example: > function foo echo Hello end > foo Hello > functions --rename foo bar > foo fish: Unknown command 'foo' > bar Hello > functions --rename fish_prompt old_prompt > function fish_prompt printf "{Boo!}%s" (old_prompt) end {Boo!}> Note in the last case, the new fish_prompt is calling its old definition.
* Improve code commentGravatar liljencrantz2008-01-16
| | | | darcs-hash:20080116010601-75c98-fc7e940543424479bf1016cec26af619f177f5fd.gz
* Add lots of new code comments.Gravatar liljencrantz2008-01-14
| | | | darcs-hash:20080113164747-75c98-9d0cefd27be7aef7ba60772616d9da7e6bb52912.gz
* Add the possibility for functions which do not shadow the arguments of the ↵Gravatar axel2007-04-23
| | | | | | calling function darcs-hash:20070422221033-ac50b-d9544c87d0ddab10f7f503b5a1707292f266efe4.gz
* Allow named arguments to function instead of only $argv. Philip Ganchev once ↵Gravatar axel2007-04-17
| | | | | | suggested this, and it was suggested again by Egil Möller. darcs-hash:20070416200611-ac50b-5eb42c94a65a4e72cae12cd9c04424bdc3b2b4f8.gz
* Use halloc to simplyfy allocations in function.cGravatar axel2006-11-16
| | | | darcs-hash:20061115141649-ac50b-aff0e3369bb19d6d88130781b13e598c9445b138.gz
* Remove the --key-binding switch for fishGravatar axel2006-10-26
| | | | darcs-hash:20061025202836-ac50b-682015e2f5830a85ff520e89b0a951ca9d2913dc.gz
* Make sure dynamically loaded functions are completable, even if they have ↵Gravatar axel2006-02-09
| | | | | | not yet been loaded darcs-hash:20060208173718-ac50b-40c93b82f3b8a717d220642e22c4b4005d8871d0.gz
* Add function stack trace to error outputGravatar axel2006-01-27
| | | | darcs-hash:20060126144810-ac50b-3426191f596674504ce49dd61fcfa3c2c0c0f2bb.gz
* Make the not builtin work with shellscript functionsGravatar axel2005-11-30
| | | | darcs-hash:20051129195030-ac50b-7ada30d327f2dcc8ad23f56b0a36c975cb90c481.gz
* Initial update for new event subsystemGravatar axel2005-10-06
| | | | darcs-hash:20051005223708-ac50b-8a8d7e003e1c24747f3f154cb66b6c1a1015c35b.gz
* Add header guards to the header files.Gravatar James Vega2005-10-05
| | | | darcs-hash:20051004151139-35ec8-7af69b9d7647d145dc621f7eaea726e729cff554.gz
* Key binding functionsGravatar axel2005-09-21
| | | | darcs-hash:20050920234200-ac50b-3895a97cb024368258cd1562bdcc9fda2c84f521.gz
* Initial revisionGravatar axel2005-09-20
darcs-hash:20050920132639-ac50b-fa3b476891e1f5f67207cf4cc7bf623834cc5edc.gz