Commit Graph

1532 Commits

Author SHA1 Message Date
Delapouite
29e2a73638 Fix lint.kak evaluate-commands → eval 2017-11-06 10:51:55 +01:00
fsub
db15f7adc5 c-family.kak: Add missing C++ keywords, attributes, and types 2017-11-05 10:11:59 +01:00
fsub
1ad83745c2 c-family.kak: Sort keywords, attributes, values, and decorators 2017-11-05 10:11:59 +01:00
Maxime Coste
b5de3064e0 Merge remote-tracking branch 'lenormf/fix-tupfile' 2017-11-05 12:22:18 +08:00
Tim Allen
f9351d65eb rust.kak: Support Rust's documentation comments.
As well as ordinary `//` line-comments, Rust regards `///` comments
as documentation applying to the following item, and `//!` comments as
documentation applying to the enclosing item, so we should copy those
to new lines, too.
2017-11-04 21:54:48 +11:00
Frank LENORMAND
61ab3a1d26 rc: Fix Tupfile highlighting 2017-11-04 10:56:20 +03:00
Frank LENORMAND
ff557a0cf0 rc: Simplify Dockerfile support, highlight values and additional keywords 2017-11-04 10:45:58 +03:00
Olivier Perret
16f42fe3a6 refactor comment.kak
* move most of the kakoune implementation outside of the shell scope
  to avoid unnecessary escaping
* let kakoune do the option expansions to avoid injection of special
  characters
* split block commenting options into two and do the < to <lt>
  conversion directly
* show error messages directly in the buffer rather than in *debug*

Fixes #1600 and #875
2017-11-03 13:20:02 +01:00
Olivier Perret
00d8716c79 commenting: move rust to the C-style group 2017-11-03 13:13:42 +01:00
Maxime Coste
9b216e0e79 Merge remote-tracking branch 'lenormf/fix-rc-aliases' 2017-11-03 19:32:30 +08:00
Frank LENORMAND
9127ed0d55 src rc: Rename exec/eval into execute-keys/evaluate-commands 2017-11-03 11:09:45 +03:00
Frank LENORMAND
c9b280b712 rc: Don't use command aliases to highlight keywords properly 2017-11-03 10:34:41 +03:00
Kylie McClain
79f725a558 sh: support mksh 2017-11-02 23:23:54 -04:00
Maxime Coste
b3daf6b746 doc.kak: Support rendering _italic_ text as well 2017-11-02 17:42:16 +08:00
Maxime Coste
4fabba3d12 doc.kak: Render documentation internally instead of relying on man
doc.kak now behaves as a basic asciidoc renderer. Asciidoc is unfortunately
still a dependency to generate the manpage of the `kak` command.
2017-11-02 10:03:24 +08:00
Maxime Coste
90865b65cd asciidoc.kak: Highlight ^=+ syntax sections 2017-11-02 09:52:18 +08:00
Maxime Coste
424b2389cb kakrc.kak: Fix highlighting of key words at start of buffer 2017-11-02 01:28:37 +08:00
Maxime Coste
5e6077acc2 html.kak: Change </...> align hook to only run after inserting '>'
Improve the hook to support nesting of tags as well.
2017-10-30 17:04:54 +11:00
Maxime Coste
c8257a58a5 kakrc.kak: set '-' as an additional word char 2017-10-28 13:43:04 +08:00
Maxime Coste
d7671f0cdf kakrc.kak: Fix static word definition 2017-10-28 13:43:04 +08:00
Maxime Coste
d49555fc75 Move highlighters into Scopes
That means we can now have highlighters active at global, buffer, and
window scope. The add-highlighter and remove-highlighter syntax changed
to take the parent path (scope/group/...) as a mandatory argument,
superseeding the previous -group switch.
2017-10-28 13:43:04 +08:00
Maxime Coste
c95bd83ea1 haskell.kak: remove complex lookarounds
Highlighting is going to be slightly less correct, but we get rid
of the last incompatible regex in rc/
2017-10-25 10:29:27 +08:00
Maxime Coste
d09924d24b asciidoc.kak: use a more tolerant block regex for
Get rid of the nasty backreference we were relying on.
2017-10-25 10:29:27 +08:00
Maxime Coste
591ddb86e3 markdown.kak: Remove fenced block support from
Its not in the spec, except for code blocks that we handle differently
anyway. More importantly it currently relies on backreference.
2017-10-25 10:29:11 +08:00
Maxime Coste
7dc800c213 Simplify lookaround use in moon.kak
(?=[A-Z]\w*) is strictly the same as (?=[A-Z]) as \w* will always
at least match an empty string.
2017-10-25 10:29:11 +08:00
Maxime Coste
870d2d22d7 haskell.kak: Remove some complex lookarounds 2017-10-25 10:28:59 +08:00
Maxime Coste
0fa59e5fd2 rc/: Tweak some regexes to be compatible with our impl limitations
The upcoming custom implementation does not support arbitrary lookarounds,
and other advanced regex features. Simplify the regexes to avoid those.
2017-10-25 10:27:39 +08:00
Maxime Coste
bf6e5daa08 Use stricter regex syntax
boost regex tolerates non-escaped special characters, and escaped
non-special characters. Standardize on stricter syntax, where
special characters must be escaped, and non-special characters must
not.
2017-10-25 10:27:39 +08:00
Maxime Coste
80d661e6a7 rc/: More consistent uses of regex syntax
Always use \A \z for subject start/end, always \b for word boundaries
2017-10-25 10:27:25 +08:00
Maxime Coste
30ce5a0055 Merge remote-tracking branch 'nochiel/nochiel-modelines' 2017-10-23 16:34:17 +08:00
Maxime Coste
214f321951 Merge remote-tracking branch 'danr/Fix-introduced-mistake-in-kakrc-highlighting' 2017-10-23 16:33:26 +08:00
Maxime Coste
6d65d8e778 kakrc.kak: refactor grammar handling 2017-10-23 10:56:45 +08:00
Dan Rosén
577d84217a Fix introduced mistake in kakrc highlighting 2017-10-22 01:23:12 +02:00
Nicholas Ochiel
d168c75002 vim modeline regex should accept not one but "at least one" whitespace. 2017-10-21 21:04:39 +03:00
Maxime Coste
6740e3cc0c Add some more keywords to kakrc highlighting 2017-10-21 18:48:35 +08:00
Maxime Coste
e6009f7f9b Merge remote-tracking branch 'danr/Improve-kakrc-highlighter' 2017-10-21 17:36:08 +08:00
Dan Rosén
5b0f070300 Improve kakrc highlighter 2017-10-21 10:08:50 +02:00
Dan Rosén
1310193a0a Fix typescript highlighter
Before this patch keywords are highlighted in comments etc
2017-10-21 09:56:38 +02:00
Maxime Coste
f76535613e Merge remote-tracking branch 'helvetie/ini-comments' 2017-10-20 17:29:02 +08:00
helvetie
7edc1a57a3 ini.kak: add ';' as a valid comment character 2017-10-19 15:05:17 +02:00
wheatdog
6f6e76a245 Fix latex.kak
Solve #1346
2017-10-17 21:14:08 +08:00
Maxime Coste
209113aa1c Merge remote-tracking branch 'nochiel/nochiel-fix-autorestore' 2017-10-17 10:30:24 +08:00
Maxime Coste
431e226fc8 Merge remote-tracking branch 'danr/Add-support-for-typescript' 2017-10-15 22:51:44 +08:00
Nicholas Ochiel
24e9b86562 ref vim options.txt 2017-10-15 06:04:19 +03:00
Alex Suraci
c702c915c1 iterm: use 'exec' so pane auto-closes with editor
this uses 'export' to set $TMPDIR instead; fish provides an 'export'
function for bash-compatibility, so this should work for both shells.

note that prior to this change, opening new panes with fish did not
work, as fish does not support `FOO=1 bar` syntax.
2017-10-13 16:01:06 -04:00
Nicholas Ochiel
040a096f36 Do not restore old backup files. This check is necessary for cases where
- the file was edited with a different editor/program or
- kak didn't restore a backup or
- if old backups weren't purged or
- if autorestore wasn't loaded (e.g. `kak -n`) after backups were generated.
2017-10-12 15:33:21 +03:00
Dan Rosén
ad724ab1a8 Add support for typescript 2017-10-10 10:23:25 +02:00
Maxime Coste
397e5ef0e1 Fix potential bug in clang.kak 2017-10-10 10:53:12 +08:00
Frank LENORMAND
1cfee17a16 rc man/doc: Don't show groff warnings
Sometimes the implementation of `man` will display errors, e.g.

```
<standard input>:4808: warning [p 54, 13.2i]: can't break line
```

