summaryrefslogtreecommitdiff
path: root/src/command_manager.cc
AgeCommit message (Collapse)Author
2017-01-08Small code cleanupsMaxime Coste
2017-01-08Apply clang-tidy modernize to the codebaseMaxime Coste
2016-12-27Merge remote-tracking branch 'leira/empty_param_crash'Maxime Coste
2016-12-24Added string length check when checking switch paramsLeira Hua
Fixes #1051
2016-12-23Display the command prompt in error face when the command is not foundMaxime Coste
Fixes #1021
2016-12-07Ensure content of expanded strings in modelinefmt is not interpreted as markupMaxime Coste
2016-12-07Small command parsing refactoringMaxime Coste
2016-11-20Make ArrayView::subrange size arguement optionalMaxime Coste
2016-11-14Do not include aliases in command completion candidates anymoreMaxime Coste
Fuzzy matching makes it redundant. Closes #817
2016-10-10Convert some uses of lambda to more concise std::mem_fnMaxime Coste
2016-10-01Support codepoints of variable widthMaxime Coste
Add a ColumnCount type and use it in place of CharCount whenever more appropriate, take column size of codepoints into account for vertical movements and docstring wrapping. Fixes #811
2016-09-18Rewrite PerArgumentCommandCompleter to use compile time dispatchingMaxime Coste
No need to store these vectors of std::functions around anymore.
2016-08-05Regenerate shell-candidates for each completion sessionsMaxime Coste
That should allow fixing the #665 issue while still avoiding to run a potentially long shell command on each keystroke.
2016-06-19Trim trailing end of lines in %sh outputsMaxime Coste
Fixes #698
2016-04-17Add support for env var name completionMaxime Coste
Fixes #659
2016-03-24Add completion support for alias/unalias commandsMaxime Coste
2016-03-08Rework container helpers, use pipe syntax and cleanup implementationMaxime Coste
use 'container | filter(func) | reverse() | transform(func)' instead of 'transform(reverse(filter(container), func), func)' to express container transformations.
2016-03-08Use ranked match based completion for command namesMaxime Coste
2015-12-12Optimize the dynregex case where the expression refers directly to a regex ↵Maxime Coste
option
2015-12-02Remove support for %arg{#}, can be added back if we got a use caseMaxime Coste
It is very unlikely we need %arg{#} without needing a %sh anyway.
2015-12-02Forward each params in %arg{@} separatelyMaxime Coste
2015-12-01Add argument expansion supportMaxime Coste
2015-11-17Fix alias completion and overwrittingMaxime Coste
2015-10-23Remove useless std::moveMaxime Coste
2015-10-22Pass ShellContext to commandsMaxime Coste
Fix #427
2015-10-22Wrap the shell params en env vars in a ShellContext structMaxime Coste
2015-09-20Improve escaping of % in command parsingMaxime Coste
2015-09-20Improve command completion by taking into account quoting of argumentsMaxime Coste
2015-09-16Use a sorted IdMap for aliasesMaxime Coste
2015-09-16Store key hash in IdMapMaxime Coste
2015-09-06Complete aliases in command promptMaxime Coste
2015-08-29Additional code tweak in command_manager.ccMaxime Coste
2015-08-28Add missing std::move, avoid a needless string copyMaxime Coste
2015-08-27Avoid using an UnorderedMap for 4 elements...Maxime Coste
2015-08-27Refactor command parsing, maintain coordinates while reading the stringMaxime Coste
2015-08-27Small code cleanup in command_manager.ccMaxime Coste
2015-08-10Move option name completion to the OptionRegistryMaxime Coste
Option names are the same for every option manager.
2015-07-30Fix command parsing bugMaxime Coste
Fixes #347
2015-07-25Avoid appending chars one by one in some parsing functions in CommandManagerMaxime Coste
2015-06-26Add support for command completion on commands, use it for :newMaxime Coste
That means commands can be completed using other commands and their completers. Yes that does makes sense. Closes #296
2015-06-08Do not close stderr/stdout before program finishMaxime Coste
Programs like grep called in '$' command will fail due to SIGPIPE for example. So we need to keep the pipe open.
2015-06-08Specify if ShellManager should read output or not using a flagMaxime Coste
Some program (xclip), will fork a daemon keeping stdout/stderr open, so waiting for them to be closed make kakoune hang. Commands discarding stdout can then just not wait on it.
2015-05-04Make expand function (that expand %...{} tokens) publicMaxime Coste
2015-04-30Rename eval(_token)? to expand(_token)? and use a const ContextMaxime Coste
2015-03-30More useage of the format functionMaxime Coste
2015-03-30Replace various adhoc operator+ based formatting with format funcMaxime Coste
2015-03-13Change ShellManager to return both stdout and the return value in a pairMaxime Coste
2015-03-10Refactor String, use a common StringOps interface, hide std::stringMaxime Coste
2015-03-09ArrayView content is not const anymoreMaxime Coste
As in upcoming std c++ array_view, ArrayView<T> points to mutable data, use ArrayView<const T> or alias ConstArrayView<T> for const data.
2015-02-08Add optional helper for commands, to get parameter dependent helpMaxime Coste
Use for the set command to document options.