Commit Graph

1840 Commits

Author SHA1 Message Date
Maxime Coste
270420d485 Merge remote-tracking branch 'somasis/feature/etc.kak' 2015-12-05 10:02:01 +00:00
Kylie McClain
2fb48d1d6f etc.kak: highlighting for common Unix system configuration files 2015-12-04 20:58:33 -05:00
Kylie McClain
f86acce5b8 exherbo.kak: add more paludis configurations, various improvments 2015-12-04 13:42:37 -05:00
Maxime Coste
d09dd09b6c commenting.kak: fix bashism and cleanup 2015-12-03 13:38:37 +00:00
Maxime Coste
55d60e6ce2 Merge remote-tracking branch 'lenormf/rc/commenting.kak' 2015-12-03 13:35:01 +00:00
Frank LENORMAND
74112ef23c Simplify/remove the escaping routines 2015-12-03 08:52:57 +03:00
Frank LENORMAND
c8efd3dd53 Add comment characters to the HTML support script 2015-12-02 15:33:29 +03:00
Frank LENORMAND
c40dba8a20 Escape additional characters that could be interpreted by the regex/exec engine 2015-12-02 15:22:31 +03:00
Frank LENORMAND
c84f06300a Do not add an extra space before/after the commenting characters, to let the user choose exactly what will be inserted in the selection 2015-12-02 12:55:25 +03:00
Maxime Coste
2a6f36732d Merge remote-tracking branch 'lenormf/rc/man.kak' 2015-12-02 09:38:42 +00:00
Maxime Coste
0c30df7a0c Fix clang completion parameter passing 2015-12-02 01:18:20 +00:00
Maxime Coste
982270abf9 tmux.kak: forward arguments without going though a %sh{} 2015-12-02 00:53:34 +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
Frank LENORMAND
d540b9f924 Display the page number in the man page completions 2015-12-01 12:16:21 +03:00
Maxime Coste
c71d0e9f8d Display clang completed function documentation 2015-11-30 18:48:22 +00:00
Maxime Coste
a8d81e395b Support dropping last jump and use it to fix :tag double jump push
Fixes #492
2015-11-27 13:57:46 +00:00
Maxime Coste
bf7d3a4fec Cleanup WIP clang-show-completion-info 2015-11-26 13:35:03 +00:00
Maxime Coste
9fe19fa72e ctags.kak: rename gentags to ctags-generate and add ctags-update
Both use proper locking of the tag file, and ctags-update can
update the tags file for a single file.
2015-11-21 12:08:28 +00:00
Maxime Coste
bd2bf3a6a5 clang.kak: rework clang-show-error-info 2015-11-21 12:07:53 +00:00
Maxime Coste
208b91627d Move client.kak as x11.kak and change tmux.kak to be its peer 2015-11-17 22:28:03 +00:00
Maxime Coste
c6e1d9b3dd Merge remote-tracking branch 'lenormf/rc/tmux.kak' 2015-11-17 13:40:28 +00:00
Maxime Coste
99f53edd10 clang.kak: Fix escaping in clang-show-error-info 2015-11-17 13:25:48 +00:00
Frank LENORMAND
15e2440900 Escape quotes in the restored termcmd variable 2015-11-17 11:18:19 +03:00
Maxime Coste
9aa1b770fd Add sakura to the terminal list in client.kak
Closes #479
2015-11-16 13:57:58 +00:00
Maxime Coste
f028e6e8bb Improve escaping in ctags.kak and complete using ctagsfiles option 2015-11-16 13:34:44 +00:00
Frank LENORMAND
284a40f681 Update rc/client.kak to fit the tmux changes
Trim the script to remove any reference to tmux, and reflect the changes
made in the previous commit.
2015-11-15 19:58:32 +03:00
Frank LENORMAND
678acd32bc Introduce rc/tmux.kak
This commit adds a kak script dedicated to tmux support, and declares
new command to interact with the current tmux session. Users are now
able to create vertical panes or horizontal panes arbitrarily (as
opposed to setting the `termcmd` variable to the proper command). The
script also has its own `focus` function, used to jump from a  pane to
another.
2015-11-15 19:57:12 +03:00
Maxime Coste
60393d580d Override mimetype in rust.kak extension detection
Fixes #481
2015-11-15 16:19:39 +00:00
Maxime Coste
95c1d25f28 Fix uses of "..." strings that are broken due to expanding
Fixes #475
2015-11-10 13:36:16 +00:00
Maxime Coste
329d5938a1 Merge branch 'cfam' of git://github.com/danlrobertson/kakoune 2015-11-06 14:00:22 +00:00
Daniel Robertson
7e7b238da6 Add common types and keywords to c-family syntax
Add a few more common types and C++ extensions to c-family
syntax file
2015-11-06 08:55:23 -05:00
Daniel Robertson
32c1adc271 Gas syntax: update regex and add missing ops
Add missing general purpose instructions and strengthen regular
expressions used to detect labels and instructions.
2015-11-05 09:30:38 -05:00
Maxime Coste
4c75c8d940 Merge branch 'gas_syntax' of git://github.com/danlrobertson/kakoune 2015-11-04 19:43:09 +00:00
Daniel Robertson
a276ea3fb5 Add filetype for gas assembly files
Add hooks for basic syntax highlighting for the gas assembly file type
2015-11-04 13:06:32 -05:00
Maxime Coste
beab7dbf41 Cleanup the various trailing space removal hooks 2015-11-04 09:48:47 +00:00
angt
c4060a790f Add some c-family keywords 2015-11-02 19:12:51 +01:00
Frank LENORMAND
753e3d17de Simplify the highlighted regions, fix the ones remaining 2015-10-29 10:00:23 +03:00
Maxime Coste
7581cde87a Merge remote-tracking branch 'lenormf/rc/c-family.kak' 2015-10-28 00:06:25 +00:00
Frank LENORMAND
cbfc6d3cd0 Allow different type of pre-processing guards to be included in C
headers.

