Commit Graph

50 Commits

Author SHA1 Message Date
Maxime Coste
1c418be498 clang.kak: Use echo instead of printf %s as the latter has problems with newlines 2016-01-13 10:27:53 +00:00
Maxime Coste
99c5b7e678 Replace potentially problematic uses of echo with printf %s
Echo supported switches are not well defined, so echo usage that
directly pass a shell variable as parameter may not have the
expected behaviour. Using printf %s should be safer.
2016-01-10 20:41:46 +00:00
Maxime Coste
b6105fa106 Use markup for line-flags instead of a single face 2015-12-12 23:16:07 +00:00
Maxime Coste
4cb74623bb Store the buffer timestamp in line flags options respect it for highlighting
Option content is auto updated to match current buffer, so that line flags
are updated according to buffer modifications.
2015-12-12 11:45:45 +00:00
Maxime Coste
0c30df7a0c Fix clang completion parameter passing 2015-12-02 01:18:20 +00:00
Maxime Coste
550a95a3d7 Change def -shell-params to def -params and take the counts as parameters 2015-12-01 14:00:55 +00:00
Maxime Coste
c71d0e9f8d Display clang completed function documentation 2015-11-30 18:48:22 +00:00
Maxime Coste
bf7d3a4fec Cleanup WIP clang-show-completion-info 2015-11-26 13:35:03 +00:00
Maxime Coste
bd2bf3a6a5 clang.kak: rework clang-show-error-info 2015-11-21 12:07:53 +00:00
Maxime Coste
99f53edd10 clang.kak: Fix escaping in clang-show-error-info 2015-11-17 13:25:48 +00:00
Maxime Coste
bb16be6cf2 clang.kak: Try to detect word boundaries and highlight types/operators 2015-10-06 23:22:36 +01:00
Maxime Coste
6a236c563c clang.kak: small cleanup 2015-10-06 22:50:51 +01:00
Maxime Coste
2c178f86cf clang.kak: Highlight new and delete in completions 2015-10-06 22:43:20 +01:00
Maxime Coste
3ead8f1ac8 Highlight 'operator' in clang completion 2015-10-06 13:39:09 +01:00
Maxime Coste
40ca1fc754 Support plain c in clang.kak 2015-09-21 23:37:49 +01:00
Maxime Coste
c7aca37633 Do not cd into the buffer directory when running clang 2015-08-24 20:10:38 +01:00
Maxime Coste
608cc3265e Fix clang.kak diagnostics now that tuple separator is back to '|' 2015-08-24 18:58:34 +01:00
Maxime Coste
cfb3a668c1 Merge remote-tracking branch 'lenormf/doctrings_update' 2015-08-04 23:08:21 +01:00
Maxime Coste
f9fae1a34f clang.kak: handle fatal errors in diagnostics 2015-08-04 18:41:56 +01:00
Frank LENORMAND
142c34d6de Added documentation strings to the commands that didn't have one already 2015-08-03 22:01:50 +03:00
Maxime Coste
d0f504be27 Inform user when clang parsing finished 2015-03-14 11:27:35 +00:00
Maxime Coste
866b3358c9 Fix clang.kak escaping, go back to a hook for removing tmp dir
Previous trap based solution could end up with sh waiting on a
closed fifo.
2015-03-03 23:24:12 +00:00
Maxime Coste
5cefaa1819 clang.kak: add a clang-diagnostics-next command
clang-diagnostics-next will jump to the next line with a clang
error/warning.
2015-02-18 13:56:13 +00:00
Maxime Coste
15bb048428 clang.kak: use trap to remove the temporary directory, fix escaping problems 2015-02-18 13:55:47 +00:00
Maxime Coste
61ff8a9bb2 fix indentation in clang.kak 2015-02-03 00:42:40 +00:00
Maxime Coste
b4661e37d2 Fix tabs in clang.kak and improve escaping 2015-01-30 13:42:13 +00:00
Maxime Coste
1f89509df9 make clang useable just for syntax checking with clang-parse command 2014-11-27 13:42:36 +00:00
Maxime Coste
75b7f44cf1 Add kakoune filetype -> clang filetype conversion in clang-complete 2014-11-21 13:27:43 +00:00
Maxime Coste
b3a2e4bd25 Show brief comments in clang completion description 2014-11-20 13:18:01 +00:00
Maxime Coste
4757cc4af6 Add diagnostics support to clang.kak 2014-11-19 13:53:31 +00:00
Maxime Coste
bec0ff0fa0 Use a 'complete' alias for file type specific completer 2014-11-18 13:55:52 +00:00
Maxime Coste
d8f49b6fac Tweak clang completion docstring format 2014-11-11 13:55:26 +00:00
Maxime Coste
e8b0a98a78 Remove %rec{...} strings, now "..." strings expand their content 2014-11-11 13:53:57 +00:00
Maxime Coste
2062405f27 Back to an awk based clang completion parsing for better docstrings
docstring now display all accessible overloads of a function
2014-11-11 01:03:00 +00:00
Maxime Coste
484fffc288 Initial support for insert completion docstring 2014-11-07 13:54:43 +00:00
Maxime Coste
e8f2ebb737 Tweak completer scripts 2014-11-06 19:17:13 +00:00
Maxime Coste
23d6b0ea2d Remove clang cleanup hooks once they ran 2014-11-05 21:12:29 +00:00
Maxime Coste
2c2d57f671 much simple clang completion script 2014-10-31 20:53:36 +00:00
Maxime Coste
5c05c88342 Fix clang autocompletion 2014-10-30 14:02:13 +00:00
Maxime Coste
cd24bf93e8 Get non completion clang output into a buffer when completing 2014-10-24 18:46:42 +01:00
Maxime Coste
b8a205b858 Use -group rather than -id in hooks to mirror highlighters closer 2014-06-16 20:42:12 +01:00
Maxime Coste
cc591f015f clang.kak: hide clang_completion option 2014-04-03 19:02:29 +01:00
Maxime Coste
7dc5588adc clang.kak: clear remaining commas in template argument lists 2014-03-29 09:11:09 +00:00
Maxime Coste
126d61aa86 port clang.kak to awk rather than perl 2014-03-27 22:00:14 +00:00
Maxime Coste
36b016226c Insert mode completion execute completers in order, and supports multiple option
The 'completions' option is gone, just add option=completion_option_name
in the completers list.
2014-03-15 03:17:17 +00:00
Maxime Coste
f733007a7b Port most kak scripts to be POSIX shell compliant 2014-03-06 03:35:38 +00:00
Maxime Coste
30093413f7 Replace uses of socat with kak -p <session> 2014-03-02 02:05:38 +00:00
Maxime Coste
92c425ad52 Replace remaining $kak_bufname with more correct $kak_buffile 2014-03-02 01:07:29 +00:00
Maxime Coste
00c1523c6e fix clang auto completion at eol 2014-01-27 19:51:58 +00:00
Maxime Coste
fa72d27f9a Make kak more installable
* Kak relies on the kakrc file to be in ../share/kak/kakrc relative
to kak binary rather than in the same directory
* Added an install target to the Makefile
2013-12-23 21:36:05 +00:00