Commit Graph

4295 Commits

Author SHA1 Message Date
Maxime Coste
1515566e4b Allow context with client and non-window editor 2012-08-17 20:18:36 +02:00
Maxime Coste
7cc5ff7c73 fix create_buffer_from_file when file does not exists 2012-08-17 18:52:04 +02:00
Maxime Coste
8a6e8cd898 RegexColorizer: Fix range computation 2012-08-17 18:42:07 +02:00
Maxime Coste
b6460aaec7 make.kak: style fix 2012-08-17 18:41:40 +02:00
Maxime Coste
4b93a90047 grep.kak: use perl regex syntax and quote parameters 2012-08-17 12:39:57 +02:00
Maxime Coste
c1fcc593a1 Store the current client in context 2012-08-15 22:36:45 +02:00
Maxime Coste
a2aefa2998 avoid keeping end of lines selected in Editor::erase 2012-08-15 18:20:02 +02:00
Maxime Coste
416785f53c Add BufferIterator::clamp(bool avoid_eol) method 2012-08-15 18:18:12 +02:00
Maxime Coste
390d4ccdfc Buffer::{iterator_at,clamp} takes an optional avoid_eol parameter
when avoid_eol is true, clamping does avoid end-of-line if possible
2012-08-15 18:06:59 +02:00
Maxime Coste
260b30e6d9 misc cleanups 2012-08-15 17:55:58 +02:00
Maxime Coste
346108ec62 CommandManager::parse: fix invalid memory read 2012-08-15 17:34:01 +02:00
Maxime Coste
99eaa259e6 Context: do not store buffer, ask editor for it 2012-08-15 17:32:46 +02:00
Maxime Coste
9e3323bf68 RegexColorizer only cache a range instead of the whole buffer 2012-08-15 17:24:08 +02:00
Maxime Coste
6e70b805df colorize_regex become RegexColorizer and maintain a cache of matches 2012-08-15 17:08:48 +02:00
Maxime Coste
5393e9e78b Buffer: add a timestamp 2012-08-15 17:07:53 +02:00
Maxime Coste
14475e91cb rc/grep.kak: style fix 2012-08-14 14:27:32 +02:00
Maxime Coste
e00c811712 complete_buffername try regex matching when prefix matching does not work 2012-08-14 14:26:36 +02:00
Maxime Coste
b630189ce5 Add a writeall (wa) command 2012-08-14 14:20:18 +02:00
Maxime Coste
4e34f777b0 Buffer: stronger invariant, a buffer is never empty and all lines finish by '\n' 2012-08-14 14:13:10 +02:00
Maxime Coste
25899f33cd README: document register and option expansion 2012-08-11 12:22:21 +02:00
Maxime Coste
b37f8f470a use new reg access syntax in rc files 2012-08-11 12:14:17 +02:00
Maxime Coste
0a976cd309 CommandManager: support %reg{<reg>} and %opt{<option>} syntax 2012-08-11 12:13:48 +02:00
Maxime Coste
808e79a53e commands: code cleanup 2012-08-11 11:48:54 +02:00
Maxime Coste
759319ca44 Buffer: move back Modification as an implementation detail
* Filters now only works on insertion and take directly the
   iterator and content
 * use Buffer::insert and Buffer::erase to modify a buffer
2012-08-10 19:12:43 +02:00
Maxime Coste
44621bff11 detect byte order mark in buffers, and write back 2012-08-10 18:48:21 +02:00
Maxime Coste
7d3675fe33 make.kak: quote echo parameter in errjump 2012-08-10 18:47:54 +02:00
Maxime Coste
20655f9290 ShellManager: fix option regex, allow caps 2012-08-10 18:47:18 +02:00
Maxime Coste
d81a100a85 support crlf line ending when reading and writing buffers 2012-08-10 14:24:13 +02:00
Maxime Coste
54b599c1a7 Buffer: fix corner case in insert 2012-08-10 14:22:57 +02:00
Maxime Coste
c7fc2a9317 Buffer: add reset_undo_data method 2012-08-10 14:21:32 +02:00
Maxime Coste
e5c46d7c45 Window,Buffer: add const overload for {option,hook}_manager 2012-08-10 14:21:01 +02:00
Maxime Coste
a30b3e1343 highlight_range: handle empty ranges 2012-08-10 14:20:15 +02:00
Maxime Coste
f59dd77f60 add rc/asciidoc.kak for asciidoc highlighting 2012-08-08 19:38:27 +02:00
Maxime Coste
1eb2b8321b make.kak: errjump also display the error description in the status line 2012-08-08 19:37:32 +02:00
Maxime Coste
691a6328b1 exec_keys: use the context editor, no need for a new one 2012-08-08 19:37:04 +02:00
Maxime Coste
ce99856bfa Refactor BufferManager 2012-08-08 19:36:40 +02:00
Maxime Coste
b29b75aa81 Regex Highlighter: highlight 10 lines above and below displayed range
and some code cleanup
2012-08-08 19:02:36 +02:00
Maxime Coste
1ede3f6b13 BufferIterator: use default operator= 2012-08-08 18:51:30 +02:00
Maxime Coste
939dc0fa8e Makefile: use -MMD to generate deps instead of using separate steps 2012-08-08 13:39:31 +02:00
Maxime Coste
46b8964bbb Update README
* Document commands, string syntax, shell expansion.
 * Style cleanup
2012-08-08 00:11:36 +02:00
Maxime Coste
e7153aacef rc/{grep,make}.kak: use a scratch buffer to store results 2012-08-07 23:29:12 +02:00
Maxime Coste
78b0c2f7f5 kakrc: fix string highlighting 2012-08-07 23:26:40 +02:00
Maxime Coste
25a1a9c159 Fix do_pipe 2012-08-07 23:25:54 +02:00
Maxime Coste
8e0f99a03b write command refuse to write a scratch file when no filename is given 2012-08-07 23:20:53 +02:00
Maxime Coste
207f2f6bb9 edit commands accept a -scratch flag to edit not to be saved file 2012-08-07 23:20:11 +02:00
Maxime Coste
dd05d6c6f5 BufferIterator: fix operator+ 2012-08-07 23:18:37 +02:00
Maxime Coste
b0ed0e37b7 add rc/grep.kak which provides a grep and gjump command 2012-08-07 14:29:33 +02:00
Maxime Coste
a88da08767 add rc/make.kak which provides make and errjump commands 2012-08-07 13:52:49 +02:00
Maxime Coste
6a660f7e8f ncurses: refresh at the end of print_status so that the status is immediately visible 2012-08-07 14:21:26 +02:00
Maxime Coste
2cac18545e define_command: remove unused param from parser definition 2012-08-07 14:26:51 +02:00