This commit introduces the `c_include_guard_style` option, which can
take one of the following values: "ifdef", "pragma", "none". The
corresponding type of guard will be used accordingly to the value of
this variable.
2015-10-27 17:23:04 +03:00
Frank LENORMAND
f7e976676c Introduce the commenting.kak file
Centralize commenting functions into a single file, and declare
variables used by those functions in language support files. The
functions are `comment-selection` and `comment-line`, users should bind
those functions to the keys of their liking for easy access.
2015-10-25 15:54:17 +03:00
Maxime Coste
8f7c2ac636 Merge remote-tracking branch 'lenormf/rc-fix-format' 2015-10-23 13:50:29 +01:00
Maxime Coste
092cafdaaa Merge remote-tracking branch 'lenormf/rc/perl.kak' 2015-10-23 13:50:13 +01:00
Frank LENORMAND
e5b8c9f4dc Add a basic perl highlighting script 2015-10-23 14:41:49 +03:00
Frank LENORMAND
8f432a2eea Introduce formatter.kak to handle formatting.
The modified files used to handle formatting code with the same code,
and a different command, the process is now centralized into a single
file. Language support files should set the `formatcmd` string to
whatever formatter is the most popular in their respective community,
eventually with default options.
2015-10-22 16:41:19 +03:00
Maxime Coste
64b7ccd107 Merge remote-tracking branch 'lenormf/rc/c-family.kak-astyle' 2015-10-21 09:51:21 +01:00
Maxime Coste
16ef5da72f Merge remote-tracking branch 'lenormf/rc-fix-unalias' 2015-10-21 09:51:08 +01:00
Maxime Coste
1f276b3fcf Recognize shell config files as sh scripts 2015-10-21 09:50:31 +01:00
Frank LENORMAND
8d87447edd Fix the calls to unalias, add new characters to Go's commenting class, use a default color for D's verbatim strings 2015-10-21 08:03:33 +03:00
Frank LENORMAND
1713f14d5c Add an alias for commenting whole lines, fix the call to unalias 2015-10-21 07:50:11 +03:00
Frank LENORMAND
f2eb2e8b1c Add support for astyle code-formatting 2015-10-11 17:41:14 +03: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
39a859d85d Use markup in :tag menu to show search pattern 2015-10-05 13:51:42 +01:00
Maxime Coste
0df72bd672 Recognize single brackets in sh.kak 2015-10-02 13:43:37 +01:00
Brayden
d12be9fdc1 Support paths with spaces for c-family :alt 2015-10-01 11:38:58 -07:00
Maxime Coste
20f744bd53 Remove useless try blocks in comment functions
We should not have exceptions raised there, if there is, do not
ignore them
2015-09-22 19:09:54 +01:00
Maxime Coste
6c73d6e794 Merge remote-tracking branch 'lenormf/rc/c-family.kak-comment' 2015-09-22 19:06:26 +01:00
Maxime Coste
7750df787a Try to manually detect if .h files are c or cpp 2015-09-22 19:01:15 +01:00
Frank LENORMAND
c7f568f696 Clean up and improve the commenting functions
Simplifies the selection commenting function, add proper draft options
to the exec statements, and make the uncommenting bit keep the selection.

