Commit Graph

546 Commits

Author SHA1 Message Date
Frank LENORMAND
82a3f10a82 Fix arbitrary keys execution in the doc command 2016-04-12 10:41:16 +03:00
Maxime Coste
a026ebf298 style tweak in the static words definitions 2016-04-09 10:20:13 +01:00
Maxime Coste
a49685d996 Merge remote-tracking branch 'lenormf/fix-static-completion' 2016-04-09 10:08:19 +01:00
Maxime Coste
a8b2834d56 Merge branch 'master' of git://github.com/crooney/kakoune 2016-04-04 13:43:19 +01:00
Maxime Coste
675a68abb8 Small fixes in clang.kak completion handling 2016-04-04 13:42:58 +01:00
Maxime Coste
b5a68307ba Use a specific option type completions for insert completion
Fix escaping in jedi.kak as well
2016-04-04 13:42:58 +01:00
chris rooney
27f78e241a whitespace fix 2016-04-01 09:02:15 -04:30
chris rooney
2718c05c0e initial commit of jade/pug highlighter 2016-04-01 08:50:31 -04:30
Maxime Coste
24372938c5 Improve parse error display in clang.kak 2016-03-31 13:58:18 +01:00
Frank LENORMAND
65f160fae7 Fix the patterns that detect commented selections 2016-03-25 21:40:17 +02:00
Frank LENORMAND
464007e332 Fix hook declarations 2016-03-25 21:31:01 +02:00
Maxime Coste
c1c17db5e9 Collapse jumps in man .kak 2016-03-21 13:44:31 +00:00
Maxime Coste
a0da775423 Merge remote-tracking branch 'alexherbo2/ruby-rc' 2016-03-20 18:15:54 +00:00
Maxime Coste
01742d8161 Merge remote-tracking branch 'lenormf/rc/man.kak' 2016-03-20 18:14:42 +00:00
Maxime Coste
3499d440de Collapse jumps in grep.kak and make.kak 2016-03-20 16:37:58 +00:00
Frank LENORMAND
4bb5658206 Replace non-POSIX here-strings and calls to echo 2016-03-17 15:32:32 +02:00
Alex Leferry 2
1a3d7e58ab Help Kakoune to better detect /…/ literals 2016-03-17 12:25:40 +01:00
Alex Leferry 2
13e6c34c35 add :alt command to jump to the alternate file (implementation ↔ test) 2016-03-16 15:05:13 +01:00
Frank LENORMAND
a340eaf0ab Fix the page detection pattern 2016-03-16 14:10:47 +02:00
Maxime Coste
09baf73152 Fix various posix shell compliance issues in the rc/ files 2016-03-14 20:59:23 +00:00
Frank LENORMAND
3079d2a7e3 Replace non-POSIX inline character replacement in shell scripts 2016-03-14 18:29:11 +02:00
Frank LENORMAND
98594cf6df Add static completion suggestions to several languages, set autopep8 as default python formatter 2016-03-14 14:10:49 +02:00
Frank LENORMAND
ea0a9b6e07 Get rid of useless operations 2016-03-14 09:15:47 +02:00
Frank LENORMAND
2501e95571 Fix bugs and factorize code in the autowrap script 2016-03-13 09:47:17 +02:00
Maxime Coste
35d3679703 Tweak clang.kak implementation of clang-show-completion-info 2016-03-12 16:44:08 +00:00
Frank LENORMAND
8da2e2a7a8 Restore the filter_around_selections functions to balance indentation copies 2016-03-10 15:48:12 +02:00
Frank LENORMAND
a31d947e1d Give commands that do not indent their own insert hook 2016-03-10 15:12:08 +02:00
Frank LENORMAND
ad06f3f92c Remove hooks that trim trailing whitespaces 2016-03-10 15:08:01 +02:00
Frank LENORMAND
326421c810 Add rubocop as default ruby formatter 2016-03-10 15:07:08 +02:00
Maxime Coste
2d494ccb8e Merge remote-tracking branch 'alexherbo2/moon-rc' 2016-03-08 23:24:17 +00:00
Alex Leferry 2
b67c098c8c code cleanup: remove optional sed option 2016-03-08 20:33:54 +01:00
Alex Leferry 2
a92c51d84f code cleanup: remove optional sed option 2016-03-08 20:33:21 +01:00
Maxime Coste
32427ba43e Merge remote-tracking branch 'alexherbo2/moon-rc' 2016-03-06 15:19:29 +00:00
Maxime Coste
4c7e6bdca0 Merge remote-tracking branch 'alexherbo2/lua-rc' 2016-03-06 15:19:20 +00:00
Maxime Coste
786037cffc Always place clang completion function info above the anchor
When placed below, it will hide the main selection cursor when editing
the second line of a multiple line parameter list.
2016-03-04 13:36:27 +00:00
Maxime Coste
00673eba36 Handle more gracefully switches between different c-family filetypes 2016-03-03 19:28:58 +00:00
Maxime Coste
b7dd5056ba Tweak clang.kak 2016-03-03 19:28:45 +00:00
Alex Leferry 2
936bfcf0c8 add :alt command to jump to the alternate file (implementation ↔ test) 2016-03-03 18:56:50 +01:00
Alex Leferry 2
11153adcd8 Fix MIME type detection 2016-03-03 18:55:03 +01:00
Alex Leferry 2
25cd29dca4 add :alt command to jump to the alternate file (implementation ↔ test) 2016-03-03 18:53:04 +01:00
Maxime Coste
f8e64ba29f Jedi: add a jedi_python_path str-list option 2016-02-28 18:48:59 +00:00
Alex Leferry 2
aa39380f4b Fix MIME type detection 2016-02-28 17:57:38 +01:00
Maxime Coste
4ee93c1f85 Merge remote-tracking branch 'alexherbo2/moon-rc' 2016-02-27 17:37:13 +00:00
Alex Leferry 2
88cf7a216c Fix highlighting of single letter identifiers 2016-02-27 17:53:16 +01:00
Alex Leferry 2
1c61e2fc41 add rc/moon.kak 2016-02-27 17:46:39 +01:00
Alex Leferry 2
6ec14030ad Fix escaping of ' in single quote strings 2016-02-27 14:18:16 +01:00
Maxime Coste
a25e46f1eb Add autoindentation in makefile.kak, based on PR #582 by lenormf
Closes #582
2016-02-24 22:26:54 +00:00
Maxime Coste
6cbc97900b Add editorconfig.kak by Enrico Lumetti
Closes #514
2016-02-22 23:11:20 +00:00
Alex Leferry 2
1b3554c943 support auto-linked email address 2016-02-19 12:31:36 +01:00
Maxime Coste
9cdfa4a81c Ooops, you never saw that 2016-02-11 09:46:59 +00:00
Maxime Coste
050484ebe0 Slight cleanup in modeline.kak 2016-02-10 21:26:56 +00:00
Maxime Coste
8b7025b8ea Move modeline.kak into rc/extra 2016-02-10 21:05:04 +00:00
Maxime Coste
ff76a0204b Merge remote-tracking branch 'lenormf/rc/modeline.kak' 2016-02-10 21:04:23 +00:00
Frank LENORMAND
89cfc4693d Add a LaTeX support script 2016-02-09 11:52:18 +02:00
Frank LENORMAND
507ed69dda Get rid of the modeline option to let users set hooks manually 2016-02-08 11:30:37 +02:00
O. Perret
3d24badc1a Update rust.kak to post-1.0 rust 2016-02-07 16:55:51 +01:00
Maxime Coste
8e3f403e13 doc.kak should be in rc/core, not rc/base 2016-02-05 13:42:02 +00:00
Maxime Coste
d92c241fe7 Make doc command work without requiring installation 2016-02-03 23:46:01 +00:00
Maxime Coste
b59714bf2a Merge remote-tracking branch 'lenormf/manpage' 2016-02-03 22:16:40 +00:00
Frank LENORMAND
79abe58599 Fix the pattern detection regex, take compression into account when suggesting doc pages 2016-02-03 21:09:17 +02:00
Maxime Coste
3e0e32cfbb Merge remote-tracking branch 'alexherbo2/coffee-rc' 2016-02-03 09:29:01 +00:00
Alex Leferry 2
dccaaa12d5 support commenting 2016-02-03 09:30:11 +01:00
Alex Leferry 2
f54ba102ad indent after lines ending with '=' 2016-02-03 09:30:11 +01:00
Alex Leferry 2
1aed03aaf9 make auto-indenting after start structure more robust 2016-02-03 09:30:11 +01:00
Alex Leferry 2
85383e7083 do not clear multiple selections when preserving previous line indent 2016-02-03 09:30:11 +01:00
Alex Leferry 2
d4d19c2590 clean up 2016-02-03 09:29:40 +01:00
Maxime Coste
14256e4979 Merge remote-tracking branch 'lenormf/rc/man.kak' 2016-02-02 23:38:49 +00:00
Maxime Coste
ac601889df Remove grench.kak
Closes #571
2016-02-02 22:14:54 +00:00
Frank LENORMAND
33008f9ea7 Add a doc command, as well as several themed documentation pages 2016-02-02 21:15:12 +02:00
Frank LENORMAND
7dbbdca953 Get rid of tabs in the man pages to simplify highlighting, improve and document highlighting, get rid of the arbitrary binding 2016-02-02 08:34:02 +02:00
Maxime Coste
fef0277998 Reorganise rc/ into subdirectories
* core: set of tools to work on kakoune source code
 * base: very common languages and tools
 * extra: less common languages and tools
