Commit Graph

373 Commits

Author SHA1 Message Date
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