Add a function that comments the current line with "//", uncommenting is
supported as well.
2015-09-22 14:32:14 +03:00
Maxime Coste
40ca1fc754 Support plain c in clang.kak 2015-09-21 23:37:49 +01:00
Maxime Coste
70fdd068dc c-family.kak: add plain c highlighter and detection
Give priority to extension over detected mimetype, as
file often takes c++ files to be c files.
2015-09-21 23:36:20 +01:00
Maxime Coste
3b1d15bf8b Merge remote-tracking branch 'lenormf/rc/c-family.kak-comment' 2015-09-21 13:40:37 +01:00
Maxime Coste
889499e3e8 Add makefile highlighting support 2015-09-21 13:37:45 +01:00
Frank LENORMAND
6ed7bf8821 Allow the autowrap command to break lines as many times as necessary 2015-09-21 07:51:05 +03:00
Maxime Coste
df5943be94 Word boundaries do not work correctly for asciidoc highlighting 2015-09-20 17:39:39 +01:00
Maxime Coste
37d7b027e0 In {grep,make}-{next,prev}, display the selected error/match in the toolsclient 2015-09-19 11:02:24 +01:00
Maxime Coste
73bedda8b9 Use word boundary assertion instead of lookarounds 2015-09-15 13:51:08 +01:00
Maxime Coste
f274aba746 Fix man page completion, support more man page extensions 2015-09-11 13:07:52 +01:00
Maxime Coste
55e7f857a4 Merge remote-tracking branches 'lenormf/rc/{dlang,golang,javascript,tupfile}.kak' 2015-09-11 11:51:53 +01:00
Frank LENORMAND
83062065b8 Add basic support for integers and floats 2015-09-11 11:02:09 +03:00
Frank LENORMAND
b3992cfa5a Add basic support for tup's Tupfile format 2015-09-11 10:40:22 +03:00
Frank LENORMAND
7ba16e48cd Add "of" to the list of highlighted keywords 2015-09-08 16:32:49 +03:00
Frank LENORMAND
8bbd292557 Fix the format-code alias, remove an unused function 2015-09-07 16:34:41 +03:00
Frank LENORMAND
afd9203dbf Fix the format-code alias, remove an unused function 2015-09-07 16:33:38 +03:00
Maxime Coste
3b4bb8674c Merge remote-tracking branch 'lenormf/rc/dlang.kak' 2015-09-07 13:35:32 +01:00
Maxime Coste
3ed0675be2 Merge remote-tracking branch 'lenormf/rc/golang.kak' 2015-09-07 13:33:19 +01:00
Kylie McClain
673eeea466 rc/markdown: Fix list formatting; multiple indented bullets, unindented bullets 2015-09-06 21:24:08 -04:00
Maxime Coste
3d7be57de7 Merge remote-tracking branch 'lenormf/rc/golang.kak' 2015-09-06 20:09:59 +01:00
Frank LENORMAND
e5da5aca23 Take the formatting function out of the hook 2015-09-06 21:07:55 +03:00
Frank LENORMAND
88775a91b3 Take the formatting function out of the hook 2015-09-06 21:06:28 +03:00
Frank LENORMAND
0d348f880c Take the formatting function out of the hook 2015-09-06 18:14:17 +03:00
Maxime Coste
3e9fcf828f Merge remote-tracking branch 'lenormf/rc/golang.kak-mimetype' 2015-09-04 18:52:08 +01:00
Maxime Coste
3064bd8d90 Merge remote-tracking branch 'lenormf/rc/dlang.kak' 2015-09-04 18:51:49 +01:00
Frank LENORMAND
1b649ae294 Fix the number literals regex, empty the mimetype to have proper highlighting syntax 2015-09-04 14:51:36 +03:00
Frank LENORMAND
b1598f9542 Work around a parsing error with regular C strings 2015-09-04 14:01:53 +03:00
Frank LENORMAND
2513495fd0 Highlight escape sequences in strings only, empty the mimetype to have proper syntax highlighting 2015-09-04 13:55:25 +03:00
Frank LENORMAND
e43a080f32 Add D support, with syntax highlighting and auto-formatting using dfmt 2015-09-04 11:31:19 +03:00
Maxime Coste
f14f87d2d8 javascript.kak: Fix indent functions
"..." strings do expand the %{...} strings in them, so
"eval -opt %{haha haha}" is the same as 'eval -opt haha haha'.
2015-09-02 13:30:34 +01:00
Maxime Coste
60f2067c91 Merge remote-tracking branch 'lenormf/rc/markdown.kak-trailing-whitespaces' 2015-08-25 19:22:30 +01:00
Frank LENORMAND
c65c0b394a Remove the hooks that take care of trailing whitespaces 2015-08-25 16:23:47 +03:00
Maxime Coste
c7aca37633 Do not cd into the buffer directory when running clang 2015-08-24 20:10:38 +01:00
Maxime Coste
1bc333a028 Highlight diffs in git-log highlighter, to handle the -p switch 2015-08-24 20:10:07 +01:00
Maxime Coste
c143d6d203 Use a reusable diff highlighting group in diff.kak 2015-08-24 19:17:50 +01:00
Maxime Coste
608cc3265e Fix clang.kak diagnostics now that tuple separator is back to '|' 2015-08-24 18:58:34 +01:00
Kylie McClain
f63d012fad rc/exherbo: various improvements 2015-08-23 19:34:37 -04:00
Maxime Coste
dc504284c3 Change flag lines highlighter to use faces instead of colors
Fixes #130
2015-08-23 12:13:14 +01:00
Maxime Coste
307943fcf7 Merge remote-tracking branch 'lenormf/rc/python.kak-bool' 2015-08-20 20:12:39 +01:00
Frank LENORMAND
953ca06c1f Add bool to the list of highlighted types 2015-08-14 11:41:07 +03:00
Kylie McClain
6325950758 rc/markdown: add another markdown extension (.mkd) 2015-08-13 15:07:17 -04:00
Maxime Coste
dac4fdaa54 Merge remote-tracking branch 'jkonecny/master-ini-highlight' 2015-08-11 20:35:24 +01:00
Maxime Coste
34a933a747 Merge remote-tracking branch 'jkonecny/master-fix-python' 2015-08-11 20:35:17 +01:00
Jiří Konečný
6c92444545 Fix python types highlighter 2015-08-11 20:32:07 +02:00
Jiří Konečný
cd8d81d0df Add ini files highlighter
Now it's used for .repo, .socket, .target, .service and .ini files
2015-08-11 20:14:40 +02:00
Maxime Coste
2a72ca6f63 Merge remote-tracking branch 'somasis/master' 2015-08-11 13:33:06 +01:00
Maxime Coste
6916b65dfe Merge remote-tracking branch 'lenormf/rc/autorestore.kak' 2015-08-11 13:30:48 +01:00
Frank LENORMAND
ac98699cf9 Add a comment-selection function 2015-08-11 14:04:24 +03:00
Frank LENORMAND
8c4d6b1861 Add quotes around the messages to be displayed in :echo calls 2015-08-11 09:25:58 +03:00
Frank LENORMAND
0000dd4705 Add the double type to the list of highlighted types 2015-08-11 08:16:04 +03:00
Kylie McClain
90f7edb1ac rc/exherbo: initial support rc 2015-08-09 12:41:29 -04:00
Maxime Coste
46d1f438d6 Style tweak in autorestore.kak 2015-08-07 09:20:58 +01:00
Frank LENORMAND
d3f9cce386 Remove a useless check for the 'yes' value of a bool option 2015-08-07 09:20:57 +01:00
Frank LENORMAND
d44214f136 Prevent the autorestore to recover backups on non-existent files 2015-08-07 09:20:56 +01:00
Frank LENORMAND
e29f8d3261 Fix an unecessary files listing when restoring buffers 2015-08-07 09:20:55 +01:00
Maxime Coste
c41870ec98 grep.kak: Fix some missed used of jump instead of grep-jump 2015-08-05 18:37:25 +01:00
Maxime Coste
c01956726a grep.kak: Fix remaining use of jump instead of grep-jump 2015-08-05 00:19:37 +01:00
Maxime Coste
7ecd44d3ad make.kak: Rename err{jump,next,prev} to make-{jump,next,prev} 2015-08-04 23:10:08 +01:00
Maxime Coste
cfb3a668c1 Merge remote-tracking branch 'lenormf/doctrings_update' 2015-08-04 23:08:21 +01:00
Maxime Coste
102a854125 Merge remote-tracking branch 'lenormf/rc/autowrap.kak' 2015-08-04 23:06:28 +01:00
Maxime Coste
6827662b27 Merge remote-tracking branch 'lenormf/rc/autorestore.kak' 2015-08-04 22:46:24 +01:00
Maxime Coste
fb33fe1d2d Merge remote-tracking branch 'jkonecny/master-kickstart-colors' 2015-08-04 22:45:54 +01:00
Maxime Coste
f9fae1a34f clang.kak: handle fatal errors in diagnostics 2015-08-04 18:41:56 +01:00
Frank LENORMAND
73e788fc59 Fix and improve the whole backup restoration procedure
The restore-buffer command was made publicly visible to allow arbitrary
reloads of the backup files, only backup files that were created after
the file has last been modified will be loaded, and several bugs have
been fixed (sed/find patterns).
2015-08-04 16:56:35 +03:00
Frank LENORMAND
8beb1da552 Prevent the "funcinfo" command from printing errors
Add a try{} scope around the exec statement that raises errors when no
selection was possible/made.
2015-08-04 07:52:57 +03:00
Frank LENORMAND
38bb9fc3a8 Modify the name and attribute of three grep commands
Add the "grep" prefix to the "jump", "next" and "prev" commands for
homogeneity with other kak scripts, and prevent the "grep-jump" command
from raising errors by enclosing it into a try{} scope.
2015-08-04 07:52:51 +03:00
Frank LENORMAND
926e628a36 Prevent the hook from wrapping the next line when the cursor is at the end of the current line 2015-08-04 07:24:16 +03:00
Jiří Konečný
13746767a2 Minor changes in kickstart.kak
Kickstart is using colors/default.kak completely now.
Fix packages groups wasn't matched correctly.
2015-08-03 21:16:22 +02: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
226463b0e8 Merge remote-tracking branch 'jkonecny/master-rust-fix' 2015-08-03 11:30:19 +01:00
Frank LENORMAND
b4e1d711d6 Fix the pattern used in the backups lookup onliner to avoid false positives 2015-08-02 16:13:58 +03:00
Jiří Konečný
36fea948b0 Fix rust error when calling indent function 2015-08-02 12:59:49 +02:00
Maxime Coste
b5444883e9 Merge remote-tracking branch 'lenormf/rc/autorestore.kak' 2015-08-01 00:35:57 +01:00
Frank LENORMAND
9bd6a6da90 Set the maximum recursion depth to one to avoid unecessary high CPU usage 2015-07-31 18:34:53 +03:00
Maxime Coste
55f6ca7431 Merge remote-tracking branch 'lenormf/rc/autorestore.kak' 2015-07-31 14:01:07 +01:00
Frank LENORMAND
cf149b7985 Add an automatic backup restoration script that handles .kak.XXXXXX files 2015-07-30 18:43:57 +03:00
Frank LENORMAND
560a02e386 Add the object type to the list of python highlighted types 2015-07-30 18:10:35 +03:00
Frank LENORMAND
ddaa31a300 Highlight python types, when they are not used as constructors 2015-07-30 17:59:22 +03:00
Frank LENORMAND
8287977c2d Improve the autowrap script 2015-07-29 11:48:07 +03:00
Maxime Coste
15a34be46d Merge branch 'master' into colorscheme 2015-07-03 21:33:08 +01:00
Maxime Coste
742fdc1f7d Recognize colorscheme command in kakrc files and in README 2015-07-03 21:14:08 +01:00
Maxime Coste
93b6534ef1 man.kak: Add basic completion to man command 2015-07-03 21:00:10 +01:00
xificurC
8813580516 fix shell string start and end regex 2015-07-02 21:59:34 +02:00
Gokcehan Kara
3e428f2251 add rc/julia.kak 2015-06-28 15:20:23 +03:00
Maxime Coste
71081f3823 Add autowrap.kak providing auto word wrapping hook 2015-07-24 14:02:32 +01:00
Frank LENORMAND
6ee2acd674 Add an option to auto-format Go buffers on write 2015-07-22 12:02:10 +03:00
Maxime Coste
5ed9fd2763 Remove golang hooks on filetype change to non-go 2015-07-21 23:41:07 +01:00
Maxime Coste
0ad2aaf54a Merge remote-tracking branch 'lenormf/rc/golang.kak' 2015-07-21 23:35:30 +01:00
Maxime Coste
fd0ba130f8 Merge remote-tracking branch 'lenormf/c-hexa' 2015-07-21 23:35:16 +01:00
Frank LENORMAND
715a19f7c4 Add a Go script, containing highlighters and auto-indent functions 2015-07-21 11:22:57 +03:00
Frank LENORMAND
6d70c37bd3 Add support for hexadecimal numbers to the C family languages 2015-07-20 17:31:33 +03:00
Maxime Coste
da2e2d5380 Merge remote-tracking branch 'alexherbo2/dockerfile-rc' 2015-07-20 13:18:20 +01:00
Maxime Coste
d8fe238c11 Fix :man completion on unknown man pages 2015-07-20 13:16:05 +01:00
Alex Leferry 2
04fa164e2d add rc/dockerfile.kak 2015-07-18 23:12:05 +02:00
Frank LENORMAND
54604693bc Add more file extensions and keywords to the shell script highlighter 2015-07-17 20:36:33 +03:00
Maxime Coste
5b554ff474 Add support for command completion on commands, use it for :new
That means commands can be completed using other commands and their
completers. Yes that does makes sense.

