summaryrefslogtreecommitdiff
path: root/src/shell_manager.cc
AgeCommit message (Collapse)Author
2017-04-17When not sending data to a subprocess, close its stdinMaxime Coste
We were letting stdin untouched, which meant child processes had access to our terminal input. That meant `!fmt` was trying to read from our terminal input and catching keystrokes. Fixes #1281
2017-03-16Fixes some clang-tidy warning and add a few missing meta.hh includeMaxime Coste
2017-03-16Try to clean up option include a bitMaxime 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.
2017-02-03Fix some bugs in non blocking pipe writingMaxime Coste
2017-02-03Make piping data into shell commands non blockingMaxime Coste
Fixes #1180
2017-01-08Apply clang-tidy modernize to the codebaseMaxime Coste
2016-12-20Fix getting path confstr, the returned size includes the zero terminatorMaxime Coste
Closes #1047
2016-12-15Use a POSIX guaranteed way of getting the shell pathMaxime Coste
2016-12-03Read as much as possible data from shell processes on each read eventMaxime Coste
We were reading at most 1024 bytes every time, going back to the event loop.
2016-12-01Make FDWatcher support Read, Write and Except events, instead of just ReadMaxime Coste
2016-11-30Hide the waiting for shell message once the shell returnsMaxime Coste
2016-11-30Use a Timer for Shell waiting notificationMaxime Coste
Without a timer we were relying on other event sources to wake us up to display the information, which was usually a NormalIdle or a filesystem check timer.
2016-11-28Cleanup include dependencies a bitMaxime Coste
2016-10-29Display a status line message when Kakoune is waiting on a shell to completeMaxime Coste
If a shell commands takes more than 1s to execute, a message will appear on the status line notifying the user, along with the time Kakoune has been waiting for.
2016-10-10Convert some uses of lambda to more concise std::mem_fnMaxime Coste
2016-07-24Introduce chrono.hhMaxime Coste
2016-05-06time window display buffer update in debug profile modeMaxime Coste
2016-04-27Add another missing include in shell_manager.ccMaxime Coste
2016-04-17Add support for env var name completionMaxime Coste
Fixes #659
2016-04-12ShellManager: do not open child stdin if there is no data to write to itMaxime Coste
Fixes #383
2016-02-28Code cleanupMaxime Coste
2015-12-10Fix "unused result" warnings for several system calls.Frank LENORMAND
2015-12-05Refactor some code in shell_manager.ccMaxime Coste
2015-11-27Small cleanupsMaxime Coste
2015-11-27Consolidate writing to fdMaxime Coste
2015-11-21Add a profiling debug flag to get timings for hooks/shell evalMaxime Coste
2015-11-19Introduce a debug flags option to control some tracingMaxime Coste
Support shell|hooks and write traces in debug buffer
2015-10-22Wrap the shell params en env vars in a ShellContext structMaxime Coste
2015-10-03Fix OSX compilationMaxime Coste
2015-10-02Refactor ShellManager process spawningMaxime Coste
2015-09-16Store key hash in IdMapMaxime Coste
2015-09-16Use IdMap instead of UnorderedMap for ui options and env varsMaxime Coste
2015-09-03Regex are overkill for shell manager env vars, we just need exact match or ↵Maxime Coste
prefix match
2015-07-25Tweak regex constructor callsMaxime Coste
2015-06-09Fix race condition ShellManager::eval with SIGCHLDMaxime Coste
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-06-06Move write_debug to buffer utils as write_to_debug_bufferMaxime Coste
2015-06-01Port more code to use the format function instead of adhoc string concatMaxime Coste
2015-05-26Small style tweaksMaxime Coste
2015-04-27Replace some String temporaries with StringViewsMaxime Coste
2015-03-14Avoid stdout/stderr as variable namesMaxime Coste
2015-03-13Change ShellManager to return both stdout and the return value in a pairMaxime Coste
2015-03-13Code style change in shell_manager.ccMaxime Coste
2015-03-12Make split_path publicMaxime 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-01-12replace all std::vector with VectorMaxime Coste
2015-01-06Rename memoryview to ArrayViewMaxime Coste