summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-10-23Only allow minus at the begining of json numbersMaxime Coste
2019-10-22Teach JSON parser negative numbersDan Rosén
2019-10-22src: Create a <semicolon> named keyFrank LENORMAND
This commit allows using the <semicolon> expansion in commands, instead of `\;`. It makes commands look more elegant, and prevents new-comers from falling into the trap of using <a-;> without escaping the semicolon.
2019-10-20src: Add a `window_range` default expansionFrank LENORMAND
This commit adds a `window_range` default expansion that holds the coordinates and size of the buffer-space on the window. Fixes #675
2019-10-17Remove explicit sizes from make_array callsMaxime Coste
2019-10-17Split clang/gcc specific argumentsMaxime Coste
2019-10-17Limit word completion menu filename lengthMaxime Coste
2019-10-17Slight code style changeMaxime Coste
2019-10-16Replace ModeChange hooks by ModePush and ModePopMaxime Coste
Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd hooks. Closes #2545
2019-10-16Slight cleanup of the menu display codeMaxime Coste
2019-10-10Support specifying the user configuration with KAKOUNE_CONFIG_DIRMaxime Coste
Fixes #3072 Closes #3081
2019-10-10Add unambiguous titles for infobox "enter combining operator"Delapouite
fix #3089
2019-10-08Check that stdin is readable before calling readMaxime Coste
This should not be necessary, but it works around a bug in WSL. Fixes #3112
2019-10-03Avoid negative initial coordinatesMaxime Coste
Fixes #3111
2019-09-26Fix some clang warningsMaxime Coste
2019-09-26Remove unneeded NCursesUI::Window::mark_dirty and redrawsMaxime Coste
A bug in client.cc was always forcing full redraws of the windows, leading to much more terminal output traffic than necessary.
2019-09-25Additional NCursesUI code cleanupsMaxime Coste
2019-09-25Avoid unnecessary allocations in NCursesUI::Window::draw callsMaxime Coste
Pass an ArrayView<DisplayAtom> instead of a DisplayLine& so that the newly common case of passing a single atom does not require constructing a Vector.
2019-09-25Refactor NCursesUI::Window to reduce the exposed methodsMaxime Coste
This should make an alternate implementation simpler as less state has to be tracked.
2019-09-25Do not set O_NONBLOCK on stdinMaxime Coste
It is not necessary, and impacts also writing to stdout, leading to broken display on old ncurses versions. Fixes #3087
2019-09-24Restore stdin status flags on suspend and quitMaxime Coste
Those flags are shared with the parent process, so the non-block flag added impacts their execution.
2019-09-22Merge remote-tracking branch 'laelath/suppress-init-list-lifetime-warning'Maxime Coste
2019-09-22Add support for parsing SS3 key sequencesMaxime Coste
As discussed on #3087, fixes part of that issue.
2019-09-17Added -Wno-init-list-lifetime to CXXFLAGSJustin Frank
2019-09-17Accept docstrings with last line not fully indentedMaxime Coste
When trimming indent, the last line, if only containing whitespaces does not need to match the indent, so that this indentation style works: -docstring %{ indented string }
2019-09-16Restore palette before suspendMaxime Coste
2019-09-16Correctly restore terminal state on suspendMaxime Coste
2019-09-16Small style tweakMaxime Coste
2019-09-16Fix input coming in packets characters being droppedMaxime Coste
2019-09-16Fix multi-client server suspendMaxime Coste
2019-09-16Fix broken input after suspendMaxime Coste
2019-09-16Setup terminal raw mode without going through ncursesMaxime Coste
2019-09-16Get rid of ncurses based input parsing in favor of custom codeMaxime Coste
2019-09-15Make arrow keys normal mode mappings instead of commandsMaxime Coste
2019-09-15Allow scrolling while dragging mouseMaxime Coste
Closes #2052
2019-09-08Fix printing of F12 keyMaxime Coste
2019-09-07Rank a word-boundary after a non-word-boundaryJean-Louis Fuchs
2019-09-07Fix modifiers support with mouse eventsMaxime Coste
2019-09-07Rework custom CSI parsing code and add support for SGR (1006) mouseMaxime Coste
This will support parsing mouse coordinates bigger than 255 - 32. And get correct release support.
2019-09-05Remove unneeded uses of NCurses WINDOW*Maxime Coste
intrflush and meta have a WINDOW* parameter that is documented as always ignored.
2019-09-05Extract most ncurses calls into NCursesUI::Window methodsMaxime Coste
Try to isolate ncurses as much as possible to explore alternate terminal UI implementation.
2019-09-01Introduce FunctionRef to replace std::function when not storingMaxime Coste
std::function is not necessary when we just want to pass a type erased callback that does not need to own its target. FunctionRef provides that functionality for a much lower compile time cost.
2019-08-31Limit the amounts of calls to get_extra_word_charsMaxime Coste
This is a relatively expensive function as it needs to resolve an option, which uses dynamic_cast.
2019-08-28Merge remote-tracking branch 'eraserhd/pr/master/fix-kak-list-sessions'Maxime Coste
2019-08-21src: Send the stop signal to the entire process groupFrank LENORMAND
Whenever a tool spawns the editor (e.g. Git), suspending it with ^Z is not enough to be sent back to the calling shell - another ^Z is necessary. Fixes #3061
2019-08-20Fix kak -l when $XDG_RUNTIME_DIR is setJason Felice
2019-08-19Merge remote-tracking branch 'lenormf/indented-docstrings'Maxime Coste
2019-08-19Make scrolling speed configurableMaxime Coste
The UI now can send a 'Scroll' key, whose value is the scrolling amount encoded as a signed integer. This replaces the MouseWheelUp and MouseWheelDown keys. The NCursesUI now has a ncurses_wheel_scroll_amount ui_option that controls that amount, it can be negative to swap scrolling direction. Fixes #3045
2019-08-12Fallback to wrapping in between 'word' when 'WORD' failsMaxime Coste
First try to break at a whitespace, if that fails (likely because that last WORD is too long for the wrapping width), then try to wrap at a 'word' boundary (on a non alphanumeric character). Fixes #3048
2019-08-05Use $XDG_RUNTIME_DIRJason Felice
Falls back on old mechanism if `XDG_RUNTIME_DIR` is not set. The ability to specify a session as "<user>/<name>" was removed, since it isn't possible to compute the value of `XDG_RUNTIME_DIR` for another user, we wouldn't have access to it if we could, and it would be awkward to support this feature only when `XDG_RUNTIME_DIR` is unset. Also, `rename-session` did not work when another user's session was specified. Closes #3019