Closes #296
2015-06-26 13:57:23 +01:00
Maxime Coste
19a6b16e25 Merge remote-tracking branch 'jkonecny/master-kickstart' 2015-06-13 09:55:45 +01:00
Jiří Konečný
a25a9e1026 Add syntax highlighter for kickstart files 2015-06-13 10:27:22 +02:00
Maxime Coste
b560011f12 Merge remote-tracking branch 'jkonecny/master-fix-shell' 2015-06-12 18:28:20 +01:00
Jiří Konečný
cc69e8f81e Fix shell highlighter for comments and variables
Fix $# was processed as comment but it's variable.
Add highlighting for $#, $$, $!, $@, $?, $-, $* as variables too.
2015-06-12 17:34:43 +02:00
Jiří Konečný
d5a50d4f7b Add first and second line highlighting git-commit
First 50 characters are recommended for subject line. They are highlighted
with yellow color.
The subject line wants an empty second line, so every characters (except
for comments) on second line are highlighted with red background.
2015-06-11 19:07:51 +02:00
Maxime Coste
6cb7e20d54 Fix grep/make.kak with new behaviour for gl/gh 2015-06-08 22:33:32 +01:00
Alex Leferry 2
e01126214e detect ClojureScript files 2015-06-06 11:41:47 +02:00
Maxime Coste
ccfb87ecf3 git-tools: support git rm and avoid interpreting git output 2015-05-23 10:56:52 +01:00
Maxime Coste
a006c20979 Merge remote-tracking branch 'origin/master' 2015-05-12 00:56:28 +01:00
Maxime Coste
4a843ec8d4 clear git blame flags option when hiding git blame 2015-05-10 17:20:42 +01:00
Benoît Laurent
4ab01ff80d Use named colors in highlighting configuration for markup languages. 2015-05-09 22:03:41 +02:00
Maxime Coste
1a1db1cb3a {line,column}_option highlighters use an expanded string instead of an option name
That allows access to non option values, such as cursor_column or cursor_line with
:addhl line '%val{cursor_line}' default,rgb:404040

