summaryrefslogtreecommitdiff
path: root/src/client.cc
AgeCommit message (Collapse)Author
2018-03-30Support full redraws during shell execution and handle resize thereMaxime Coste
Fixes #1973
2018-03-05Support changing autoreload option directly from the reload messageMaxime Coste
Pressing Y or N will set the buffer (or window, if it is set at that scope) autoreload option to the corresponding value, avoiding infinite loops where a file getting constantly modified prevents the user from using Kakoune.
2018-02-27Add [scratch] indicator in context infoDelapouite
2018-02-05Handle errors while reloading buffer gracefullyMaxime Coste
Fixes #1831
2018-01-26Reset normal mode before hiding the reload buffer info boxMaxime Coste
Reseting normal mode will enable normal mode, which will trigger a check for buffer modification. We do not want that check to happen as we are trying to close the info box. Doing that mode reset first will prevent the check from happening (as the info box is already displayed), and will correctly hide it afterwards. Fixes #1809
2017-09-19Add '[debug]' context_info for debug buffersDelapouite
2017-08-29avoid literal eol in status lines, replace them with another symbolMaxime Coste
2017-08-28Expose client pid as $kak_client_pidMaxime Coste
As requested in #1414
2017-08-23Support specifying an exit status on `quit` commandsMaxime Coste
The current client exit status can be specified as an optional parameter, is nothing is given the exit status will be 0. Fixes #1230
2017-06-16Hide info/menu when they are anchored to an invisible buffer coordMaxime Coste
Fixes #1444
2017-06-04Log errors written to the status line inside the debug buffer as wellMaxime Coste
Fixes #1410
2017-05-13Tweak buffer change code so that WinDisplay hooks can use info boxesMaxime Coste
2017-04-12Place hardware terminal cursor at the current main cursor/prompt cursor positionMaxime Coste
Fixes #1318 Also fixes https://gitlab.com/gnachman/iterm2/issues/5408
2017-03-16Try to clean up option include a bitMaxime Coste
2017-03-11Increase modelinefmt configuration powerDan Rosén
2017-01-24Add a `RawKey` hook for raw user input hookingMaxime Coste
Fixes #1132
2017-01-22Fix client destruction when there is an InsertMode mode still aliveMaxime Coste
2017-01-19Only touch new clients selections when target coord are explicitMaxime Coste
Do not implicitely change new clients selections to target coordinates when the user did not specify them, so that we can re-use the selections from the found free window, which is the generally desired behaviour.
2017-01-08Apply clang-tidy modernize to the codebaseMaxime Coste
2017-01-04Add `Modal` InfoStyle used for bufer reload info boxMaxime Coste
Modal info style wont be replaced by other info boxes. NCursesUI will center that info box. Fixes #1060
2016-12-07Ensure content of expanded strings in modelinefmt is not interpreted as markupMaxime Coste
2016-11-30Ensure all available input is handled before going back to main loopMaxime Coste
We were not handling keys that could have been generated while handling other keys (like during a shell evaluation).
2016-11-29Simplify greatly UI input handlingMaxime Coste
This round trip through an input callback expected to call is_key_available and get_key was overcomplicated, just send the keys as they arrive, the client is already buffering due to urgent event mode.
2016-11-29Clean up includes of user_interface.hhMaxime Coste
2016-11-26Add a 'keys' debug flag, showing the keystrokes comming to clientsMaxime Coste
2016-11-03Run WinDisplay hook on creation of clientsMaxime Coste
Fixes #913
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-13Always allow to delete a buffer, just recreate a scratch buffer if neededMaxime Coste
Fixes #850
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-26Make hook disabling work for all hooks, not only user hooksMaxime Coste
Fixes #823
2016-09-04Rework client quitting and handling of remote errorsMaxime Coste
Client quitting no longer immediately unwinds, client is just pushed for deletion until we get back to the main loop, similarly to what happens for buffer and window deletion.
2016-07-05Use named keys for Return and Tab instead of <c-m> and <c-i>Maxime Coste
Fixes #722
2016-06-16Clear up info/menus and eventual prompts when reseting to normal modeMaxime Coste
Fixes #697
2016-05-16We do need a force redraw on resize for menu, info and status barMaxime Coste
2016-05-14Delay window deletion until we get back to main loopMaxime Coste
Avoid WinResize hooks while redrawing, ensure window resize only take place while handling user input. Fixes #672
2016-05-09Keep a pointer to current client in windows so that window hooks can access itMaxime Coste
2016-04-11Merge remote-tracking branch 'lenormf/buffer-padding'Maxime Coste
2016-03-30Replace menu and info when they actually movedMaxime Coste
Previous logic worked only when the buffer moved in the window, but not if some highlighter (like line numbering or flag lines) moved the text around.
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-08Force redraw everything, not just refreshMaxime Coste
2016-03-07Rework client redrawing, delay menu/info methods until next refreshMaxime Coste
That avoid sending lots of spurious info_hide/menu_hide, just set a flag and wait until the client is asked to redraw.
2016-03-07Move <c-l> handling to normal mode from clientMaxime Coste
Client handling prevents :exec from triggering a redraw
2016-03-07Handle <c-l> redrawing on the server sideMaxime Coste
That way we can force a redraw at any moment, including during batch execution.
2016-03-06Only call UserInterface::refresh when the UI has been modifiedMaxime Coste
2016-03-02Use the general code path for reload info box handling in ClientMaxime Coste
2016-02-27Remove direct access to ui, go through clientMaxime Coste
Client can now update menu/info positions when the window move around.
2016-02-17Allow users to chose how the buffers are paddedFrank LENORMAND
2015-12-14Support quitting while executing RuntimeError hooksMaxime Coste
Fixes #529
2015-11-20Move enum option handling in enum.hh and refactor enum optionsMaxime Coste
2015-11-07Store the last used buffer in clientsMaxime Coste
Fixes #474