aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin_commandline.cpp
Commit message (Collapse)AuthorAge
* Unescape the token returned by builtin_commandlineGravatar ridiculousfish2015-05-19
| | | | Fixes #2075
* Change lookahead_list into a queueGravatar Sanne Wouda2015-04-19
| | | | | | | | | | | | | | Using builtin `commandline -f`, one would expect to have commands executed in the order that they were given. This motivates the change to a queue. Unfortunately, fish internals still need lookahead_list to act as a stack. Add and rename functions to support both cases and have lookahead_list as a std::deque internally. This code is delicate, and we should probably dog-food this in nightly for a while before the next-minor release. Fixes #1567
* Clean up some memory allocation in builtin_commandlineGravatar ridiculousfish2014-10-30
|
* Make `commandline -P` actually workGravatar Kevin Ballard2014-08-24
| | | | | `commandline --paging-mode` worked but the short flags list accidentally omitted the documented `-P`.
* 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.
* Run restyle.sh to enforce style rules.Gravatar ridiculousfish2014-03-31
|
* Changes to bind_mode implementation based on code review and mergeGravatar ridiculousfish2014-03-30
| | | | errors
* Merge branch 'master' into 1218_rebaseGravatar ridiculousfish2014-03-29
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: builtin.cpp builtin_commandline.cpp highlight.cpp input.cpp input.h reader.cpp screen.cpp screen.h
| * Fixed various Undefined Behavior occurrences.Gravatar Daniel J. Hofmann2014-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conditionally uninitialized: - builtin_commandline.cpp:577 - expand.cpp:869 - parse_util.cpp:1036 Initialization of POD structs: - event.cpp:61 - autoload.cpp:22 References used with va_start: - common.cpp:608:18 Found with clang-3.4's awesome -Wconditional-uninitialized, -Wmissing-field-initializers and -Wvarargs.
| * 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
| |
* | Add kill-selection function and visual binds for 'y' and 'd'Gravatar Julian Aron Prenner2014-01-18
| |
| * Implement and document new -P / --paging-mode flags to commandline, to ↵Gravatar ridiculousfish2014-01-17
| | | | | | | | | | | | support new pager
| * Initial support for navigating completions that appear under theGravatar ridiculousfish2014-01-17
| | | | | | | | commandline using arrow keys
* | Fix a bug, commandline -s works now as expected. Add "*y binding inGravatar Julian Aron Prenner2014-01-17
| | | | | | | | visual mode
* | Merge remote-tracking branch 'upstream/master' into bind_modeGravatar Julian Aron Prenner2014-01-15
|\| | | | | | | | | | | | | Conflicts: builtin.cpp reader.cpp share/functions/fish_default_key_bindings.fish
* | Add experimental support for selection and visual modeGravatar Julian Aron Prenner2014-01-15
| |
| * Miscellaneous minor fixes based on cppcheck static analyzerGravatar ridiculousfish2014-01-12
|/
* Fix formattingGravatar ridiculousfish2013-10-26
|
* Make tok_last_type return an enum token_type instead of intGravatar ridiculousfish2013-09-30
|
* Fix a sign warningGravatar ridiculousfish2013-04-03
|
* Implement new newline-escaping behavior. Backslashes at the end of lines now ↵Gravatar ridiculousfish2012-11-22
| | | | | | | essentially delete the newline, within normal text or double quotes. Backslashes are retained within single quotes. Fixes https://github.com/fish-shell/fish-shell/issues/347 Fixes https://github.com/fish-shell/fish-shell/issues/52
* Remove tok_destroyGravatar ridiculousfish2012-11-21
|
* Work towards refactoring tokenizer to be a real objectGravatar ridiculousfish2012-11-21
|
* 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
|
* Cleaned up lots of typecasts, simplified some string handlingGravatar ridiculousfish2012-08-04
|
* Additional warning fixes and migration from int to size_t or long where ↵Gravatar ridiculousfish2012-08-04
| | | | appropriate
* Lots of work towards making fish build without warnings on Mountain Lion, ↵Gravatar ridiculousfish2012-08-04
| | | | mostly in terms of using size_t instead of int
* Warning cleanupGravatar ridiculousfish2012-08-04
|
* Merge branch 'master' into CPlusPlusGravatar ridiculousfish2012-04-18
| | | | | | Conflicts: builtin_commandline.cpp util.c
* Removed a lot of string_buffer_tGravatar ridiculousfish2012-02-22
|
* Replace some string_buffer_t with wcstringGravatar ridiculousfish2012-02-22
|
* Large set of changes to migrate sb_out and sb_err to wcstringGravatar ridiculousfish2012-02-22
|
* Const correctness changesGravatar ridiculousfish2012-02-06
|
* 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
|
* Some changes to migrate towards C++ and a multithreaded modelGravatar ridiculousfish2011-12-26
|
* Initial C++ conversionGravatar ridiculousfish2011-12-26