Fixes #38
2015-05-04 17:12:51 +01:00
Maxime Coste
0ab4ac5515 Improve asciidoc highlighting 2015-04-30 19:18:20 +01:00
Maxime Coste
1bbb4ce29c Add some missing operators to C++ highlighting 2015-04-30 13:45:48 +01:00
Maxime Coste
dd9533e625 Small tweak in c-family-alternative-file error handling 2015-04-21 13:21:24 +01:00
Maxime Coste
db9d679f8e Tweak escaping in errjump 2015-04-10 23:45:09 +01:00
Maxime Coste
166682d802 git-tools.kak: tweak git-status highlighting 2015-03-30 23:06:46 +01: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
4ce589f9a7 Fix removing of fifo directories, remove the hook itself once done 2015-02-20 18:43:09 +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
47c8a4378f fix :tag when a '<' is present in the search pattern 2015-01-30 13:41:14 +00:00
Maxime Coste
02adf234b4 jedi.kak: use the docstring as completion doc 2015-01-23 19:11:19 +00:00
Maxime Coste
3b0e9331a7 Fix git show-diff 2015-01-22 21:18:59 +00:00
Maxime Coste
d737929b9e git-tools: detect options not needing commit message edition 2015-01-21 13:44:05 +00:00
Maxime Coste
c79cd59314 git-tools: Add initial git commit support 2015-01-16 13:57:10 +00:00
Maxime Coste
da600ff504 Fix git status highlighting 2015-01-15 19:58:17 +00:00
Maxime Coste
abe3856d29 c-family.kak: Just remove trailing indent on InsertEnd 2014-12-18 19:33:57 +00:00
Maxime Coste
8d7ddfdf8b Only remove trailing whitespaces on InsertEnd when last insert was auto indent
Fixes #242
2014-12-17 13:58:05 +00:00
Maxime Coste
51b88bef10 small tweak in objective c highlight 2014-12-03 19:46:55 +00:00
Jimmy Thrasher
eddad89915 Support @"" style strings for Obj-C syntax highlighting 2014-12-02 11:44:02 -05:00
Jimmy Thrasher
e540dc7f9e Add mime-type check for Obj-C in case the user's file cmd supports it 2014-12-02 11:15:53 -05:00
Jimmy Thrasher
d73fe2cc6d Add some missing obj-c highlight patterns to the new c-family.kak 2014-12-02 09:39:57 -05:00
Maxime Coste
798d4c3a1e use printf rather than echo in c-family.kak
According to POSIX, echo with a backspace in any arg is undefined
behaviour...
2014-12-01 19:33:15 +00:00
Maxime Coste
6c45b1d1e2 Try to unify objective c and cpp in a c-family.kak file 2014-12-01 13:52:24 +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
593aa44c3f Forward user parameters in git blame command 2014-11-25 13:52:41 +00:00
Evert Van Petegem
7f35e92989 Add java code highlighting 2014-11-22 20:14:35 +01: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
d7a31f8983 jedi.kak: remove the tmp dir directly in the %sh block 2014-11-19 13:54:36 +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
6c47b204e2 Support windows style path in grep output 2014-11-11 13:58:12 +00:00
Maxime Coste
9b2611a611 Support windows style path in make output 2014-11-11 13:56:21 +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
7d4c9c2ccf Support hinting if an inline info should be above or below the anchor
Used by ctags function info, we always want it *above* the opening
parenthesis so that it does not hide multi line parameter lists.
2014-11-10 13:37:17 +00:00
Maxime Coste
484fffc288 Initial support for insert completion docstring 2014-11-07 13:54:43 +00:00
Maxime Coste
35ce3918be Remove unneeded capture groups from rust highlighting 2014-11-07 13:18:37 +00:00
Maxime Coste
8ffecb8e77 fix typo in jedi.kak 2014-11-07 13:14:51 +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
66c8738aca Add initial jedi python completion script 2014-11-05 21:12:21 +00:00
Maxime Coste
dc5742cf20 Fix escaping of ' in single quote python strings 2014-11-05 21:02:06 +00:00
Maxime Coste
0d620c3905 cpp.kak: tweak cpp-alternative-file implementation 2014-11-05 13:43:29 +00:00
Maxime Coste
549d28e5ab update cpp highlight, add constexpr 2014-11-04 22:23:28 +00:00
Maxime Coste
16bb1b4835 update kakrc highlight, add alias/unalias 2014-11-04 22:23:28 +00:00
Maxime Coste
9a2822e329 Change :info -anchor option, take directly a buffer coordinate
Fix ctags funcinfo feature using that
2014-10-31 21:49:36 +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
13ce49009d Use an alias for the :alt command defined in cpp.kak 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
a6d73bb928 Fix tag command, using IFS is a *bad* idea 2014-10-23 19:25:39 +01:00
Maxime Coste
8ff67ee415 cpp.kak: highlight cast operators 2014-10-22 19:32:04 +01:00
Maxime Coste
7a2afbcf48 Add support for a ctagsfiles option that lists all tags to read from
Results from all tags will be merged

