aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin_complete.cpp
Commit message (Collapse)AuthorAge
* complete: recognise -w short option for --wrapsGravatar David Adam2014-11-04
| | | | Closes #1793.
* Erase all completions with `complete -c foo -e`Gravatar Kevin Ballard2014-09-02
| | | | | | | When passing `-e` to `complete -c foo` without any other options, all options for the command should be erased. Fixes #380.
* Don't erase old-style options with `complete -l foo -e`Gravatar Kevin Ballard2014-09-02
| | | | | When erasing long option completions, distinguish between gnu-style and old-style options, just like we do when adding and printing completions.
* 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.
* Allow parse_util_detect_errors to treat incomplete strings as errorsGravatar ridiculousfish2014-07-24
| | | | | Fixes bug where sourcing a file with an unclosed quote would not have a backtrace
* Run restyle.sh to enforce style rules.Gravatar ridiculousfish2014-03-31
|
* Rewrite parser_t::test_args and parser_t::eval_args to use new parserGravatar ridiculousfish2014-03-20
|
* Revert "Merge pull request #1317 from pullreq/cpp"Gravatar ridiculousfish2014-02-28
| | | | | | | This reverts commit 74135c0600d5dcc40d396d0e7293c17b8d4bdaa7, reversing changes made to 6d749789ce240a3e6f1447777db63fd8e7525560. See discussion in #1317
* Fixes .c -> .cpp in comments. For doxygen.Gravatar Geoff Nixon2014-02-27
|
* Make builtin_complete output escaped completions. Fixes #1127Gravatar ridiculousfish2014-02-04
|
* Miscellaneous minor fixes based on cppcheck static analyzerGravatar ridiculousfish2014-01-12
|
* Initial work on backtrace support with new parserGravatar ridiculousfish2013-12-15
|
* Finish rewriting detect_errors to use new parser. All tests now pass (!)Gravatar ridiculousfish2013-12-12
|
* Remove the indentation part of parser_t::test(). Rename it toGravatar ridiculousfish2013-12-08
| | | | detect_errors().
* Large cleanup and refactoring of unescape() function.Gravatar ridiculousfish2013-11-24
|
* Break out COMPLETE_NO_CASE and COMPLETE_REPLACES_TOKEN into separate flags, ↵Gravatar ridiculousfish2013-03-05
| | | | in preparation for upcoming fuzzy completion work
* First round of fixes based on cppcheckGravatar ridiculousfish2013-02-16
| | | | https://github.com/fish-shell/fish-shell/issues/575
* Indent switch + case properly. ↵Gravatar ridiculousfish2013-01-24
| | | | https://github.com/fish-shell/fish-shell/issues/530
* Fix indentation of switch statementsGravatar ridiculousfish2012-11-19
|
* Apply new indentation, brace, and whitespace styleGravatar ridiculousfish2012-11-18
|
* Remove trailing whitespaces and change tabs to spacesGravatar Łukasz Niemier2012-11-18
|
* Replaced some calls to unescape with unescape_stringGravatar ridiculousfish2012-05-09
|
* Add some more locking and const correctness to completion_entry_t in ↵Gravatar ridiculousfish2012-02-26
| | | | preparation for supporting better multithreading
* Fix a crash in complete -CGravatar ridiculousfish2012-02-26
|
* Some work to allow completions to be evaluated off of the main threadGravatar ridiculousfish2012-02-24
|
* Large set of changes to migrate sb_out and sb_err to wcstringGravatar ridiculousfish2012-02-22
|
* Squash a bunch of leaksGravatar ridiculousfish2012-02-21
|
* Switched to std::map instead of hash_table_t in env.cpp and ↵Gravatar Siteshwar Vashisht2012-02-18
| | | | env_universal_common.cpp.
* Cleanup al_list from builtin_complete.cppGravatar ridiculousfish2012-02-08
|
* Excised some hallocGravatar ridiculousfish2012-02-07
|
* Const correctness changesGravatar ridiculousfish2012-02-06
|
* Work on new history implementationGravatar ridiculousfish2012-02-05
|
* 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
* | 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
|
* Initial C++ conversionGravatar ridiculousfish2011-12-26