Commit Graph

7813 Commits

Author SHA1 Message Date
Maxime Coste
bfef8fd5aa Fix some cpp autoindent hooks 2014-09-25 19:27:31 +01:00
Maxime Coste
a404886fe2 line joining will only join selected lines if selection span multiples ones
Fixes #133
2014-09-25 19:26:27 +01:00
Maxime Coste
ecf8047bcc Fix reverse search when extending 2014-09-25 13:29:53 +01:00
Maxime Coste
4c4d3cdd38 Add support for mapping keys in goto/view commands 2014-09-23 13:45:18 +01:00
Maxime Coste
858132e771 update keymap 2014-09-23 13:44:16 +01:00
Maxime Coste
9625ea64ff Add inner versions of to object begin/end selection 2014-09-23 13:37:56 +01:00
Maxime Coste
e440adbcf4 add a 'buffers' debug command to get info on alive buffers 2014-09-22 19:19:34 +01:00
Maxime Coste
1296b5d46a update TODO 2014-09-22 13:57:56 +01:00
Maxime Coste
0ac65e1610 Use std:move for selection parameters 2014-09-22 13:55:39 +01:00
Maxime Coste
6bcc038329 tweak helper functions in buffer_utils.hh 2014-09-22 13:45:07 +01:00
Maxime Coste
217ba625ad Use raw terminal, and handle signals manually
C-c now sends SIGINT to the process group of Kakoune server
when used in normal mode.

Fixes #30
2014-09-20 19:35:37 +01:00
Maxime Coste
2aaae7473c preserve selection direction in split lines 2014-09-19 13:45:24 +01:00
Maxime Coste
f738316689 small refactor in highlighters 2014-09-19 13:45:11 +01:00
Maxime Coste
af1134bd75 Fix confusion between -n and -d switches in main 2014-09-18 18:43:42 +01:00
Maxime Coste
ff25948a6f Fix compilation on recent cygwin 2014-09-18 18:43:12 +01:00
Maxime Coste
90df4320b7 Add a small validation assert to catch a rare bug 2014-09-18 10:47:59 +01:00
Maxime Coste
dd2bdea8dd Keep selection direction on split/select/search 2014-09-18 00:34:23 +01:00
Maxime Coste
be85eb5d0b Makefile: Include system header in generated dependencies 2014-09-15 18:59:49 +01:00
Maxime Coste
baa9dd2474 Fix git commit message highlighting 2014-09-11 19:37:34 +01:00
Maxime Coste
827a77539a Add some color to mode specific mode line info 2014-09-10 19:06:53 +01:00
Maxime Coste
c18e2ac90e Target end of line on line selectors 2014-09-09 23:41:32 +01:00
Maxime Coste
5092494427 Add support for target column preservation
Fixes #64
2014-09-09 19:42:57 +01:00
Maxime Coste
7fc1564c0c Use bold attribute for current line in make and grep buffers 2014-09-08 19:32:46 +01:00
Maxime Coste
289cb0485e cpp.kak: fix copying of comments to next line 2014-08-30 14:56:01 +01:00
Maxime Coste
6dc223ed6a Fix spaces_to_tabs when tabs follow spaces 2014-08-28 23:19:18 +01:00
Maxime Coste
114d33c7f8 Limit the iteration count when reading from a fifo 2014-08-26 22:11:23 +01:00
Maxime Coste
f96fa66a41 Update kakrc highlighting 2014-08-26 22:11:05 +01:00
Maxime Coste
c90bdb9862 Fix handling of -- in parameter parser 2014-08-26 22:10:54 +01:00
Maxime Coste
01828523e3 update TODO 2014-08-26 22:10:40 +01:00
Maxime Coste
8fc230e40d Add a 'disabled_hooks' regex option
Hooks whose group matches this regex wont get executed.
2014-08-21 14:37:59 +01:00
Maxime Coste
50e1e5fadd Add support for 'c-o' in prompt and insert to hide the completion menu
Fixes #229
2014-08-19 23:32:19 +01:00
Maxime Coste
d78a586126 Do not allow using color names as face names 2014-08-19 23:16:21 +01:00
Maxime Coste
d78e331304 Allow faces to reference faces
Fixes #102
2014-08-19 23:10:56 +01:00
Maxime Coste
bea53d09b2 Remove option checkers, handle that through the type system
Use a specific type for InsertCompleterDesc with checks in
the option_{from,to}_string functions
2014-08-19 18:56:11 +01:00
Maxime Coste
a36aed94f1 Add support for operator== to Optional 2014-08-19 18:55:36 +01:00
Maxime Coste
2e2812b10f Do not escape completions in completer functions let the client decide
Fixes #231
2014-08-18 23:31:02 +01:00
Maxime Coste
0cdcdb8b03 Document filter mode 2014-08-17 18:06:06 +01:00
Maxime Coste
e6b9a1d982 Get forced file descriptors after calling poll
That way, we do not wait for the next poll to finish before servicing
forced fd triggered by a signal that interupted the poll call.
2014-08-17 15:58:42 +01:00
Maxime Coste
541ec58d76 git-tools: list available commands in git docstring 2014-08-17 15:45:01 +01:00
Maxime Coste
6ba3017a8e Always inline a few more methods 2014-08-17 15:36:12 +01:00
Maxime Coste
5c3f01fea2 Add exception reporting in filter mode 2014-08-17 15:19:04 +01:00
Maxime Coste
8d4531d419 Add support for reading from stdin/writing to stdout in filter mode
Note that kakoune still needs to read the whole buffer first, only
once stdin is closed can it execute the keys.
2014-08-15 13:21:54 +01:00
Maxime Coste
eff32aa1a1 Refactor, remove kakoune function and move it inside main. 2014-08-14 23:57:13 +01:00
Maxime Coste
ceb10665d1 Add support for running kakoune as a filter, using -f 'keys'
It will cycle on every given files, apply the keys and write to
<filename>.kak-out. Only normal/insert mode is available, kakrc
are not read.
2014-08-14 23:51:24 +01:00
Maxime Coste
0588780866 Refactor main loops, use separate functions for each running mode
Server, Client, and Pipe are handle through separate functions,
with the kakoune function handling parameter parsing.
2014-08-14 20:37:36 +01:00
Maxime Coste
aaa6d3ab39 memoryview: add support for reverse iteration 2014-08-14 20:35:03 +01:00
Maxime Coste
2d42783dbd git-tools.kak: Add completion support to git command 2014-08-14 19:42:24 +01:00
Maxime Coste
fbbe741c07 Add support for <c-w> <c-b> and <c-e> for word moves in the line editor
This might go away later if we find a better way of handling line
edition, but seems like a good compromise for now.

Fixes #168
2014-08-14 00:31:39 +01:00
Maxime Coste
518b995720 NCurses: properly handle ctrl+alt 2014-08-14 00:30:32 +01:00
Maxime Coste
2204b7cf06 Defer deletion of buffers to after the event loop
We can have SelectionList in flights on the buffer, so mark
it for deletion by moving it in a buffer trash, and effectively
delete it later, at a point where there should not be any further
access to it.
2014-08-12 19:24:09 +01:00