Commit Graph

6791 Commits

Author SHA1 Message Date
Maxime Coste
16b6c17724 Use implicit clang version for travis ci, as 3.9 is not available in latest 2018-06-21 08:15:53 +10:00
Maxime Coste
84b3365dd9 Update travis environment to avoid using llvm provided package sources
Those seem flaky recently.
2018-06-21 08:12:39 +10:00
Maxime Coste
eac6d08518 Merge remote-tracking branch 'Screwtapello/fix-format-recursive-hook' 2018-06-21 08:08:57 +10:00
Maxime Coste
667777521b Refactor the way main selection is determined after rotating contents
Fixes #2133
2018-06-21 08:07:17 +10:00
dahlbaek
52a3e9a84d Pass in OpenBSD binary path using preprocessor option
Alternative to hard coding binary path for OpenBSD
2018-06-20 14:20:55 +02:00
Patrick Marchand
dc3e4823a5 Remove extraneous include for openbsd
Forgot to remove this before pushing.
2018-06-20 14:20:55 +02:00
Patrick Marchand
2789857f32 Adds openbsd support
Seems to work on openbsd 6.3-current but needs more testing. Had to
hardcode the binary path as openbsd considers getting the executable
path at runtime a security flaw.
2018-06-20 14:20:55 +02:00
Tim Allen
3d0c19f8fb Prevent the :format command from triggering hooks.
The :format command is often called from a BufWritePre hook to format the
current buffer, however the :format command itself calls `:write` to store the
buffer in a temporary location, potentially causing an infinite recursion.

If we disable hooks while running :format, there's no danger of that occurring.
2018-06-20 21:11:58 +10:00
Maxime Coste
7591924f85 ctags.kak: Remove tags starting with '!' from ctags completion 2018-06-20 20:20:50 +10:00
Maxime Coste
3d4ee7d201 Tweak search style menu completion display 2018-06-20 20:20:11 +10:00
Maxime Coste
b82d31016b Do not draw menu if it would hide prompt content 2018-06-20 08:12:53 +10:00
Maxime Coste
226db75aeb Change Search completion to display on top of the modeline 2018-06-19 21:02:24 +10:00
Maxime Coste
3824da2ad9 Merge remote-tracking branch 'Delapouite/inner-object' 2018-06-19 19:43:28 +10:00
Maxime Coste
98c67fa9e0 Merge remote-tracking branch 'Delapouite/window-scope' 2018-06-19 19:42:26 +10:00
Maxime Coste
a6c8dcf305 Add a cmake.kak file for highlighting cmake files 2018-06-19 19:40:33 +10:00
Maxime Coste
9053dadfc3 Add kitty.kak to support kitty integration 2018-06-19 19:39:45 +10:00
Katharina Fey
a329f02701
Adding support for kitty terminal 2018-06-19 09:38:15 +02:00
Maxime Coste
119d2e89e0 git-tools.kak: Fix leaking of pipe file descriptors in git-blame support 2018-06-19 07:43:13 +10:00
Maxime Coste
a9b1c8f2d7 scopes.asciidoc: Remove spurious whitespace from some link text 2018-06-19 07:42:48 +10:00
Maxime Coste
6dca67c674 Fix two <s-tab> requiered to access last completion in prompt
A single <s-tab> should be enough.
2018-06-19 07:40:52 +10:00
Maxime Coste
b1605d046b Merge remote-tracking branch 'Laaas/master' 2018-06-17 18:08:47 +10:00
Jan-Jaap Korpershoek
941947ee26 Fix issue where spell-replace would not work if the new word contained a space 2018-06-15 16:37:30 +02:00
Delapouite
0bfdaf7d3e Improve unmap command key-completer 2018-06-15 15:16:08 +02:00
Las
0d54ec70a6 Las <las@protonmail.ch> Copyright Waiver
I dedicate any and all copyright interest in this software to the
public domain. I make this dedication for the benefit of the public at
large and to the detriment of my heirs and successors. I intend this
dedication to be an overt act of relinquishment in perpetuity of all
present and future rights to this software under copyright law.
2018-06-13 01:01:06 +02:00
Las
575e9d44cf Improve rust syntax highlighting
Changes:
- Highlight float literals with float type suffixes (nf64 and nf32)
- Make module items use the module color
- Highlight macro variables $variable
- Highlight lifetimes
- Highlight u128 and i128
- Highlight character literals (e.g. 'a')
- Highlight dyn keyword (will in the future be used for trait objects)
2018-06-13 00:59:38 +02:00
Maxime Coste
665d3fa196 Fix edit -fifo without -scroll when the buffer is already opened
Scrolling was taking place in that case even though it was not
desired.
2018-06-13 07:11:03 +10:00
Maxime Coste
ee19497d37 Fix crash when adapting window position post buffer modifications 2018-06-13 05:00:35 +10:00
Maxime Coste
0bdde991ea Remove unneeded Window::m_range post refactoring 2018-06-12 06:48:48 +10:00
Maxime Coste
0d3a1b5955 Try to keep window position fixed when buffer gets modified
Adapt window position to the changes that happened in the buffer
since last redraw.

