Commit Graph

2371 Commits

Author SHA1 Message Date
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
Maxime Coste
e2b3dd0ca4 Tweak client redraw logic, avoid highlight if only status line changed 2014-08-12 19:19:46 +01:00
Maxime Coste
d356ae2419 Make safe_ptr able to track callstacks
The code stays disabled, as the performance penalty is quite
high, but can be enabled to help debugging safe pointers.
2014-08-12 19:18:10 +01:00
Maxime Coste
1b54b65bb5 Add an operator[](CharCount) to String and StringView 2014-08-11 19:40:35 +01:00
Maxime Coste
43f44bbab3 Fix buffer modification check
It used to grab the next key, because the normal mode reactivation
when executing the on_next_key would trigger a timestamp check again.
2014-08-07 21:51:36 +01:00
Maxime Coste
c4f0c4dee6 Change escaping method for command completion 2014-08-03 10:03:14 +01:00
Maxime Coste
8ee2aa9ba7 Use more StringView in string helper functions 2014-08-03 10:02:17 +01:00
Maxime Coste
de402c4703 Fix buffer name completion when basename only 2014-08-03 10:00:34 +01:00
Maxime Coste
89956b5347 make.kak: Make column optional. 2014-08-02 09:54:28 +01:00
Maxime Coste
aac02410b1 Buffer completion match directory names as well for subsequence match 2014-07-31 22:43:36 +01:00
Maxime Coste
beb6065a71 Add a -existing switch to edit command
with this switch, fail if the file is not found rather than creating
a new one. Use that in grep and make jump commands.
2014-07-31 22:10:01 +01:00
Maxime Coste
bcb0dd451b Tweak README 2014-07-31 00:08:00 +01:00
Maxime Coste
97a8b1ffb0 Merge some more language support from alexherbo2
* alexherbo2/haml-rc
 * alexherbo2/cucumber-rc
 * alexherbo2/sass-rc
 * alexherbo2/scss-rc
 * alexherbo2/ragel-rc
 * alexherbo2/coffee-rc
 * alexherbo2/rust-rc
2014-07-30 20:46:25 +01:00
Maxime Coste
5fc063c520 Insert word completion: Use subsequence matching if prefix failed 2014-07-30 19:58:34 +01:00
Maxime Coste
4c31449a65 Add access to specific env vars in %val{...} evaluation 2014-07-30 19:17:04 +01:00
Maxime Coste
31f9d87798 Only change search register when prompt are validated
Fixes #160
2014-07-30 19:15:16 +01:00
Maxime Coste
568dc3a37c Add a small TL;DR section at the start of the README 2014-07-30 19:14:37 +01:00
Maxime Coste
9fe4724743 Stop macro recording on esc in normal mode
Fixes #221
2014-07-30 01:09:04 +01:00
Maxime Coste
c6eea12f76 Merge union handling fix in cpp.kak from davidaciko 2014-07-30 00:41:56 +01:00
Maxime Coste
de8b0f3b41 Merge support for some additional languages from alexherbo2
* alexherbo2/lisp-rc
 * alexherbo2/clojure-rc
 * alexherbo2/haskell-rc
 * alexherbo2/scala-rc
 * alexherbo2/markdown-rc
 * alexherbo2/css-rc
 * alexherbo2/html-rc
2014-07-30 00:36:49 +01:00
Maxime Coste
06fc329739 Rewrite real_path, try to find an existing directory in the given path
Never throw, return the given filename in the worst case.
2014-07-30 00:03:01 +01:00
davidaciko
9b0b20f2d4 cpp.kak: Added union support to automatic semicolon after block 2014-07-29 10:18:57 +00:00
davidaciko
ddc25d9d66 davidaciko 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.
2014-07-29 10:01:23 +00:00
Maxime Coste
6e4b0f5781 make.kak: Support fatal errors in errnext / errprev 2014-07-28 19:40:34 +01:00
Maxime Coste
8ed16bb2e9 In non interactive interactive mode, disable user key mappings
exec and eval now accepts a -with-maps to use them. But by default
they are disabled, so that all the indent scripts work even if you
remap basic keys.

Fixes #217
2014-07-27 20:18:09 +01:00
Maxime Coste
7c10660f9a Fix resize handling in ncurses UI 2014-07-26 22:38:10 +01:00
Maxime Coste
8d6e8bc06f Display a [no-hooks] tag in the mode line when hooks are disabled 2014-07-25 23:47:47 +01:00
Maxime Coste
6813440212 Fix Selection::insert when replacing with empty string at the end of the buffer 2014-07-25 23:47:11 +01:00
Alex Leferry 2
507040e8e3 add rc/ragel.kak 2014-07-25 23:03:41 +02:00
Maxime Coste
731277a425 Disable hooks on a per context basis, and propagate that to Insert mode
using \ before entering insert mode will disable hooks during the whole
insert session rather than only the entering phase. That gives a nice
way of pasting text into kakoune.
2014-07-24 19:18:39 +01:00
Maxime Coste
826bf22eef fix align with multiple columns 2014-07-22 00:41:10 +01:00
Maxime Coste
bc48d9260d Fix Menu use of j/k keys when editing filter 2014-07-22 18:39:04 +01:00
Maxime Coste
3c021672d2 Add completion support for rmhooks 2014-07-21 21:14:32 +01:00
Alex Leferry 2
a9aad2a9c9 add rc/rust.kak 2014-07-21 01:37:55 +02:00
Alex Leferry 2
ce1bc291ce add rc/clojure.kak 2014-07-21 01:15:50 +02:00
Alex Leferry 2
9efa00032b add rc/lisp.kak 2014-07-21 01:05:41 +02:00
Alex Leferry 2
fce9d18041 add rc/scss.kak 2014-07-21 01:00:59 +02:00
Alex Leferry 2
ecc49e209b add rc/haskell.kak 2014-07-21 00:25:01 +02:00
Alex Leferry 2
4801ee22a2 source all .kak in autoload/ 2014-07-19 13:41:26 +01:00
Maxime Coste
50abc18c8e Add some more force inlines to some buffer methods 2014-07-19 00:18:16 +01:00
Maxime Coste
6c581b7054 Update README since removal of single region highlighter 2014-07-19 00:17:42 +01:00
Maxime Coste
f4e3df817f Clear status line on normal mode command 2014-07-17 19:37:30 +01:00
Maxime Coste
4a6a02af03 Merge remote-tracking branch 'alexherbo2/kakrc-fixes' 2014-07-17 19:36:59 +01:00