summaryrefslogtreecommitdiff
path: root/src/command_manager.cc
AgeCommit message (Collapse)Author
2017-05-25Fix command parsing bug when commenting after a commandMaxime Coste
When a comment was present directly on the same line after a command, we did not correctly see the command as terminated and would join continue parsing the next line.
2017-05-08Do not push a final spurious command separators when parsing commandsMaxime Coste
Fixes #1336
2017-05-07Fix use of invalidated iterator in the command map on exceptionMaxime Coste
The command map can get mutated by command execution, so the iterators can get invalidated (now that we use our curstom HashMap implementation, all iterators are potentially invalidated by insert/removal)
2017-04-19Safer code for parsing commandsMaxime Coste
Fix some possible past the end of target string reads Fixes #1310 (maybe, probably, who knows)
2017-04-10Remove some now unneeded uses of const String& paramsMaxime Coste
HashMap supports finding String from StringView.
2017-03-16Fixes some clang-tidy warning and add a few missing meta.hh includeMaxime Coste
2017-03-15Small code tweaks regarding flags handlingMaxime Coste
2017-03-07Replace uses of UnorderedMap with HashMapMaxime Coste
2017-01-29Detect too deep command call stackMaxime Coste
Fixes #1163
2017-01-29Make StringView and unit types trivial typesMaxime Coste
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