Those errors are harmless but are still reported on the debug buffer,
so we hide them by redirecting the standard error stream to /dev/null.
2017-09-30 08:23:10 +03:00
Frank LENORMAND
1e3c343773 rc doc: Use POSIX flag -name instead of -iname 2017-09-30 08:15:14 +03:00
Frank LENORMAND
18e64c5c7d rc doc: Implement the -i flag of sed in a POSIX manner 2017-09-29 22:16:31 +03:00
Frank LENORMAND
f26854694e rc doc: Remove window hooks automatically assigned
When using the `man` filetype to make use of the text highlighters
of the `man.kak` script, the documentation pages inherit from the
window resizing hooks that won't work on `doc` buffers.

Fixes #1591
2017-09-29 22:12:09 +03:00
Nicholas Ochiel
755cbd4436 Fix: glob for backup files. 2017-09-27 00:34:05 +03:00
exitium
a4ba9b339e Fix Lua comment delimiter insertion (see #1584) 2017-09-23 10:20:02 -04:00
Maxime Coste
a303cf5698 Merge remote-tracking branch 'lenormf/fix-perl' 2017-09-18 10:08:13 +09:00
Maxime Coste
9fea868e9e Merge remote-tracking branch 'Delapouite/css' 2017-09-18 10:02:43 +09:00
Maxime Coste
902724e558 c-family: auto close unions with a semicolon as well 2017-09-18 09:41:26 +09:00
Frank LENORMAND
1b11412796 rc perl: Don't highlight regex, fix string escapes
Highlighting perl regex patterns with regular expressions (with
highlighters) caused several misses that made most of the file
unreadable. This commit makes `perl.kak` not try to highlight
those patterns in the code, and also addresses issues with string
highlighting.
2017-09-14 14:16:58 +03:00
Maxime Coste
661047795c Merge remote-tracking branch 'lenormf/mercurial-support' 2017-09-11 21:11:27 +08:00
Frank LENORMAND
90961b0990 rc: Add support for MySQL, SQL Server and MS Access
Closes #1540
2017-09-09 11:54:24 +03:00
Frank LENORMAND
3cb159f056 rc: Add support for Mercurial
The script only highlights comments in commit messages, but it's a basis
to improve upon if more features are needed in a later time.
2017-09-08 14:44:55 +03:00
Delapouite
2001a9a087 css.kak: add hl to more common CSS length units 2017-09-06 12:08:49 +02:00
Maxime Coste
4c2ed2062a Merge remote-tracking branch 'lenormf/fix-html' 2017-08-31 11:22:09 +07:00
Philippe Daouadi
f56c5d687e Check for gocode, goimports and gogetdoc on go-tools loading 2017-08-30 10:19:13 +02:00
Frank LENORMAND
4f8211ecea rc base html: Highlight attributes with no value 2017-08-29 14:17:28 +03:00
Maxime Coste
716816966f Merge remote-tracking branch 'lenormf/fix-html' 2017-08-26 16:16:07 +07:00
Frank LENORMAND
eb0786e001 rc base html: Highlight the DOCTYPE and tag attributes 2017-08-26 11:28:56 +03:00
Maxime Coste
27ba416ddf Merge remote-tracking branch 'danr/Improve-Haskell-highlighter' 2017-08-26 10:48:21 +07:00
Maxime Coste
c8335a6515 Merge remote-tracking branch 'blastrock/go-tools-error' 2017-08-26 10:47:04 +07:00
Enrico Lumetti
59e5a4126d editorconfig.kak: fix awk typo 2017-08-23 21:11:46 +02:00
Dan Rosén
ef1a1e6bd3 Improve Haskell highlighter
Import keywords are put in keyword face instead of meta face.
This leaves room for pragmas and macros to be in the meta face.

Operator keywords are put in keyword face too.

Finally, expression keywords are put in face attribute.
2017-08-22 16:29:27 +02:00
Philippe Daouadi
9fafb1aba1 Show error when using go-jump and jq is not installed 2017-08-21 10:02:47 +02:00
Maxime Coste
420c6aca23 Change documentation directory towards $kak_runtime/doc 2017-08-03 15:00:02 +07:00
Tim Allen
e640e6d859 Consecutive markdown list bullets are not a valid list prefix.
Previously, if you opened a new line after an underlined heading (what
the CommonMark spec calls a "Setext heading") or inserted a newline into
a line that started with `**strong emphasis**` the Markdown autoindent
hook would assume the leading symbols were list bullets and paste them
at the beginning of the new line.

However, the CommonMark specification says that list bullets must be
followed by at least one horizontal whitespace character, so Setext
heading underlines and strong emphasis are not valid list bullets and
should not be matched by the autoindent pattern.

This commit changes the regex that selects the pastable prefix of the
previous line so that it must match either:

  - One or more `>` characters with optional whitespace between them
    (a blockquote prefix), optionally followed by a list bullet; or
  - An optional blockquote prefix and a list bullet

Since we don't strictly need either the blockquote prefix nor the list
bullet, we could concievably just make both optional... but for lines
without either, the regex would find a zero-length match, and for the
purposes of copy/paste Kakoune treats that as a one-character match.
Therefore, the regex is written to fail if neither pattern is found.
2017-08-01 20:36:40 +10:00
Maxime Coste
4dac61c864 Fix grep-next/prev-match not jumping correctly to first/last match
When used just after grepping, grep-next-match ended up jumping to
the second match, as `0g` is the same as `g`.

The fix itself is pretty ugly, a better one might be to distinguish
the `0` count from no count given, so that `0g` could fail with
"no such line" or similar.
2017-07-29 03:02:11 +07:00
Maxime Coste
6ab98f8bf8 Fix grep-jump on eol 2017-07-29 03:02:11 +07:00
Maxime Coste
337a38552b Fix sakura termcmd setup
Sakura `-e` is xterm compatible, so would require a `sh -c`, but it
also provides `-x` which takes a single argument, switch to that.
2017-07-25 10:26:52 +02:00
Maxime Coste
d1de9912c0 Merge remote-tracking branch 'lenormf/fix-git' into c++14 2017-07-19 17:20:18 +02:00
Maxime Coste
9c4448ac41 Remove echo -color support, superseeded by echo -markup
`echo -color Error "blah"` is the same as `echo -markup '{Error}blah'`
Fixes #1512
2017-07-19 17:18:52 +02:00
Frank LENORMAND
21847a5f85 rc man: Avoid undefined behavior on expr
Looking up the man page for `index` was failing on systems using
GNU/coreutils. The `:man` command matched whatever page it was given with
the `expr` utility. This tool behaves as expected when it follows strictly
the POSIX standard but the GNU implementation introduces additional commands
(including `index`), about which the standard states:

```
The use of string arguments length, substr, index, or match produces unspecified results.
```

As a result, parsing the man page number is now implemented with pure
shell expansions, to avoid triggering an undefined behavior when the topic
searched is one of the keywords above.
2017-07-17 21:24:41 +03:00
Frank LENORMAND
8687222518 rc git: Don't force a highlighting format on commits 2017-07-17 08:36:47 +03:00
Frank LENORMAND
74babc36b1 rc formatter: Don't force selection restoration
The `|` primitive now correctly restores selections, we don't need to
forcibly restore the main one after formatting anymore.
2017-07-14 11:21:48 +03:00
Maxime Coste
52c8dc9d09 Highliight git MERGE_MSG files as commit messages 2017-07-08 13:39:48 +09:00
Maxime Coste
822225cbbb Merge remote-tracking branch 'lenormf/fix-tupfile' 2017-07-08 13:39:22 +09:00
Frank LENORMAND
50b635ce2d rc c-family: Add a hook to the insert group 2017-06-29 13:29:48 +03:00
Frank LENORMAND
a2be15801f rc tupfile: Fix the keywords regex 2017-06-29 13:13:01 +03:00
Delapouite
a932b6b21e Add error message when using format command with no formatcmd specified 2017-06-26 22:10:04 +02:00
Maxime Coste
f41d78083a Use the extra_word_chars option in word based normal commands
the completion_extra_word_chars is now gone, superseeded by
extra_word_chars that gets used both for completion and for normal mode.

Fixes #1304
2017-06-26 15:28:41 +01:00
Frank LENORMAND
6376aa6206 rc formatter: Make sure the formatter returned successfully
The previous implementation used to replace the contents of the buffer with
whatever the `formatcmd` was returning, regardless of the exit code of the
command, which led to the buffer being wiped out on error.

This commit does the formatting in a temporary file, and only replaces the
current buffer with the contents of the -formatted- temporary file if the
`formatcmd` returned successfully.

Fixes #1357
2017-06-23 15:12:23 +03:00
Maxime Coste
45ac100c21 Merge remote-tracking branch 'lenormf/fix-ctags-command-names' 2017-06-23 10:22:15 +01:00
Maxime Coste
d9edd3f013 Merge remote-tracking branch 'dianne/string-highlighter-fix' 2017-06-21 16:56:06 +01:00
Dianne Wagner
57cb2d0682 apply '"' highlighting fix to haskell as well 2017-06-18 19:18:14 -07:00
Dianne Wagner
3ae0d86b27 rust highlighter: '"' is not the start of a string
this uses the string opening regex from the c-family highlighter to prevent
highlighting the rest of the file as a string on encountering the character
literal '"'
2017-06-18 18:39:45 -07:00
Alex Leferry 2
585778057f Update command names 2017-06-16 13:53:03 +02:00
Frank LENORMAND
cb9a2e562b rc: Fix calls to mktemp
The GNU and BSD implementations differ on several points, this commit
hopefully finds a middle ground.
2017-06-16 11:51:46 +03:00
Frank LENORMAND
9a10d79ae8 rc ctags: Make commands follow the naming convention 2017-06-15 15:40:15 +03:00
Maxime Coste
e73cd78288 Fix corner case in C family indenting 2017-06-13 10:19:38 +01:00
Maxime Coste
398b2b115c Merge remote-tracking branch 'lenormf/fix-tmpdir-modules' 2017-06-12 05:06:14 +01:00
Frank LENORMAND
d113d5232a rc jedi: Don't create an unused debug/log file 2017-06-09 14:30:58 +03:00
Frank LENORMAND
813d09a101 rc: Fix calls to mktemp
Allow `mktemp` to make use of the `TMPDIR` environment variable when
calling it with a template.

Don't use the deprecated `-t` flag.
2017-06-09 14:30:54 +03:00
Alex Leferry 2
105b35192f Add Alacritty 2017-06-08 19:02:44 +02:00
Maxime Coste
81118552c8 Fix missing hook removal command in c-family.kak 2017-06-07 12:44:00 +01:00
Frank LENORMAND
8794687f36 Revert "doc: Fix the documentation of the alt_dirs option"
This reverts commit ef88b28392.
2017-06-04 11:24:10 +03:00
Frank LENORMAND
ef88b28392 doc: Fix the documentation of the alt_dirs option 2017-06-03 21:49:10 +03:00
Maxime Coste
d8a90ad5d3 Merge remote-tracking branch 'danr/Remove-ad-hoc-rules-in-kakrc-highlighter' 2017-06-03 15:16:49 +01:00
Maxime Coste
f3f6ac9e8a Merge remote-tracking branch 'danr/Improve-kakrc-highlighter-with-more-static-words' 2017-06-03 15:16:14 +01:00
Maxime Coste
5b66be26f6 Merge remote-tracking branch 'Delapouite/svg' 2017-06-03 14:44:55 +01:00
Maxime Coste
9d71be769b Rename _grep_current_line option to grep_current_line 2017-06-03 14:04:06 +01:00
Delapouite
2acdafa325 Add SVG detection as xml in file.kak 2017-06-02 15:43:51 +02:00
Maxime Coste
d8cc50ed79 man.kak: Rename _manpage option to manpage 2017-05-27 07:40:47 +01:00
Maxime Coste
ad154e7bb7 Highlight non numeric man sections as well in man.kak 2017-05-27 07:34:35 +01:00
Maxime Coste
0b592c5641 Slight style tweak in doc.kak 2017-05-27 06:14:01 +01:00
Maxime Coste
ca38e10314 Make shell variable expansion in "strings" highlighted the same way as in code 2017-05-25 19:54:08 +01:00
Maxime Coste
f2f04d55fc Make the lint_errors a range-specs option in lint.kak
lint_errors are now maintained up to date with buffer changes.
2017-05-25 19:54:08 +01:00
Maxime Coste
26298e8f7b Use a line-specs for the clang_errors option in clang.kak
That way, we can have it updated when the buffer changes, and get
diagnostics on the correct lines.
2017-05-25 19:54:08 +01:00
Maxime Coste
a84d7cf06b Add break and continue to the list of sh keywords 2017-05-25 19:54:08 +01:00
Maxime Coste
3e4e4f6210 Add support for raw C++ strings in c-family highlighting 2017-05-25 06:51:39 +01:00
Maxime Coste
c4db46b58b Rename line-flags option type to line-specs
Generalize this option type, which is a timestamped list of
<line number>|<arbitrary string>. That way this type is not strongly
coupled with the flag-lines highlighter, and can be reused for other
use cases.
2017-05-24 15:41:43 +01:00
Maxime Coste
a0e63fbe93 Fix man.kak when man pages filenames just end up with the manual section 2017-05-23 13:59:31 +01:00
Maxime Coste
2f9b77b748 Smarter align to opening parenthesis/brace supporting multiline 2017-05-21 22:31:05 +01:00
Maxime Coste
c6508ee101 Merge remote-tracking branch 'lenormf/doc-public-options' 2017-05-21 07:09:37 +01:00
Maxime Coste
e43e44f9cc Commit correct version of c-family indent change 2017-05-21 07:08:20 +01:00
Maxime Coste
cab0adaa53 Support aligning to opening { as well as ( in c-family indent 2017-05-20 11:08:13 +01:00
Maxime Coste
55d1d1020d Merge remote-tracking branch 'lenormf/rc-misc-fixes' 2017-05-19 21:53:02 +01:00
Maxime Coste
803895d581 Merge remote-tracking branch 'danr/Highlight-object-keys-in-yaml' 2017-05-19 21:37:31 +01:00
Maxime Coste
be8692bcdb Merge remote-tracking branch 'danr/Fix-reference-to-kakrc-highlighter-for-markdown' 2017-05-19 21:34:45 +01:00
Maxime Coste
32b415d87d Merge remote-tracking branch 'danr/Add-some-missing-languages-to-comment.kak' 2017-05-19 21:34:27 +01:00
Maxime Coste
eec8239c78 Highlight 'copied' file action in git-commit buffers 2017-05-17 20:19:56 +01:00
Maxime Coste
dfaafcd49a Rename range-faces to range-specs
range-faces are now used to replace-range highlighters, where the string
part is not interpretted as a face but as a display line, so the name was
not relevant anymore.
2017-05-17 19:40:52 +01:00
Frank LENORMAND
d59bafa2c1 rc: Simplify and optimize the alt command 2017-05-16 18:20:19 +03:00
Frank LENORMAND
56837eaece rc: Use POSIX command -v instead of which 2017-05-16 18:20:19 +03:00
Frank LENORMAND
b9cdccd53a rc: Document non-hidden options with -docstring 2017-05-16 14:35:43 +03:00
Dan Rosén
736720f31a Highlight object keys in yaml 2017-05-16 09:30:01 +02:00
Dan Rosén
4f7f7edea0 Add some missing languages to comment.kak 2017-05-16 09:21:30 +02:00
Dan Rosén
5f97117ab4 Remove ad-hoc rules in kakrc highlighter
These are less useful with more static words, and they are
woefully incomplete: no support -docstring for map, set
uses the variable face, but there is no corresponding
highlighter for decl or %opt{..}.
2017-05-15 21:58:57 +02:00
Dan Rosén
1e4958353a Improve kakrc highlighter with more static words 2017-05-15 21:58:57 +02:00
Dan Rosén
80570a0dc7 Fix reference to kakrc highlighter for markdown 2017-05-15 21:58:57 +02:00
Vincent Siliakus
812af8c886 Use only default faces 2017-05-11 18:40:07 +02:00
Vincent Siliakus
848de57f20 Add Elixir highlighter 2017-05-06 08:19:57 +02:00
Frank LENORMAND
9f62c1a552 rc: Use $SHELL instead of spawning bash arbitrarily 2017-04-30 13:38:32 +03:00
Frank LENORMAND
9a138af17f rc: Properly modify tmux's environment with env 2017-04-17 22:55:37 +03:00
Maxime Coste
1f74ca1a4f Merge remote-tracking branch 'lenormf/fix-iterm2' 2017-04-10 20:24:48 +01:00
Frank LENORMAND
a244c10167 rc: Forward $TMPDIR to iterm subprocesses 2017-04-10 22:17:59 +03:00
Frank LENORMAND
b6d055a87b rc: Export $TMPDIR to new tmux processes
`tmux` will start new processes (e.g. when creating panes or windows)
with the same environment it was started with, which means that if the
$TMPDIR variable was overriden for the kakoune server from within
`tmux`, newly created panes/windows won't have access to the server
socket to sustain a session.

This commit fixes the issue by always exporting the $TMPDIR variable
from the parent `tmux` environment to the new processes.

Fixes #1319
2017-04-09 09:20:25 +03:00
Alex Leferry 2
08c4fac07f rc/ranger: use $kak_hook_param_capture_N 2017-04-01 22:46:31 +02:00
Maxime Coste
fa7f29a120 spell.kak: preserve spelling language from :spell in :spell-replace 2017-03-28 08:32:21 +01:00
Maxime Coste
b9317ba38c Change lint.kak column display to put it at the end 2017-03-10 12:41:01 +00:00
Maxime Coste
e888dae787 Merge remote-tracking branch 'kurkale6ka/lint_cols' 2017-03-10 12:28:17 +00:00
Maxime Coste
a0b42323ed Add a -debug flag to :edit to set the buffer as debug data
As for the *debug* buffer, buffers with the debug flag wont get
used for cycling through buffer, or word completion.
2017-03-08 19:33:25 +00:00
Martin Chaine
b5a9979bfb also handle enums explicitly 2017-03-07 09:55:22 +01:00
Martin Chaine
b5f6a9b227 escape pipe from closure in the description 2017-03-06 22:30:59 +01:00
Delapouite
cdb076603c Add Symbol, async and await highlighting for javascript.kak 2017-03-05 19:25:15 +01:00
Maxime Coste
bdb3da6b36 Merge remote-tracking branch 'casimir/patch-1' 2017-03-03 21:33:20 +00:00
Maxime Coste
a0c301ac42 Merge remote-tracking branch 'lenormf/fix-autorestore' 2017-03-03 21:13:53 +00:00
Maxime Coste
7d07064a41 Merge remote-tracking branch 'alexherbo2/rc-ocaml' 2017-03-03 21:11:06 +00:00
Maxime Coste
96625fc7ae Merge remote-tracking branch 'alexherbo2/rc-ruby' 2017-03-03 21:11:00 +00:00
Frank LENORMAND
947b518f03 rc: add a spell-next command 2017-03-01 22:16:28 +03:00
Frank LENORMAND
4ba7c7a2c4 rc: POSIX and cosmetic fixes in the spell script` 2017-03-01 16:14:02 +03:00
Martin Chaine
d232064a0b add racer completion for rust 2017-03-01 13:11:35 +01:00
Frank LENORMAND
0fd41540d1 rc: Don't print errors when no buffer backup exist 2017-03-01 14:55:29 +03:00
Alex Leferry 2
63f9f9bbc9 highlight hash access symbols 2017-02-28 09:48:17 +01:00
Alex Leferry 2
c0e402c06f add rc/ocaml.kak 2017-02-27 22:05:27 +01:00
Maxime Coste
72bea292f8 Merge remote-tracking branch 'lenormf/fix-autorestore' 2017-02-27 20:15:25 +00:00
Frank LENORMAND
5f5706eda3 rc: POSIXify the modeline.kak script
Fixes #893
2017-02-26 10:27:56 +03:00
Frank LENORMAND
c379c5cbdc rc: Simplify/POSIXify the autorestore.kak script
This commit allows buffers that were not previously written to disk to
be restored if a backup has been generated in their name. Consequently,
we got rid of a few non-POSIX calls to `find` (using `-maxdepth` or
`-delete`), and of the logic that detected the newest backup (which
didn't seem a good reason enough to steer away from a portable command).

Fixes #1236
2017-02-24 14:48:49 +03:00
Maxime Coste
964252d396 Merge remote-tracking branch 'omar-polo/master' 2017-02-22 09:43:03 +00:00
Omar Polo
129424daea improved haskell comment regex 2017-02-21 21:26:05 +01:00
Maxime Coste
186eed0906 jedi.kak: python 3 compat fix 2017-02-20 20:13:48 +00:00
Maxime Coste
edc2a88643 Rename BufNew and BufOpen hooks to BufNewFile and BufOpenFile
Fixes #1225
2017-02-19 13:08:06 +00:00
Maxime Coste
b456de78a7 pony.kak: Remove redundant BufNew/BufOpen hooks
BufCreate will be called in any case.
2017-02-19 13:04:19 +00:00
Maxime Coste
55bd3b7949 Merge remote-tracking branch 'tmiller/add-elm-support' 2017-02-13 20:28:29 +00:00
Maxime Coste
14fa89e642 Merge remote-tracking branch 'lenormf/fix-doc-ansi-sequences' 2017-02-13 20:27:38 +00:00
Maxime Coste
f7d794d047 Merge remote-tracking branch 'nicholastmosher/faces' 2017-02-13 20:25:41 +00:00
Maxime Coste
5b1229709d Fix make.kak handling of 'Entering directory' and absolute paths
Fixes #1212
2017-02-13 13:52:51 +00:00
Tom Miller
ec77784d98 Add elm language support
Using Haskell's language file as a starting point this add support for
Elm.
2017-02-13 07:52:01 -06:00
Frank LENORMAND
0532251aaf Make sure no ANSI sequences are in the data returned by man
The Debian implementation of `man-db` does not strip ANSI sequences out
of the file, even though the documentation says it would do so. The
commit that originally closed this issue wasn't related to the problem
experienced, this one hopefully addresses it.

This commit also addresses an issue with the `-i` flag in BSD `sed`
which expects an argument (the GNU implementation doesn't).

Fixes #1098
2017-02-10 13:30:06 +03:00
Nick Mosher
e1927fa9c4 Adds faces module and function. Renames identifier face to variable. 2017-02-09 21:43:29 -05:00
Alex Leferry 2
d029af86af fix regex highlighting 2017-02-09 23:00:36 +01:00
Maxime Coste
033ded15ae Add proper heredoc highlighting support to sh.kak 2017-02-06 23:00:20 +00:00
Maxime Coste
f3feecbe15 Merge remote-tracking branch 'alexherbo2/rc-scss' 2017-02-03 13:46:27 +00:00
Maxime Coste
99b7d83ca3 Highlight c-family include paths as identifiers 2017-02-03 13:35:45 +00:00
Alex Leferry 2
1fecb99a4d support in-line comments 2017-02-01 13:56:24 +01:00
Maxime Coste
6e39e8371a Improve POSIX sed compatibility in lint.kak
Fixes #1072
2017-01-31 22:42:43 +00:00
Maxime Coste
159c143757 Fix autorestore script when we have multiple restore files 2017-01-30 00:10:31 +00:00
Maxime Coste
565d835d57 Fix option name in haskell.kak 2017-01-29 16:10:48 +00:00
Maxime Coste
5cb0fb13aa Merge remote-tracking branch 'doppioandante/haskell-extra-chars' 2017-01-29 14:47:30 +00:00
Maxime Coste
e2d24701fa Merge remote-tracking branch '4d47/php-comments' 2017-01-29 14:43:59 +00:00
Mathieu Gagnon
ee9482d90d Add octothorpe to php comment highlighters 2017-01-29 06:28:28 -05:00
Mathieu Gagnon
97d99358d1 Set commenting options for php
The defaults are working but using c-family style is more idiomatic,
it also enable support for `comment-selection`.
2017-01-29 06:23:11 -05:00
Maxime Coste
1048036d3c Merge remote-tracking branch 'alexherbo2/rc-comment' 2017-01-25 21:18:48 +00:00
Maxime Coste
d3ecc9f311 More tolerant recognition of underlined titles in asciidoc highlight 2017-01-25 00:24:41 +00:00
Enrico Lumetti
05d76ecf9a Add quote to completion characters in haskell 2017-01-22 19:24:46 +01:00
lisael
eeedd4854c Cleanups and added :$ as autoindent trigger 2017-01-20 13:51:25 +01:00
lisael
ffdab1aeb3 added https://github.com/ponylang/ponyc filetype 2017-01-20 04:57:13 +01:00
Alex Leferry 2
4f3c28aa37 fix quote convention 2017-01-15 15:12:57 +01:00
Alex Leferry 2
b66d58b703 remove optional value 2017-01-15 15:07:17 +01:00
Alex Leferry 2
d6cb1b8e53 fix typo 2017-01-15 15:05:01 +01:00
Alex Leferry 2
165227dac2 rename line and block comments options 2017-01-15 14:58:07 +01:00
Alex Leferry 2
98cc81ae07 rename :comment-selection to :comment-block 2017-01-15 14:48:12 +01:00
Alex Leferry 2
1f0ec535bd tweak :comment-line behaviour to comment selected lines 2017-01-15 14:43:45 +01:00
Alex Leferry 2
4ad4b2d41a rename commenting.kak to comment.kak 2017-01-15 14:25:32 +01:00
Maxime Coste
c0afbe8626 Remove MAN_KEEP_FORMATTING for doc.kak
Fixes #1098
2017-01-15 11:26:57 +00:00
Maxime Coste
10ac883b60 Use byte offsets in spell
Fixes #1126
2017-01-15 11:22:47 +00:00
Maxime Coste
474f22c429 Fix trailing space in yaml.kak 2017-01-14 21:05:40 +00:00
Bruno-Sosa
bcdee989d7 Empty commit
Bruno Sosa 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.
2017-01-14 21:54:14 +01:00
Bruno-Sosa
dcfdcf97c8 fix file YAML detection 2017-01-14 21:50:20 +01:00
Maxime Coste
83cb7b12bd Merge remote-tracking branch 'doppioandante/java-indent' 2017-01-14 14:50:52 +00:00
Maxime Coste
700cb7b7fb Merge branch 'master' of git://github.com/tadzik/kakoune 2017-01-14 14:50:16 +00:00
Maxime Coste
ec618357de Fix modeline.kak declaring the same command twice 2017-01-14 14:47:57 +00:00
Enrico Lumetti
dabf78dfe4 Add auto indentation to java files
Adapted from d.kak.
Some missing keywords were added.
2017-01-13 21:36:49 +01:00
Tadeusz “tadzik” Sośnierz
1e6b05fc4c No need for two hooks for a single Perl highlighter. Thanks, casimir! 2017-01-13 16:03:40 +01:00
Tadeusz “tadzik” Sośnierz
a7666efd4f Unhardcode variable declarartion highliting in Perl code, colour them as identifiers instead 2017-01-13 14:59:20 +01:00
Tadeusz “tadzik” Sośnierz
635951e325 Treat .pm files as Perl code 2017-01-13 14:59:20 +01:00
Maxime Coste
5ad4499503 Fix naming conventions in bundled scripts
Do not use _ prefix for hidden commands, use - as a word separator
in command names.
2017-01-13 01:00:43 +00:00
Maxime Coste
91a56c11fe Various auto indent fixes regarding wrong use of x instead of <a-x> 2017-01-13 00:50:03 +00:00
Maxime Coste
5989903e7c Copy comments *before* copying indentation
Fixes #1118
2017-01-11 13:56:48 +00:00
Maxime Coste
faa18b3a8f Merge git://github.com/knubie/kakoune 2017-01-10 13:51:57 +00:00
Maxime Coste
4cfa4062bc Add '-' as completion extra word character for kakrc files 2017-01-10 13:48:04 +00:00
Maxime Coste
343df600cb Merge remote-tracking branch 'alexherbo2/command-names' 2017-01-10 13:44:11 +00:00
Matt Schick
e1833801f8 Change html highlighting to be ref inside of hbs highlighting 2017-01-08 17:29:36 -08:00
Maxime Coste
d2199bc619 Merge branch 'javascript-highlighter-add-template-literals' of git://github.com/schickm/kakoune 2017-01-06 19:36:49 +00:00
Maxime Coste
a8fb280b6d make.kak: highlight gcc/clang style location markers 2017-01-06 17:05:39 +00:00
Matt Schick
0d5cb79801 Add support for ES6 template literals to javascript highlighting 2017-01-06 07:27:21 -08:00
Maxime Coste
60d0813704 Tweak clang menu highlight so that we dont separate backspace from the escaped char 2017-01-04 12:23:25 +00:00
Alex Leferry 2
671b50bb52 update command names 2017-01-04 13:04:27 +01:00
Alex Leferry 2
8f821f0fba update kakrc keywords 2017-01-04 00:30:50 +01:00
Maxime Coste
5763cbb927 Merge branch 'add-handlebars-syntax-highlighters' of git://github.com/haarts/kakoune 2017-01-03 10:31:44 +00:00
Maxime Coste
c3e1bab9d6 Fix comment autoinsert for c-family as well.
Fixes #1074
2017-01-02 12:05:49 +00:00
Maxime Coste
8316a5c145 Merge remote-tracking branch 'casimir/editor-config-enhancements' 2017-01-02 11:04:26 +00:00
Maxime Coste
4901a02e50 Add indentation hooks to kak filetype support script 2017-01-02 04:33:42 +00:00
Maxime Coste
5ab60cde51 Rename python indentation command to be more consistent
We use `-` as word separator, and there is no need for leading
underscore.
2017-01-02 04:20:05 +00:00
Maxime Coste
d5231c713e Fix corner case in C indentation 2017-01-02 04:15:12 +00:00
Martin Chaine
d6bde05d27 don't handle trailing newline option
kakoune handles files as a list of lines with a newline ending
2017-01-01 19:19:40 +01:00
Martin Chaine
45fb4b6bac allow to override filename + remove existing hooks 2016-12-30 19:32:04 +01:00
Martin Chaine
292d9c9f01 fix BOM option value 2016-12-30 19:32:04 +01:00
Martin Chaine
88a8548017 fix typo 2016-12-30 19:32:04 +01:00
Martin Chaine
2c3b2e9b52 fix indent options and add whitespaces ones 2016-12-30 19:32:04 +01:00
Dan Rosén
5ddc28eaad Fix comment-leader auto-insertion
Fixes #1074
2016-12-29 01:39:02 +01:00
Alex Leferry 2
d80ebbc245 support ```[<space>…]<language> code block 2016-12-27 14:09:20 +01:00
Matthew Steedman
bedf0c77ae add 'extend' to ruby grammar
Technically `include` and `extend` are both just methods on `Module` and `Object`, respectively, but it I think we should have both or neither.
2016-12-25 14:01:56 -05:00
Harm Aarts
f9c860d235 Add Handlebars syntax highlighting.
This is based on the HAML syntax highlighting. Of note is the loading of
the html highlighter since Handlebars is embedded in html.
2016-12-21 21:31:05 +01:00
Leira Hua
6cbc9e0a34 Fixes #995 Documentation rendering problem
BSD sed doesn't accept ascii number with '\x', used printf to generate
\x8 as @lenormf suggested.
2016-12-20 02:31:55 -08:00
Leira Hua
e10f1e53fc fixed clang-complete on macOS, paste command need - to read from stdin 2016-12-18 23:18:15 -08:00
Maxime Coste
d8620b9e79 Merge remote-tracking branch 'leemachin/add-php-script' 2016-12-16 19:56:15 +00:00
Lee Machin
94d72c4bad Add basic PHP syntax highlighting
based on the highlighting for JS
2016-12-16 19:20:26 +02:00
Kylie McClain
516c9591b9 base/markdown: Correct italic/bold detection regex
As specified at https://daringfireball.net/projects/markdown/syntax#em
italics are made with either single asterisks/underscores, and bold is
double asterisks/underscores. Before this, single asterisks were
understood as bold, and only underscores were understood as italics;
both of which behaviors are incorrect.
2016-12-16 00:21:33 -05:00
Matt Schick
6deaed01de Add face 'GitDiffFlags' for git diff flag_lines
No defaults have been altered, just added the ability to do user override.  The existing facespec had a background of 'black', which ends up looking a little harsh for people who do black text on a white background.
2016-12-15 06:09:27 -08:00
Maxime Coste
85cd27138d Remove mimetype option for good
file.kak now is responsible for mapping whatever mimetype file uses
to the filetype that Kakoune uses.

Fixes #975
Fixes #979
2016-12-14 13:40:00 +00:00
Maxime Coste
1bdf26fd6e Merge remote-tracking branch 'casimir/remove-mimetype' 2016-12-14 13:30:59 +00:00
Maxime Coste
8e351e8285 Remove use of non-standard -l option in doc.kak
This will break BSD unfortunately, we should try to find a
portable fix for that.

Fixes #967
2016-12-14 01:02:53 +00:00
Maxime Coste
066d6d1120 Do not use find -printf in doc completion implementation 2016-12-14 00:59:19 +00:00
Maxime Coste
53e9496343 Remove the 'h' alias for doc, just provide 'help' 2016-12-14 00:08:23 +00:00
Noé Rubinstein
93620a76f0 doc.kak: add aliases for :h and :help
This would help VIM users find the documentation
2016-12-13 19:28:23 +01:00
Maxime Coste
a132985888 Fix uses of renamed make_current_error_line option
Fixes #952
2016-12-10 13:39:02 +00:00
Maxime Coste
0f486666e0 Remove underscore prefix from indent command in c-family.kak
We already define these commands as hidden, this underscore has
little value.
2016-12-09 13:51:44 +00:00
Maxime Coste
d8f00198f3 Improve C indentation support around namespace/struct closing bracket 2016-12-09 13:50:41 +00:00
Maxime Coste
ca225ad4dc Cleanup make.kak and optimize the make-next/make-prev regexes 2016-12-09 13:33:01 +00:00
Maxime Coste
5caa969947 Merge branch 'make/error-pattern' of git://github.com/pauldub/kakoune 2016-12-08 23:02:11 +00:00
Paul d'Hubert
010453a2ac Update make.rc error pattern matching
- Use the classic unix file:line:(col:)? pattern for matching.
- The option `make_error_pattern` can be used to further restrict errors
to be matched (to include / exclude warnings, etc.
2016-12-08 11:33:28 +01:00
Martin Chaine
5b95e537ba don't reset line chars for python 2016-12-08 11:18:16 +01:00
Martin Chaine
3227fa7b57 Fix python comment chars 2016-12-08 11:07:25 +01:00
Paul d'Hubert
c54a8ef987 Allow setting custom make error pattern
The current pattern used by the commands `make-next` and `make-prev`
are not suitable for all usages.

For example the go compiler will not suffix errors with `error: ` and is
not usable with these functions. This change allows the user to define
a custom error pattern, instead of having to work around the error (for
example using sed to insert the `error: ` suffix).

What do you think of this? I have not followed the current convention
of having options without separators (like `makecmd`). Also this does
not feel to be the right solution because the pattern has to be set at
global level.
2016-12-08 11:01:05 +01:00
Martin Chaine
5fcb99a154 smarter mimetype matching 2016-12-07 14:00:06 +01:00
Martin Chaine
74432ac8f2 match filetype for eml extension
stolen from #878
2016-12-06 17:53:12 +01:00
Martin Chaine
b64bcf7b3e better filetype detection
http://asciidoctor.org/docs/asciidoc-recommended-practices/#document-extension
2016-12-06 17:49:30 +01:00
Martin Chaine
7384288e07 transform mimetype to a fallback option
The option is now used as a fallback when detection by extension fails. Some
scripts like `base/mail.kak` and `base/html.kak` still rely heavily on it.
2016-12-06 17:48:46 +01:00
Maxime Coste
d88d0bac42 Rework editorconfig.kak to make it more robust and handle tabs more correctly 2016-12-02 13:44:51 +00:00
Maxime Coste
168abcdb48 Fix c-family.kak after the change to keep handling of eol 2016-11-29 00:01:37 +00:00
Martin Chaine
85759d51eb go: error is a type not a keyword 2016-11-28 15:06:26 +01:00
Martin Chaine
34be6c42e7 add error to types 2016-11-28 14:05:25 +01:00
Maxime Coste
97a84a4765 c-family.kak: rename gcc_macros to builtin_macros 2016-11-27 23:38:47 +00:00
Frank LENORMAND
94971e0e8a Introduce the builtin face, modify scripts accordingly 2016-11-24 17:06:45 +03:00
Maxime Coste
fbd32fb512 Merge remote-tracking branch 'lenormf/fix-html-mimetypes' 2016-11-23 00:25:45 +00:00
Frank LENORMAND
0c4c7ba240 Support xml based code in html.kak
This commit extends the range of mimetypes detected in `html.kak` to the
following:
* text/html
* text/x-html
* text/xml
* application/xml
* application/…+xml (e.g. xhtml, rss)

Static .xml file will also be highlighted as HTML.
2016-11-22 11:07:53 +03:00
Frank LENORMAND
7f9e24cdbf Remove flake8.kak, deprecated by lint.kak
Builtin support for `flake8` can be obtained using the following:
```
set window lintcmd 'flake8 --filename=* --format="%(path)s:%(row)d:%(col)d: error: %(text)s"'
```
2016-11-22 10:56:17 +03:00
wheatdog
cf096a1f19 enhance latex.kak: comments, \%, \_, \$ 2016-11-19 23:01:07 +08:00
Maxime Coste
8e56917984 ctags.kak: Fix compatibility with original-awk
Fixes #928
2016-11-17 13:03:43 +00:00
Maxime Coste
16b8615089 ctags.kak: Replace some subshells with parameter expansions 2016-11-16 10:01:08 +00:00
Dimitar Dimitrov
27265b655a Don't double sub shell 2016-11-15 22:49:51 +00:00
Maxime Coste
f1400e49ab Remove some tabs from ctags.kak 2016-11-15 22:49:51 +00:00
Maxime Coste
10fa6afa08 Rework ctags.kak to read from all the different tag files.
Ensure tags files are not read twice through different paths.
Handle paths containings space correctly

Closes #802, to which much credits goes for this change.
2016-11-15 22:48:49 +00:00
Olivier Perret
b6acafc8ec fix lua.kak 2016-11-15 21:23:46 +01:00
Maxime Coste
90de54af2f Rework c-family /* */ comments auto insertion of prefix star
Fixes #918
2016-11-14 21:11:20 +00:00
Maxime Coste
cb074793a0 Highlight numbers as values in json 2016-11-14 13:14:21 +00:00
Maxime Coste
dcd733e5fa Do a first phase of command renaming 2016-11-14 00:27:14 +00:00
Dimitar Dimitrov
8917c3662b Add column information 2016-11-09 22:36:33 +00:00
Frank LENORMAND
85ce5db08a Merge the "error" duplicate face into "Error" 2016-11-09 17:51:42 +03:00
Maxime Coste
fff129f15b Merge remote-tracking branch 'lenormf/fix-sh-highlighting' 2016-11-08 20:20:45 +00:00
Frank LENORMAND
aca984f000 Highlight variable expansions as values in shell scripts 2016-11-08 19:03:41 +03:00
Martin Chaine
6271c60080 add missing builtins + clean duplicate interface 2016-11-07 11:10:38 +01:00
Martin Chaine
352c56bfb5 let the user set the format hook 2016-11-06 17:22:54 +01:00
Martin Chaine
28e37b608d remove trailing whitespaces 2016-11-05 18:40:37 +01:00
Martin Chaine
590e28ea7f Extended support for go
completion, auto-format, documentation and more
2016-11-05 17:54:56 +01:00
Frank LENORMAND
277117f64b Fix the doc command for users of BSD man
This commit uses options and flags that will work on both the BSD and
the `man-db` implementations, however those changes remain unportable as
the POSIX standard only defines a single `-k` flag for the utility,
which we don't need.

The call to the `col` utility has also been replaced by a call to `sed`,
as the former is only shipped on systems that have the `nroff` formatter
installed.
2016-11-03 14:57:55 +03:00
Maxime Coste
9ca0467c4d Merge remote-tracking branch 'kurkale6ka/lint_explicit' 2016-11-02 22:47:45 +00:00
Maxime Coste
01dba547fb Tweak c-family indentation logic 2016-11-02 22:27:50 +00:00
Dimitar Dimitrov
c5ebd5e303 Remove since it gets overwritten by the NormalIdle hook +
$kak_cursor_line will always be 1 as that runs in a temporary context for the window
2016-11-02 17:00:04 +00:00
Dimitar Dimitrov
9a87e7fdff Use same idiom as for lint-next 2016-11-02 14:18:38 +00:00
Dimitar Dimitrov
05f7ab7568 lint-prev 2016-11-02 14:09:33 +00:00
Dimitar Dimitrov
ae339dc3c4 Use %~~ for delimiting to avoid issues with braces in the message 2016-11-02 14:09:33 +00:00
Maxime Coste
bd5c952d76 Merge remote-tracking branch 'kurkale6ka/spell_replace' 2016-10-29 11:51:02 +01:00
Maxime Coste
2a1a9d9aad Merge remote-tracking branch 'casimir/patch-2' 2016-10-29 11:30:12 +01:00
Maxime Coste
79b193d2be Fix ctags update-tag command that could fail depending on the locale 2016-10-28 09:48:57 +01:00
Martin Chaine
0272d3909d Fix sed for macOS 2016-10-27 11:22:16 +02:00
Maxime Coste
7c6c6871ce BufferRange option syntax support <line>.<column>+<len> and is inclusive
Fixes #864
2016-10-26 22:58:12 +01:00
Maxime Coste
4b2004c6ff git-tools.kak: Fix passing of custom parameters to git commit 2016-10-24 20:45:57 +01:00
Maxime Coste
1c97be5716 Merge remote-tracking branch 'casimir/taskpaper-support' 2016-10-23 18:30:50 +01:00
Maxime Coste
d54640f41d Merge remote-tracking branch 'kurkale6ka/sh_lint_2' 2016-10-23 18:30:23 +01:00
Maxime Coste
f3d7209781 Merge remote-tracking branch 'casimir/patch-1' 2016-10-23 18:30:06 +01:00
Martin Chaine
93c2943ff9 different highlight for variable declaration 2016-10-23 11:55:32 +02:00
Martin Chaine
2f86038abe const and var are keywords not attributes 2016-10-23 11:16:04 +02:00
Martin Chaine
1012fae065 Add missing Go keyword
Add `var` to the keywords, per https://golang.org/ref/spec#Keywords.
2016-10-22 20:02:22 +02:00
Olivier Perret
84b02bf407 fish.kak: fix edge cases in newline insertion 2016-10-22 10:19:19 +02:00
Dimitar Dimitrov
d5e0426a77 Avoid problems when the message contains comas 2016-10-21 15:01:09 +01:00
Martin Chaine
d7d79af8b4 Add taskpaper basic support 2016-10-21 13:32:17 +02:00
Dimitar Dimitrov
9529aa7020 Use -s for functions 2016-10-21 10:42:41 +01:00
Dimitar Dimitrov
52d1929d81 Add a spell replace function 2016-10-21 10:42:41 +01:00
Maxime Coste
dcebdd54f3 Merge remote-tracking branch 'lenormf/fix-spell' 2016-10-20 21:52:38 +01:00
Maxime Coste
f9f1b6a2b3 Merge remote-tracking branch 'kurkale6ka/sh_lint' 2016-10-20 21:51:55 +01:00
Dimitar Dimitrov
02ab268416 Sort 2016-10-20 12:08:42 +01:00
Dimitar Dimitrov
a773f2ba4b Add sh linter 2016-10-19 17:17:59 +01:00
Frank LENORMAND
ae08312bce Allow the spelling checks to run in the background
The escaping of the main shell script is also tidied up, and some
processes that were spawned for no reason are removed.
2016-10-18 15:14:37 +03:00
Maxime Coste
658d993d71 Try to fix autorestore posix compatibility 2016-10-17 21:31:56 +01:00
Maxime Coste
cf5bcdf1bb Merge remote-tracking branch 'lenormf/fix-formatcmd' 2016-10-17 18:28:57 +01:00
Maxime Coste
1431dcff46 Fix bug in c-family indentation logic after visibility labels
Fixes #872
2016-10-16 19:27:53 +01:00
Frank LENORMAND
ac42ea414e Add commenting characters to all supported languages
The default commenting character is now '#', considering the superior
amount of files that use it for comments compared to the previous
C-style comment characters.

The logic now also prioritize the opening commenting characters if they
contain a colon, to be able to use selection commenting on markdown
files.
2016-10-15 11:07:21 +03:00
Frank LENORMAND
68d3eda270 Miscellaneous fixes to the commenting.kak script
This commit properly produces backslash characters within double quote
strings instead of hoping the shell will not recognize the escape
sequence that they form with the following character. Use the proper
POSIX function declaration form.

The uncommenting logic now also ignores trailing newline characters,
which shortens the amount of operations needed to uncomment a selection.
2016-10-14 22:15:35 +03:00
Frank LENORMAND
5db1d1beef Move the commenting variables back to commenting.kak
Initialising the `comment_line_chars` and `comment_selection_chars` variables
in language support scripts created a hard dependency of those scripts
to `commenting.kak`, which would create errors when this script was not
loaded, e.g. when running tests.
2016-10-14 22:12:01 +03:00
Frank LENORMAND
67a8e8ca3c Remove all references to formatcmd
Initializing the `formatcmd` variable in the default language support
scripts created a dependency to the `formatter.kak` script, which we do
not want. Examples of such cases are when users haven't loaded the
`formatter.kak` script, or when Kakoune runs its test suite and
selectively loads some language scripts for testing purposes.
2016-10-14 19:16:45 +03:00
Maxime Coste
5af29b0254 Fix python comment copy logic in python.kak
And introduce the first unit test that sources bundled support
scripts.

Fixes #860
2016-10-13 20:13:05 +01:00
Maxime Coste
ee5c246861 Merge remote-tracking branch 'lenormf/fix-flake8' 2016-10-13 00:20:10 +01:00
Maxime Coste
e7f41b2dda Merge remote-tracking branch 'casimir/golang-rename' 2016-10-13 00:19:45 +01:00
Frank LENORMAND
8b5cf3feb0 Add a missing then keyword to an if statement 2016-10-12 15:35:25 +03:00
Frank LENORMAND
f6a2925950 Fix, complete and add docstring documentation to builtin commands
Level out the builtin commands loaded at startup in terms of format and
expressiveness. The following convention was followed:
* commands that take more than one argument have to be described along
  with their parameters prior to the actual documentation, otherwise the
  docstring consists in a capitalized sentence
  e.g. `command <arg1>: do something`
* optional arguments are enclosed in square brackets, to comply with the
  format used for hardcoded commands
  e.g. `cd [<directory>]`
* describe the effects of the command in the documentation string and
  omit implementation details unless they are relevant. Usually command
  names include the name of the tool they use, so they don't need to be
  redundantly mentioned
  e.g. `tmux-new-pane <arguments>: open a new pane`
* document the format the parameters to the commands, or list them if
  they are to be chosen among a list of static values (c.f. `spell.kak`)
2016-10-11 10:26:17 +03:00
Martin Chaine
3b6cafd692 Renamed dlang to d 2016-10-09 11:57:55 +02:00
Martin Chaine
e14804fada Renamed golang to go 2016-10-08 21:42:43 +02:00
Maxime Coste
d89959dfa8 autorestore.kak: more tweaks, a WIP version was pushed by error 2016-10-07 08:57:45 +01:00
Maxime Coste
1970cb68c9 Refactor autorestore.kak to make it faster 2016-10-06 22:35:07 +01:00
Maxime Coste
35a6d4916e Fix :doc completion candidates, they do not depend on the current word
Fixes #845
2016-10-06 13:38:49 +01:00
Maxime Coste
f67d5076c4 Tweak spell.kak, embrace printf and refactor a bit 2016-10-06 13:32:51 +01:00
Maxime Coste
92b4046ba8 Merge remote-tracking branch 'lenormf/fix-spell' 2016-10-06 09:27:50 +01:00
Frank LENORMAND
273455ecc8 Fix non POSIX instructions, print errors when they occur 2016-10-05 07:56:40 +03:00
Maxime Coste
8a4cf85e22 Use eval -no-hooks when writing the buffer in a tmp file for scripting purposes 2016-10-03 20:29:54 +01:00
Maxime Coste
4addf65042 Merge remote-tracking branch 'alexherbo2/fish-rc' 2016-10-02 20:38:55 +01:00
Maxime Coste
4d6af15734 Merge remote-tracking branch 'lenormf/fix-autowrap' 2016-10-02 20:26:36 +01:00
Maxime Coste
ae50b3f089 Fix clojure hook 2016-10-02 00:02:52 +01:00
Maxime Coste
1b9c8b9cf2 Fix hool -> hook in rc files 2016-10-01 14:09:59 +01:00
Maxime Coste
6e17ecfb6e Fix golang.kak highlighting hooks 2016-10-01 13:44:18 +01:00
Maxime Coste
e65aa4a6de Merge remote-tracking branch 'greduan/highlighter-group' 2016-10-01 13:43:21 +01:00
Frank LENORMAND
6ae1eaf97c Adapt to recent changes to exec's behavior, remove non POSIX double brackets 2016-09-29 09:55:44 +03:00
Maxime Coste
a66aed21c2 Merge remote-tracking branch 'lenormf/fix-flake8' 2016-09-28 21:47:09 +01:00
Maxime Coste
c77719bad0 Merge remote-tracking branch 'greduan/rename-ini-highlighter' 2016-09-28 21:46:31 +01:00
Maxime Coste
098c94b878 Do not automatically enable ranger on directory open errors
Use an explicit command that does that 'ranger-open-on-edit-directory'
and remove the file_manager option that is not needed anymore.
2016-09-28 19:34:29 +01:00
greduan
a68f5f20a1 Add highlight group to highlighters rmhl hooks 2016-09-28 08:45:01 +02:00
greduan
6c6359de93 Add highlight group to highlighters addhl hooks 2016-09-28 08:25:02 +02:00
greduan
f02c6633fb Do s/ini-highlighter/ini/ on rc/base/ini.kak 2016-09-28 08:23:21 +02:00
Alex Leferry 2
5c4eda5ba6 refactorize command hooks 2016-09-27 12:48:26 +02:00
Alex Leferry 2
c853e3a502 disable hooks 2016-09-27 12:48:24 +02:00
Alex Leferry 2
f0820bc83d slight refactor in _fish_filter_around_selections command 2016-09-27 12:47:42 +02:00
Alex Leferry 2
0e185c54ef compact commands 2016-09-27 11:36:43 +02:00
Maxime Coste
b74a268552 Merge remote-tracking branch 'lenormf/fix-markdown' 2016-09-27 09:36:42 +01:00
Alex Leferry 2
503b5bea4c add ranger.kak 2016-09-26 11:51:53 +02:00
Maxime Coste
0d5a1ddf4c Merge remote-tracking branch 'lenormf/fix-makefile' 2016-09-25 15:17:03 +01:00
Frank LENORMAND
b26d083627 Place the Makefile highlighting script alongside the make support script 2016-09-25 09:19:56 +03:00
Frank LENORMAND
7d51dca290 Indent after other keywords 2016-09-25 09:19:04 +03:00
Frank LENORMAND
048004f3a4 Allow dashes in target names for syntax highlighting 2016-09-25 09:13:39 +03:00
Frank LENORMAND
fbc2091df9 Rewrite some non POSIX conditionals 2016-09-24 12:49:19 +03:00
Frank LENORMAND
9a2f0c350b Add language highlighting to markdown code blocks
Fixes #808
2016-09-24 11:25:58 +03:00
Frank LENORMAND
24ef77704c Add more standard GNU keywords to the makefile completion keywords 2016-09-24 11:09:42 +03:00
Maxime Coste
6f8d5d2e1f Merge remote-tracking branch 'alexherbo2/ranger-rc' 2016-09-22 23:19:37 +01:00
Kylie McClain
3ec0cbd07a formatter.kak: Use sed rather than ${variable//string/replacement}
Using ${variable//string/replacement} is a bash extension, it is not part
of POSIX shell scripting.

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02
2016-09-21 19:54:17 -04:00
Maxime Coste
80413e1e3a Merge remote-tracking branch 'alexherbo2/ruby-rc' 2016-09-19 09:26:04 +01:00
Maxime Coste
8deadcc318 Merge remote-tracking branch 'kurkale6ka/add_quotes' 2016-09-19 09:25:00 +01:00
Maxime Coste
94748713f2 Merge remote-tracking branch 'casimir/modeline-compat' 2016-09-19 09:23:13 +01:00
Alex Leferry 2
e18d145f96 highlight :: operator 2016-09-16 11:12:02 +02:00
Alex Leferry 2
bb911cc229 fixes symbol highlighting 2016-09-16 10:54:53 +02:00
Martin Chaine
a03cc59608 Use POSIX case and BRE 2016-09-09 16:48:49 +02:00
Alex Leferry 2
6e634c680a fixes 'end' insertion 2016-09-09 15:36:45 +02:00
Alex Leferry 2
5b99ef3197 disable hooks 2016-09-09 15:35:23 +02:00
Dimitar Dimitrov
b9ef5a2f2a Always use quotes with sh/bash 2016-09-09 12:04:55 +01:00
Martin Chaine
6faed96b68 Highlight diff in git-commit too 2016-09-07 13:50:21 +02:00
Maxime Coste
e9c63316f5 Tweak c-family indent logic 2016-09-05 23:33:34 +01:00
Frank LENORMAND
12ddf22761 Fix the directory from which the file containing a matching tag will be opened 2016-08-31 14:23:36 +03:00
Maxime Coste
80298a95a0 clang.kak: Use two sed processes instead of one to avoid extra long pattern space
The previous version was ending up with all the completion candidates
in a single, multiline pattern space, regex substitution on it was
extremely slow compared to the two process version where substitution
is always running on a single candidate.
2016-08-30 23:41:27 +01:00
Maxime Coste
7b81131071 Merge remote-tracking branch 'lenormf/fix-doc-completion' 2016-08-30 22:41:31 +01:00
Enrico Lumetti
5ee57f18df Invoke tmux only after checking its existence 2016-08-30 16:51:33 +02:00
Frank LENORMAND
47d9f4a993 Allow instant completion of doc pages
Closes #750
2016-08-30 17:25:34 +03:00
Alex Leferry 2
d3075c0325 add ranger.kak 2016-08-30 13:20:12 +02:00
Maxime Coste
551263c564 Use shell-candidates for :git command completion 2016-08-30 01:01:18 +01:00
Maxime Coste
3a24763d53 c-indent: only align to opening paren if it is on the immediate previous line 2016-08-09 18:45:13 +01:00
Maxime Coste
1119d00a96 Use shell-candidates for ctags completion, and cache tag names in a separate file 2016-08-06 06:51:33 +01:00
Maxime Coste
967a55d09f c-indent: Tweak implementation of c-family-insert-on-newline 2016-08-05 09:37:25 +01:00
Maxime Coste
19e36425f4 c-indent: Restore previous indent after a closing parenthesis 2016-08-05 09:05:47 +01:00
Maxime Coste
d836fe7d66 c-indent: fix align to opening paren touching too much text 2016-08-05 09:05:30 +01:00
Maxime Coste
b3f4840f45 Merge remote-tracking branch 'lenormf/fix-hooks-cfamily' 2016-08-05 08:07:41 +01:00
Maxime Coste
b80dbf9322 Move x11.kak and tmux.kak to rc/base from rc/core 2016-07-28 09:17:18 +01:00
Martin Chaine
82e28bce11 Move iterm.kak to rc/extra 2016-07-25 12:52:40 +02:00
Martin Chaine
fce5274f81 Introduce iTerm2 support (split, tab, window) 2016-07-25 12:23:56 +02:00
Maxime Coste
a95937918d Merge remote-tracking branch 'lenormf/fix-autowrap' 2016-07-19 21:36:05 +01:00
Kylie McClain
db4d188a42 rc/base/etc: Use a more efficient expression
I was hitting a stack size issue with the previous regular expression used
to match filesystem lines, so I decided to rewrite it. Admittedly I don't
know entirely if this has better performance, but it seems to work well
and additionally isn't too greedy with matching like the previous one.
2016-07-17 16:45:13 -04:00
Frank LENORMAND
78c6b7c03d Don't completely remove empty lines when fixing indents 2016-07-15 10:29:19 +03:00
Frank LENORMAND
843d03f2e7 Disable automatic paragraph formatting by default, work around the lack of string refill in fold 2016-07-14 17:32:56 +03:00
Frank LENORMAND
712c990592 Fix the selection patterns on corner cases 2016-07-14 17:21:35 +03:00
Frank LENORMAND
ba3c7bab06 Fix paragraph wrapping in the autowrap script 2016-07-14 16:40:08 +03:00
Frank LENORMAND
4204f6dae6 Create an insert group, fix and improve the existing hooks 2016-07-12 17:23:55 +03:00
Maxime Coste
bbceae97a2 Fix uses of <c-m> in rc files, <ret> should be used now 2016-07-11 19:47:56 +01:00
Maxime Coste
6bcfc7268f Merge remote-tracking branch 'lenormf/fix-sh-operators' 2016-07-09 12:48:21 +01:00
Frank LENORMAND
3f71fb9640 Use POSIX fold instead of fmt 2016-07-08 18:02:39 +03:00
Frank LENORMAND
a605497553 Fix the autowrap script, use an external tool to wrap paragraphs 2016-07-08 13:50:47 +03:00
Frank LENORMAND
7419f8241a Fix operators highlighting in shell scripts 2016-07-08 13:13:08 +03:00
Maxime Coste
0c825af771 Merge remote-tracking branch 'lenormf/fix-kakrc-highlight' 2016-06-27 21:00:22 +01:00
Maxime Coste
df38d1539b Change ctags autoinfo to run on {Normal,Insert}Idle 2016-06-27 20:55:49 +01:00
Frank LENORMAND
b8c83a914a Update the keywords highlighted in kak files 2016-06-26 16:59:48 +03:00
Frank LENORMAND
3a4e258fde Print an error message when unsupported tmux functions are called
Closes #615
2016-06-23 20:07:51 +03:00
Maxime Coste
a2d76e27b0 Use a draft context for *.h c/cpp filetype decision 2016-06-22 20:49:58 +01:00
Maxime Coste
796a2ad63d Remove useless and non posix -e switch to awk invocations in rc scripts
Fixes #705
2016-06-21 19:00:41 +01:00
Frank LENORMAND
4747ba6be9 Allow man buffer to be redrawn automatically when the window is resized
Tweaked by Maxime Coste
Closes #671
2016-06-06 18:07:10 +01:00
Maxime Coste
f9260a6d3a Treat tags paths as relative to the tags file
Fixes #662
2016-05-24 22:48:15 +01:00
Alex Leferry 2
dc05497e8f fixes hooks removing 2016-05-24 19:37:51 +02:00
Maxime Coste
656b8c1c95 Fix clang-show-completion-info command 2016-05-11 23:57:21 +01:00
Maxime Coste
b7cf5d6001 Fix some uses of printf in git-tools.kak 2016-05-09 13:52:54 +01:00
Jimmy Thrasher
bab174b0ec Add swift.kak for Swift highlighting
No autoindent logic at the moment
2016-05-05 09:43:37 -04:00
Maxime Coste
9298efd19b Restore whitespace cleanup on InsertEnd in python.kak 2016-05-05 13:59:06 +01:00
Maxime Coste
8c5d3128ef static_words def style tweak in c-family.kak 2016-05-05 13:54:12 +01:00
Maxime Coste
13ab721f64 python.kak: restore cleaning up trailing whitespaces on newline 2016-05-05 13:50:49 +01:00
Maxime Coste
763bb5aed1 Use the current client tmux session when splitting a new client 2016-05-05 13:32:16 +01:00
Frank LENORMAND
a20f5fc6a2 Pass a generic pattern to printf calls, use echo when possible 2016-04-23 10:00:36 +03:00
Frank LENORMAND
664f382ab2 Convert a non-POSIX extended sed regex to a basic notation 2016-04-23 09:56:53 +03:00
Frank LENORMAND
bdb67d8227 Remove a non-POSIX and unneeded -r sed flag 2016-04-23 09:56:53 +03:00
Frank LENORMAND
3b2fd831f4 Replace non-POSIX -o test flag with a double pipe 2016-04-23 09:56:53 +03:00
Frank LENORMAND
262de38c3d Replace non-POSIX '<<<' here strings with a regular pipeline 2016-04-23 09:56:53 +03:00
Frank LENORMAND
84a21f8cfb Replace non POSIX calls to echo with printf %s 2016-04-23 09:56:53 +03:00
Maxime Coste
3f74dd2924 Remove uses of \< and \>, always use std regex compatible \b 2016-04-21 20:43:17 +01:00
Maxime Coste
1c43faeba9 Remove non-posix expansion in autorestore.kak 2016-04-20 13:25:38 +01:00
Mohammed Kareem
9dee71e7c3 Reformatting, no tabs and fixed indentation. 2016-04-13 02:29:56 +02:00
Mohammed Kareem
e97f99dbab Flake8 diagnostics support
This follows the clang diagnostics example and does the same thing. It
just uses the flake8 program and the regex's are a bit different.
2016-04-12 21:17:50 +02:00
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
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