summaryrefslogtreecommitdiff
path: root/src/completion.hh
AgeCommit message (Collapse)Author
2025-02-19Move command/filename completion logic to completion.ccMaxime Coste
Refactor list_files to use a callback instead of returning a vector, file.cc/hh should not know about completion logic.
2024-10-22Remove now unused CompletionFlagsMaxime Coste
Since shell-script-completions now runs the script asynchronously and unconditionally, there is no use for the CompletionFlags::Fast anymore which means we can remove that type altogether.
2024-08-14Reduce number of included headersMaxime Coste
2023-11-14Use a separate copy of the command completer for each completionMaxime Coste
This make the completer lifetime tied to the Prompt mode and removes the need for the Start flag. It also makes it possible to cleanup on completer destruction.
2020-11-18Restore auto-select on return, add a flag to disable that for commandsMaxime Coste
Fixes #3849 Again
2019-05-17Introduce Menu completion flags to auto select best candidateMaxime Coste
2019-01-24Header and dependency cleanupMaxime Coste
2018-07-05Change option lists to be specified as separate arguments on commands lineMaxime Coste
Option lists and maps are specified using separate arguments, avoiding the need for additional escaping of their separator and reusing the existing command line spliting logic instead. As discussed on #2087, this should make it much easier to work with list options, and make the general option system feel cleaner.
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-15Migrate WithBitOps template specialization to with_bit_ops functionMaxime Coste
This way we dont depend on knowing the base template to enable bit ops on an enum type.
2016-11-28Add more memory domains to certain dataMaxime Coste
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-03-24Small code tweakMaxime Coste
2016-03-02Rename prefix to query in complete helper function and tweak static_assertMaxime Coste
2016-02-10Fix use of dead temporary strings in completionsMaxime Coste
2016-02-09Migrate most completion to ranked matchMaxime Coste
2015-05-26Try matching functions one by one when completingMaxime Coste
Instead of running them all then deciding which to use.
2015-01-09Track String memory allocationsMaxime Coste
2014-12-23Unify completion from container content logicMaxime Coste
2014-06-15Refactor highlighter command completionsMaxime Coste
2014-04-18Use StringView for completion functionsMaxime Coste
2014-01-27Rework command completion to allow partial token completionMaxime Coste
Implement hook completion. fixes #44
2014-01-09Style changes, replace typedefs with usingsMaxime Coste
2013-12-30Extract shell_complete lambda as a proper functionMaxime Coste
2013-11-18Resurect idvaluemap, order of traversal mattersMaxime Coste
This reverts commit 2b9b161d424c1168636042adc6678bb3df2be3f9.
2013-11-17remove idvaluemap, use unordered_map in placeMaxime Coste
2013-11-11Make Context a class, not a structMaxime Coste
2013-11-04Add automatic completion display in prompt modeMaxime Coste
Controlled by the autoshowcompl option Completers now take a CompletionFlag parameter, used to specify we want fast completion (tag completion can be slow, we do not want to run it if not explicitely wanted by the user).
2013-04-09sort includes directivesMaxime Coste
2013-03-13move complete_filename to file.ccMaxime Coste
2013-02-18Fix class/struct mismatchesMaxime Coste
2012-10-11use ByteCount instead of CharCount when we are really counting bytesMaxime Coste
(that is most of the time when we are not concerned with displaying)
2012-08-23use a strongly typed int CharCount for character countsMaxime Coste
2012-08-06Completions functions take a Context parameterMaxime Coste
2012-04-14replace std::string references with StringMaxime Coste
2011-11-12Completion: decentralise, move buffer name completion to BufferManagerMaxime Coste
2011-11-10Completions: change NullCompletion functor to complete_nothing functionMaxime Coste
2011-10-10Completions: move code from main.cc to completion.hhMaxime Coste
2011-09-22Completion: add complete_buffername completerMaxime Coste
2011-09-16complete_filename: accept cursor_position as additional parameterMaxime Coste
2011-09-14prompt: rework tu support arrows and completion cyclingMaxime Coste
2011-09-14Completion: dedicated completion header and basic filename completionMaxime Coste