2016-01-29 09:03:23 +00:00
Maxime Coste
3349bcd277 Rename 'ini-file' filetype to just 'ini' 2016-01-28 19:33:21 +00:00
Maxime Coste
5388a538ef Avoid interpretting eventual output in send-text implementations 2016-01-28 19:30:49 +00:00
Maxime Coste
d3bbab313b Merge git://github.com/gokcehan/kakoune 2016-01-28 19:30:38 +00:00
Gokcehan Kara
31b4c5c4c8 split x11 repl functionality to x11-repl.kak 2016-01-26 15:05:35 +02:00
Gokcehan Kara
e25490dc7f split tmux repl functionality to tmux-repl.kak 2016-01-26 15:04:48 +02:00
Frank LENORMAND
94674b63e0 Add a modeline support script (vim + kakoune options) 2016-01-26 09:56:13 +02:00
Maxime Coste
4f07632ac0 Add missing quoting in clang.kak 2016-01-26 06:32:23 +00:00
Maxime Coste
3d8e9a298c Merge remote-tracking branch 'lenormf/rc/spell.kak' 2016-01-26 05:09:50 +00:00
Gokcehan Kara
0df6be4992 add basic support for repl interaction in x11
Define x11-repl command that optionally takes the name of an interpreter
to start it on a new window. Users then can select some text in the
editor and use [x11-]send-text command to send it to the interpreter.
Ideally the latter command should be bound to a key for easier
interaction. Requires xsel and xdotool to work.
2016-01-24 15:18:14 +02:00
Gokcehan Kara
830c9b237a add basic support for repl interaction in tmux
Define tmux-repl-vertical/horizontal/window commands that optionally
takes the name of an interpreter to start it on a new pane/window. Users
then can select some text in the editor and use [tmux-]send-text command
to send it to the interpreter. Ideally the latter command should be
bound to a key for easier interaction.
2016-01-24 15:14:33 +02:00
Frank LENORMAND
f209bfb4f7 Document the spell command, add an optional paramater that sets the language against which the check will be performed 2016-01-24 11:08:05 +02:00
Gokcehan Kara
4fdaba5a42 fix tmux-new-window command docstring 2016-01-23 19:46:36 +02:00
Alex Leferry 2
396534c0bb make auto-(indenting/insertion) more robust 2016-01-21 19:19:17 +01:00
Alex Leferry 2
c24fa2ea79 support commenting 2016-01-21 18:33:03 +01:00
Maxime Coste
2bc24d6889 Merge remote-tracking branch 'lenormf/fix-ranges-hl' 2016-01-20 02:11:07 +00:00
Maxime Coste
31bda2f48b Merge remote-tracking branch 'benoit-intrw/ini' 2016-01-20 02:10:41 +00:00
Frank LENORMAND
5c189887e0 Factorize the code that parses the output of aspell 2016-01-16 21:12:10 +02:00
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
Benoît Laurent
fb37a8ec38 Add 'cfg' extension to 'ini-file' filetype
'cfg' is another common file extension for ini like files. My use case is about
http://www.buildout.org/ config files.
2016-01-12 21:25:47 +01: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
3dee04b701 Remove useless code 2016-01-10 20:39:58 +00:00
Alex Leferry 2
535957fbd1 add rc/lua.kak 2016-01-07 15:49:35 +01:00
Maxime Coste
c39a4d5879 Add a static_words str-list option always considered for word completion
Fixes #313
2015-12-27 08:53:31 +00:00
Maxime Coste
dca9e2b73d Fix spell.kak wrong use of sed flags 2015-12-24 22:04:17 +00:00
Maxime Coste
1288a1d385 Support collapsing jumps in eval and exec
Fixes #535
2015-12-23 02:46:13 +00:00
Maxime Coste
8dcffd8f5a Initial, WIP spelling implementation
Add a ranges highlighter that takes a timestamped list of ranges and
associated face. Add a spell.kak file that uses aspell pipe interface
to fill a range-faces option.
2015-12-17 04:07:49 +00:00
Frank LENORMAND
925d41f596 Fix a regression introduced in aa6f7c82.
The regular expression changed, and returned the wrong page number to
the command completion.
2015-12-16 17:48:33 +03:00
Maxime Coste
fee06e8889 Tweak javascript highlighting
Fixes #531
2015-12-15 04:38:26 +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
aa6f7c82e9 Fix some posix compliance in man.kak 2015-12-10 20:40:43 +00:00
Maxime Coste
2ca1784495 Merge remote-tracking branch 'jkonecny/master-fix-kickstart' 2015-12-08 07:56:30 +00:00
Maxime Coste
89821e9471 Move grench.rc in the correct directory 2015-12-08 00:10:26 +00:00
Jiri Konecny
cf77068940 Fix bad highlighting of parameters with '-' in kickstart
Parameters like "ignoredisk --only-use=sda" badly highlighted only first
part of "--only-use".
2015-12-07 15:17:40 +01:00
Enrico Lumetti
660c614ae5 Fix exherbo.kak syntax 2015-12-06 04:12:11 +01:00
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