Fixes #22
2014-10-12 18:51:27 +01:00
Maxime Coste
1bf5a1eee5 Improve sh highlighting 2014-10-12 12:27:19 +01:00
Maxime Coste
75d0b97af1 Fix ragel.kak highlighting 2014-10-07 09:16:19 +01:00
Maxime Coste
e0c98055ab Fix cpp indentation align to opening paren 2014-10-07 09:16:19 +01:00
Maxime Coste
008ba2cbab Use ',' instead of '|' as tuple option fields separators 2014-10-06 19:32:25 +01:00
Maxime Coste
cf01227e1c cpp.kak: #if 0 stop at next endif or else or elif 2014-10-01 23:30:32 +01:00
Maxime Coste
ba3c18e674 cpp.kak: grey out code in #if 0 2014-09-26 00:32:08 +01:00
Maxime Coste
bfef8fd5aa Fix some cpp autoindent hooks 2014-09-25 19:27:31 +01:00
Maxime Coste
baa9dd2474 Fix git commit message highlighting 2014-09-11 19:37:34 +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
f96fa66a41 Update kakrc highlighting 2014-08-26 22:11:05 +01:00
Maxime Coste
541ec58d76 git-tools: list available commands in git docstring 2014-08-17 15:45:01 +01:00
Maxime Coste
2d42783dbd git-tools.kak: Add completion support to git command 2014-08-14 19:42:24 +01:00
Maxime Coste
89956b5347 make.kak: Make column optional. 2014-08-02 09:54:28 +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
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
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
davidaciko
9b0b20f2d4 cpp.kak: Added union support to automatic semicolon after block 2014-07-29 10:18:57 +00:00
Maxime Coste
6e4b0f5781 make.kak: Support fatal errors in errnext / errprev 2014-07-28 19:40:34 +01:00
Alex Leferry 2
507040e8e3 add rc/ragel.kak 2014-07-25 23:03:41 +02: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
576d4baa19 add rc/scala.kak 2014-07-16 15:06:32 +02:00
Alex Leferry 2
73ab9cfe71 ruby.kak: fix identifier highlighting 2014-07-16 14:22:18 +02:00
Alex Leferry 2
c4a6f5fa96 ruby.kak: indent on opener / closer tokens 2014-07-16 14:22:15 +02:00
Alex Leferry 2
cd656ae4eb javascript.kak: fix indent on closer token 2014-07-16 13:56:40 +02:00
Alex Leferry 2
2e8956356b add rc/cucumber.kak 2014-07-16 00:01:32 +02:00
Alex Leferry 2
163d310371 add rc/coffee.kak 2014-07-14 23:22:59 +02:00
Alex Leferry 2
744e337102 add rc/html.kak 2014-07-14 23:22:09 +02:00
Alex Leferry 2
b755d4a82e add rc/css.kak 2014-07-14 23:21:47 +02:00
Alex Leferry 2
d2388929f1 add rc/haml.kak 2014-07-14 23:21:21 +02:00
Alex Leferry 2
0c1f58ad89 add rc/sass.kak 2014-07-14 23:20:51 +02:00
Alex Leferry 2
bb9b0f6db0 add rc/markdown.kak 2014-07-14 23:18:54 +02:00
Maxime Coste
ac5cbba0ae Remove region highlighter, rename multi_regions to regions, cleanup 2014-07-14 21:42:19 +01:00
Maxime Coste
85d971f062 Port sh.kak to multi_regions 2014-07-14 20:59:36 +01:00
Maxime Coste
563156992f Merge remote-tracking branch 'alexherbo2/javascript-rc' 2014-07-13 16:59:12 +01:00
Maxime Coste
518c494104 Rename 'macro' face to more general 'meta'
As it is used in python/ruby for 'import' which is not really
a macro.
2014-07-13 16:57:49 +01:00
Maxime Coste
e788417e3b Use a region for c++ macro highlighting 2014-07-13 16:55:34 +01:00
Alex Leferry 2
fdfb65194c highlight '$' identifiers 2014-07-11 01:38:24 +02:00
Maxime Coste
7a080ffb41 Merge pull request #194 from alexherbo2/ruby-rc
ruby.kak: code maintenance
2014-07-10 19:16:02 +01:00
Alex Leferry 2
4b23919e92 highlight symbols in hash syntax as identifiers 2014-07-10 19:16:20 +02:00
Alex Leferry 2
bbc1e1f5c2 minor style fix 2014-07-10 16:23:15 +02:00
Alex Leferry 2
1356e9cb6b fix nested literals highlighting 2014-07-10 16:03:57 +02:00
Alex Leferry 2
84c960ea7c highlight multi-line comments 2014-07-10 01:40:04 +02:00
Alex Leferry 2
2aab87f28c fix single line comments highlighting 2014-07-10 01:40:02 +02:00
Maxime Coste
4e4680c9c6 Merge remote-tracking branch 'alexherbo2/json-rc' 2014-07-08 00:18:35 +01:00
Maxime Coste
0341aa2cbc Merge various language support scripts 2014-07-07 23:59:20 +01:00
Alex Leferry 2
3730c8445b add rc/yaml.kak 2014-07-07 23:01:24 +02:00
Alex Leferry 2
9db995c4eb add rc/ruby.kak 2014-07-07 23:00:15 +02:00
Alex Leferry 2
fad6808d2a add rc/javascript.kak 2014-07-07 22:55:01 +02:00
Alex Leferry 2
ea29a4c2d4 add rc/python.kak 2014-07-07 22:51:09 +02:00
Alex Leferry 2
31cf73bbfd minor style fix 2014-07-07 22:36:00 +02:00
Alex Leferry 2
d25a88a4ae single string is not escapable 2014-07-07 22:35:39 +02:00
Alex Leferry 2
207bb7e389 string and comment do not require white space before 2014-07-07 22:35:32 +02:00
Alex Leferry 2
0b16ca3e5e add rc/json.kak 2014-07-07 16:24:14 +01:00
Maxime Coste
f69df6560d Merge remote-tracking branch 'alexherbo2/termite-termcmd-option' 2014-07-05 12:30:57 +01:00
Alex Leferry 2
83592f5285 fish.kak: do not use shell expansion for highlighting 2014-07-05 01:00:43 +02:00
Alex Leferry 2
a8ae1d7250 client.kak: add termite in termcmd option 2014-07-04 15:43:54 +02:00
Alex Leferry 2
a73bb330ea client.kak: allow granular terminal ordering in termcmd option 2014-07-04 15:41:49 +02:00
Alex Leferry 2
0fcdbfbdd9 indent_on_char: deindent on (else|end) command insertion 2014-07-03 17:51:35 +02:00
Alex Leferry 2
1a84ca46f6 indent_on_new_line: indent after (case|else) commands 2014-07-03 17:47:11 +02:00
Alex Leferry 2
1bcec582d3 indent_on_new_line: handle 'else if' command 2014-07-03 17:20:20 +02:00
Alex Leferry 2
46d086fbbc rename clean_around_selections command to filter_around_selections 2014-07-03 01:33:06 +02:00
Alex Leferry 2
e621814a78 clean_around_selections: select full lines before filtering 2014-07-03 01:17:37 +02:00
Alex Leferry 2
9c9d56abf7 add rc/fish.kak 2014-07-03 00:31:55 +02:00
Maxime Coste
a8148d496f Add :next and :prev for cycling though grep results 2014-06-26 19:02:03 +01:00
Maxime Coste
e202b7af50 Add a line_option highlighter that highlight the line stored in an int option
Use it to highlight the current error in the *make* buffer
2014-06-18 20:50:39 +01:00
Maxime Coste
1c69764774 Merge branch 'master' into hierarchical-highlighters 2014-06-18 20:20:58 +01:00
Maxime Coste
a5ff40c107 make.kak: Add :errnext and :errprev for jumping between errors 2014-06-18 20:18:30 +01:00
Maxime Coste
62707aa82d make.kak: display error description in the status line on errjump 2014-06-18 19:32:13 +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
3ef5bf53d5 Add BufCloseFifo hook and use that to remove fifo directories 2014-06-16 19:50:20 +01:00
Maxime Coste
9130f0334b Remove defhl, use addhl -group 2014-06-12 22:35:40 +01:00
Maxime Coste
dac5e89e14 Add MultiRegionHighlighter
MultiRegionHighlighter provides a way to segment the buffer in
logical regions using the common left-most rule for finding the
next region. It then provides highlighting groups for each region
that can be filled.
2014-06-11 23:29:23 +01:00
Maxime Coste
0a76fe3040 Add support for recursion in region highlighter
An optional parameter defines the recursion regex, that match
potential closers.