Fixes #1989
2018-06-11 15:10:30 +10:00
Maxime Coste
df90ba5984 Extract update_ranges_ifn as a general utility function 2018-06-11 15:10:30 +10:00
Maxime Coste
539832bf29 Add position offset to Window to limit moves with search menu style
Window can be resized with an "offset_pos" flag, which means that
the resize took place on the top left corner of the window, leading
to a change in current window position. This is treated as temporary
and the position change is stored in a m_position_offset field.

That allows the ncurses UI to offset the position when it displays
a Search menu, so that the window does not constantly scroll when
the search menu open/closes. The window will only scroll if it needs
to in order to keep the main selectin visible.
2018-06-11 15:10:30 +10:00
Maxime Coste
60cf71bc24 Pass DisplaySetup through the HighlightContext 2018-06-11 15:10:30 +10:00
Delapouite
c0c7b6590f docs: add more explanation about the ambiguous "window" scope.
The info are currently burried in a hard to find wiki page:
https://github.com/mawww/kakoune/wiki/The-window-scope
2018-06-04 11:12:58 +02:00
Delapouite
8ca98da1cb docs: add missing <a-{> <a-}> <a-[> and <a-]> keys 2018-06-03 10:29:52 +02:00
Maxime Coste
3208bc3762 Merge remote-tracking branch 'JJK96/master' 2018-06-03 12:25:38 +10:00
Maxime Coste
e1aeebc005 Merge remote-tracking branch 'alyssais/linuxbrew' 2018-06-03 12:19:44 +10:00
Maxime Coste
97af2ffc84 Merge remote-tracking branch 'alyssais/patch-2' 2018-06-03 12:19:09 +10:00
Maxime Coste
dd651baad8 Merge remote-tracking branch 'Delapouite/nop' 2018-06-03 12:18:28 +10:00
Maxime Coste
310e5e3bcd NCursesUI: Use only 3 line menu for MenuStyle::Search 2018-06-03 12:17:38 +10:00
Maxime Coste
2bdbf7e379 Add MenuStyle::Search that prevents the menu from hiding buffer text
Fixes #2042
2018-06-03 12:17:38 +10:00
Maxime Coste
56e5322b45 EventManager: Never block if a forced file descriptor is present 2018-06-03 12:17:38 +10:00
Maxime Coste
c63502c7c6 Code cleanup and slight refactor in NCursesUI menu code 2018-06-03 12:17:38 +10:00
Alyssa Ross
e339c7d3be
Mention Linuxbrew in README 2018-06-01 13:05:59 +02:00
Alyssa Ross
0491f8dc03
Remove Homebrew formula
Homebrew core now packages kakoune, and the Linux-specific stuff is now
in Linuxbrew, so there's no reason to keep this formula around anymore.
2018-06-01 13:05:34 +02:00
Alyssa Ross
7685a657ca
Fix grammar in highlight error message 2018-06-01 13:02:38 +02:00
Jan-Jaap Korpershoek
3b098c884f Change syntax highlighting regex for numbers so that numbers in identifiers are no longer highlighted. 2018-06-01 11:21:22 +02:00
Delapouite
5305c6b1ff Add 'nop' keyword highlighting in .kak files 2018-06-01 10:46:05 +02:00
Hao Deng
57b71f0750
Update tmux-repl.kak 2018-05-31 09:37:50 -04:00
Hao Deng
aeddf067d0
Update tmux-repl.kak 2018-05-31 09:35:28 -04:00
Hao Deng
9e0fb5da5f tmux-send-text can take 1 parameter now. 2018-05-30 22:26:26 -04:00