summaryrefslogtreecommitdiff
path: root/src/shell_manager.cc
AgeCommit message (Collapse)Author
2014-12-04Fix logic error in shell managerMaxime Coste
2014-12-03Revert "Handle SIGCHLD signals when piping"Maxime Coste
This reverts commit 8208e75294b4eb016ae578f9ae132d9f8dfe4785.
2014-12-03Use a select based event handling and fix deadlockMaxime Coste
2014-12-02Handle SIGCHLD signals when pipingMaxime Coste
2014-11-25Separate events between normal and urgent onesMaxime Coste
Run urgent ones while executing %sh blocks. Fixes #236
2014-10-30Add kak binary location to PATH env var automaticallyMaxime Coste
That way the kak binary can be guaranteed to be available even if not in user PATH.
2014-10-13Add missing includesMaxime Coste
2014-10-13Refactor regex uses, do not reference boost except in regex.hhMaxime Coste
2014-06-18Add a %val{...} expand typeMaxime Coste
%val{name} gives access to values given in shell through $kak_<name>
2014-05-05Add '$' for keeping selections that passes a shell commandMaxime Coste
'$' pipes each selections through a given shell command, and only keeps the one that have an exit code of 0 Fixes #36
2014-04-21Use StringView in shell managerMaxime Coste
2014-03-25ShellManager: Change the env var detection regex to find more usesMaxime Coste
The regex is now just '\bkak_\w+\b', no need for it to be looking like a shell variable use. This allows other tools that the shell to access Kakoune vars as long as the name appears directly in the shell string.
2014-03-25Remove the shell option, always use /bin/shMaxime Coste
2013-07-28Minor code cleanupsMaxime Coste
2013-07-26memoryview: always pass by valueMaxime Coste
2013-05-13Use more std::* for string handlingMaxime Coste
2013-04-17ShellManager: env_var_regex is an implementation detailMaxime Coste
2013-04-09sort includes directivesMaxime Coste
2013-04-09rename assert to kak_assert to avoid collisionsMaxime Coste
2013-03-29String: inherit from std::string rather than using it as a backendMaxime Coste
2013-03-05Strongly typed options supportMaxime Coste
* non builtins options require declaration using the decl command * At the moment, only int and string options are supported, however the goal of this change is to provide a consistent way to support more complex options, namely lists and booleans
2013-02-27ShellManager: remove unneeded end of lines when writing stderrMaxime Coste
2013-02-19ShellManager: catch exception thrown by env var functorsMaxime Coste
2012-12-13the shell used for command execution can be changed using the 'shell' optionMaxime Coste
2012-09-09Add support for shell script parametersMaxime Coste
Now %sh{ ... } can access positional parameters through standard shell construct, allowing simple handling of variable parameters. def command accepts -shell-params flag to use this facility.
2012-09-06ShellManager: output stderr in the debug bufferMaxime Coste
2012-08-29fix ShellManager, avoid zombie childs when grand childs detaches themselvesMaxime Coste
2012-08-10ShellManager: fix option regex, allow capsMaxime Coste
2012-07-31ShellManager: catch all exception once we are in child processMaxime Coste
2012-06-25ShellManager environment variable use a regex instead of an exact matchMaxime Coste
when a kakoune releated env var used in a shell command, the ShellManager tries to match it with given regex and the first that matches calls its value retriever. For this to be useful, EnvVarRetrievers now also take the variable name in its parameters.
2012-05-29Restore piping support.Maxime Coste
Add a ShellManager::pipe method, which pipes a string into the command. Not quite satisfied with this interface.
2012-05-29ShellManager::eval now takes an additional env_var mapMaxime Coste
2012-05-03Add a ShellManager which handles executing shell commandsMaxime Coste
ShellManager provides shell commands with environement variable to retrieve some internal values in the shell parameters.