For example, %sh{ ... } blocks support nested { }, so defining \{
as the recurse regex make the region highlighter correctly match
%sh{ ... { ... } ... } constructs
2014-06-11 00:23:44 +01:00
Maxime Coste
37d66b1e0b Convert Region highlighter to a HierarchicalHighlighter
add a region using addhl region <id> <begin_regex> <end_regex>
then fill the region with addhl -group <id>/content ...
2014-06-10 22:02:42 +01:00
Maxime Coste
fc13a90175 git-tools.kak: Add a 'git hide-blame' command 2014-05-09 13:51:15 +01:00
Maxime Coste
54ceb3a0d0 Use fifo buffers for git-tools command output 2014-05-06 19:39:24 +01:00
Maxime Coste
e83123de1f Add support for non-scrolling fifo buffers 2014-05-02 18:58:04 +01:00
Maxime Coste
46d5e72960 Add support for git status and checkout 2014-04-23 22:21:40 +01:00
Maxime Coste
3858479d3d cpp.kak: tweak comment copy on newline
fixes #92
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
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
409be4731f ctags.kak: fix support for tags with a tab character in search line 2014-04-07 19:06:09 +01:00
Maxime Coste
3530c04875 Support jumpclient in make.kak 2014-04-04 16:34:43 +01:00
Maxime Coste
80c6249afe make.kak: use %rec rather than :exec hack in errjump 2014-04-03 23:59:10 +01:00
Maxime Coste
cc591f015f clang.kak: hide clang_completion option 2014-04-03 19:02:29 +01:00
Maxime Coste
030b248a30 Remove debug commands from rc files 2014-03-31 20:05:53 +01:00
Maxime Coste
7dc5588adc clang.kak: clear remaining commas in template argument lists 2014-03-29 09:11:09 +00:00
Maxime Coste
71374139c9 port ctags.kak to posix awk 2014-03-28 21:15:39 +00:00
Maxime Coste
126d61aa86 port clang.kak to awk rather than perl 2014-03-27 22:00:14 +00:00
Maxime Coste
709dc87fcc port git-tools.kak from bash to posix shell + posix awk 2014-03-25 09:25:37 +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
03760e5ba1 Fix man command 2014-03-06 21:33:01 +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
1764ce0bdc Add docstrings to some commands 2014-03-02 01:08:12 +00:00
Maxime Coste
92c425ad52 Replace remaining $kak_bufname with more correct $kak_buffile 2014-03-02 01:07:29 +00:00
Maxime Coste
ffe4ea4722 git-tools.kak uses $kak_buffile rather than $kak_bufname 2014-03-02 01:06:20 +00:00
Maxime Coste
6585000b66 Use proper buffer filename rather than name in mime.kak 2014-02-27 06:44:28 +00:00
Maxime Coste
b0c2906890 kakrc highlighting: strings closing delimiters do not need to be followed by a whitespace 2014-02-25 01:10:47 +00:00
Maxime Coste
00c1523c6e fix clang auto completion at eol 2014-01-27 19:51:58 +00:00
Maxime Coste
a55e152eee cpp.kak: re-enable region highliting for comments and strings 2014-01-27 19:51:58 +00:00
Maxime Coste
a2ecca8d8b Region highlighters are still bugged, disable regions for cpp highlight 2014-01-22 23:32:56 +00:00
Maxime Coste
a2c58d40b8 Use regions for string highlighting in kakrc files 2014-01-18 11:48:07 +00:00
Maxime Coste
d466193ee7 Use a per line caching strategy for region highlighter 2014-01-09 22:52:39 +00:00
Maxime Coste
c39745060e man.kak: use Error color for errors 2014-01-08 19:23:43 +00:00
Maxime Coste
5808b0a228 Remove unmaintained global.kak 2013-12-23 21:52:59 +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