Commit Graph

5756 Commits

Author SHA1 Message Date
Maxime Coste
aec858a819 Update design.asciidoc
Add self documenting as a goal, and precisions relative to pragmatism
and orthogonality.
2014-04-25 18:43:55 +01:00
Maxime Coste
192e0c33f9 Cache commands in complete_commands
Iterating through all directories in path to find commands
can end up quite slow, so cache the result per directory and
update it only if the directory modification time changed.
2014-04-24 19:08:05 +01:00
Maxime Coste
46d5e72960 Add support for git status and checkout 2014-04-23 22:21:40 +01:00
Maxime Coste
418a04f49d Support reading strings more that 2048 bytes
fixes #95
2014-04-23 22:21:04 +01:00
Maxime Coste
389308dfd8 Preserve current word in word completion if found elsewhere
If occurence count in the buffer if greater that one, do not
remove it from the matches.
2014-04-22 19:32:12 +01:00
Maxime Coste
65c818b859 Use StringView in CommandManager 2014-04-21 21:49:25 +01:00
Maxime Coste
8beda67fae Use StringView in FunctionGroup and FunctionRegistry 2014-04-21 10:50:09 +01:00
Maxime Coste
a1ec45d91a Use StringView in id_map 2014-04-21 10:47:21 +01:00
Maxime Coste
5ebd588e5f remove unused memoryview<char> String::data 2014-04-21 00:26:20 +01:00
Maxime Coste
61619d82bf use StringView::zstr() in place of StringView::str().c_str() 2014-04-21 00:26:20 +01:00
Maxime Coste
7cdb94d5c7 Use StringView in shell manager 2014-04-21 00:26:20 +01:00
Maxime Coste
63a0b9d22a Add a zstr() method to StringView that returns a zero terminated string holder 2014-04-21 00:26:20 +01:00
Maxime Coste
c4295b7e30 Fix StringView::substr when passed a negative length 2014-04-20 12:03:57 +01:00
Maxime Coste
055eacd032 use StringView for parse_keys 2014-04-20 11:27:59 +01:00
Maxime Coste
b2123547df Use StringView in BufferManager 2014-04-19 09:53:37 +01:00
Maxime Coste
97b08a6f09 Use StringView for file functions 2014-04-18 14:03:08 +01:00
Maxime Coste
adde2fef75 Use StringView for completion functions 2014-04-18 14:02:14 +01:00
Maxime Coste
af2d82dfc1 Add StringView class for non owning string 2014-04-18 13:47:39 +01:00
Maxime Coste
a7e6e5b936 Remove unimplemented String::replace method 2014-04-18 13:19:07 +01:00
Maxime Coste
1d7a481e81 word completion ignore the word on which the cursor is present 2014-04-17 19:33:49 +01:00
Maxime Coste
2b997719c3 Rename BufferCompleter to InputCompleter 2014-04-16 19:08:44 +01:00
Maxime Coste
7af9863e51 Add an explicit refresh method to user interface
With this refresh method user interface can defer updating
the display until really needed.
2014-04-15 19:19:44 +01:00
Maxime Coste
98c6a6f17e RemoteClient process all available messages 2014-04-15 19:09:42 +01:00
Maxime Coste
374f97a592 fix exception being thrown in error in decl command 2014-04-14 19:01:00 +01:00
Maxime Coste
386813bbfd Add a 'prompt' command 2014-04-13 14:15:34 +01:00
Maxime Coste
7097fcf640 Allow unset completer function in Prompt input mode 2014-04-13 14:15:05 +01:00
Maxime Coste
9ff356cb2b Extract option descriptions in an shared OptionDesc class 2014-04-12 20:03:26 +01:00
Maxime Coste
e9276a0a85 Add a docstring to options 2014-04-11 18:43:25 +01:00
Maxime Coste
05d69f7f8e Use stat when listing files so that link to directories are handled as directories 2014-04-11 18:43:25 +01:00
Maxime Coste
ad94c01d79 Merge pull request #93 from jjthrash/extern_environ
Define extern char **environ for OSX, which doesn't define it in a header
2014-04-10 21:23:02 +01:00
Jimmy Thrasher
061264c039 Define extern char **environ for OSX, which doesn't define it in a header 2014-04-10 15:23:39 -04:00
Maxime Coste
3858479d3d cpp.kak: tweak comment copy on newline
fixes #92
2014-04-10 20:14:11 +01:00
Maxime Coste
30bdc8936b Fix select_whole_lines on empty buffer 2014-04-10 20:14:11 +01:00
Maxime Coste
cd6d7fdd3c client.kak: improve termcmd autodetection 2014-04-10 19:41:43 +01:00
Maxime Coste
19868f01c8 return a const String& in Option::name() 2014-04-09 19:33:37 +01:00
Maxime Coste
e0424ba017 Minor formatting fixes (very long lines) 2014-04-08 20:09:54 +01:00
Maxime Coste
20d20ae1dc formatting changes in command_manager.cc 2014-04-08 19:55:31 +01:00
Maxime Coste
341311c442 update TODO 2014-04-08 19:37:41 +01:00
Maxime Coste
960f823bcd make,grep: focus jumpclient when jumping to location 2014-04-07 23:47:51 +01:00
Maxime Coste
95f6f0bae9 client.kak: add a focus command for focusing a certain client. 2014-04-07 23:47:51 +01:00
Maxime Coste
203a7732f5 Add support for querying client environement variables
At connection, a remote client sends all its environement to the
server, which then provides access to client env through
kak_client_env_VAR_NAME variables in the shell.
2014-04-07 23:47:51 +01:00
Maxime Coste
33de42610d Add g. command to go to the last buffer modification position 2014-04-07 23:47:50 +01:00
Maxime Coste
a387e7a4c6 the 'def' commands now supports -(buffer|client)-completion switches 2014-04-07 23:47:50 +01:00
Maxime Coste
ca54909246 Add ClientManager::complete_client_name 2014-04-07 23:47:50 +01:00
Maxime Coste
a9b3a8b0d6 rename BufferManager::complete_buffername to complete_buffer_name 2014-04-07 23:47:50 +01:00
Maxime Coste
2be90ce30a update README 2014-04-07 21:25:14 +01:00
Maxime Coste
409be4731f ctags.kak: fix support for tags with a tab character in search line 2014-04-07 19:06:09 +01:00
Maxime Coste
0df088be20 Code cleanup in list_files 2014-04-06 10:59:51 +01:00
Maxime Coste
b01ba59911 Merge remote-tracking branch 'jjthrash/fix-closedir-crash' 2014-04-06 02:58:34 +01:00
Jimmy Thrasher
fd5406282d Fix crash caused by attempting to close a nonexistent DIR* 2014-04-05 18:00:59 -04:00