Commit Graph

10087 Commits

Author SHA1 Message Date
John Isom
565e3bef1d Update comment wording for deindentation 2020-07-26 20:46:47 -06:00
John Isom
0439128007 Add test cases for go closing brace indentation 2020-07-26 20:28:33 -06:00
John Isom
902f2831d8 Fix indentation rule for go.kak 2020-07-26 20:28:14 -06:00
John Isom
194cb17aae Fix indentation rule for rust.kak 2020-07-26 20:04:18 -06:00
John Isom
d2437b468d Add test cases for rust closing brace indentation 2020-07-26 20:03:54 -06:00
John Isom
46ea52a0a8 Add test cases for c-family closing brace indentation 2020-07-26 19:04:08 -06:00
John Isom
4b35a701c4 Fix indentation rule for c-family.kak 2020-07-26 18:56:53 -06:00
John Isom
64d165ec32 John Isom 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.
2020-07-25 21:59:52 -06:00
Johannes Altmanninger
9d33b57e49 doc: mention aliases <lt> and <gt> in keys.asciidoc
This information can also be found in in :doc mapping but I think this
doesn't hurt.
2020-07-25 20:07:18 +02:00
Johannes Altmanninger
35f27030c3 sh.kak: fix don't always deindent around "done"
Analogous to #3613
2020-07-25 20:07:18 +02:00
Johannes Altmanninger
48a53fecc3 doc: use angle brackets for page{up,down} like for other key names 2020-07-25 20:07:18 +02:00
Kylie McClain
600983b7bb asciidoc: Fix bullet face regular expression
Additionally, change the bolding regex to account for this.

Fixes #3605.
2020-07-23 03:03:13 -04:00
Ivan Tham
1bbc88953e
fix shell fi always deindenting after newline
Always align fi to the line before before deindenting it
```
    ...
        test
    fi%( )
```
always deindent fi on `o`
2020-07-22 22:27:12 +08:00
Frank LENORMAND
e0193f23db doc faq: Fix the prose 2020-07-21 17:36:45 +03:00
Maxime Coste
3e17a6d185 Fix command example to use correct syntax
Change the example to something that requires going through the
shell.
2020-07-21 20:47:44 +10:00
Maxime Coste
c2516f02f6 Do not trigger RegisterModified hooks on register about to be restored
This greatly reduces the amount of hooks triggered.
2020-07-21 20:27:42 +10:00
Maxime Coste
2df6a57201 Merge remote-tracking branch 'alexherbo2/ruby' 2020-07-21 19:56:43 +10:00
Maxime Coste
c3fea22399 Merge branch 'master' of https://github.com/aecepoglu/kakoune 2020-07-21 19:55:54 +10:00
Maxime Coste
ab25561da2 Merge remote-tracking branch 'occivink/doc-fix' 2020-07-21 19:54:20 +10:00
Frank LENORMAND
a84e3aeb85 doc faq: Document beam cursors being inconsistent 2020-07-21 09:08:35 +03:00
Alex Leferry 2
002e0f8790 Ruby: Better matching of divisions
Do not include prefix data in match.
2020-07-20 22:03:27 +02:00
aecepoglu
5396c288a0
ocaml quoted-strings 2020-07-20 13:07:45 +03:00
Maxime Coste
47ba36c66e Add a RegisterModified hook
This one has been a long time coming, I am still concerned this could
impact performance a lot. This hook does *not* trigger for capture
registers (0-9) or any other dynamic registers (that are not writable).

Fixes #859
2020-07-19 12:56:55 +10:00
Maxime Coste
5df8073c3c Code style tweaks 2020-07-19 12:54:41 +10:00
Maxime Coste
d4962d94ce Merge remote-tracking branch 'alexherbo2/crystal-style-change' 2020-07-18 14:00:33 +10:00
Maxime Coste
f8c4d7b69a Merge remote-tracking branch 'alexherbo2/ruby' 2020-07-18 13:54:31 +10:00
Maxime Coste
82a2bcc661 Merge remote-tracking branch 'pickfire/markdown' 2020-07-18 13:52:29 +10:00
Maxime Coste
3aef55be73 Fix highlighting of rgba colors in kakrc 2020-07-18 13:45:27 +10:00
Ivan Tham
34edb1a8e7 Highlight markdown code block with space 2020-07-11 21:06:12 +08:00
Ivan Tham
974684aa68 Improve rust comment closing handling
/// foo
    ///%( )

    /// foo
    /// %( )

With `c<ret>bar<esc>`,

    /// foo
    bar

    /// foo
    ///
    /// bar

Based on c-family block comment handling, this patch also add rust
block comment indentation.

This affects `o` behavior on empty comment but it allows a way more
efficient way to clear comments.
2020-07-09 23:02:50 +08:00
Olivier Perret
03525779fb [doc] Escape asciidoc meta-character 2020-07-09 12:00:01 +02:00
Alex Leferry 2
2219f0ef78 Ruby: Add support for %{…} percent string literals 2020-07-09 11:24:22 +02:00
Ivan Tham
dd6684a17d Split rust comment tests 2020-07-09 00:21:11 +08:00
Ivan Tham
21c38f37cd Fix rust character highlight 2020-07-09 00:21:11 +08:00
Ivan Tham
7bd459f774 Fix rust comment end 2020-07-09 00:21:11 +08:00
Ivan Tham
74e16a0623 Fix rust comment test 2020-07-09 00:21:11 +08:00
Ivan Tham
eac5986323 Fix rust doctest non-hidden macro highlight 2020-07-09 00:21:11 +08:00
Ivan Tham
e14cc26f1b Add default keyword for rust 2020-07-09 00:21:11 +08:00
Ivan Tham
7e09e7fcd5 Update rust rc comment 2020-07-09 00:21:11 +08:00
Maxime Coste
60dda1a597 Handle SIGTERM as a graceful exit, similar to the :kill! command
Do not backup modified files, go through graceful destruction of
singletons.

Fixes #3528
2020-07-07 20:41:40 +10:00
SolitudeSF
91914a8501
Fix syntax errors. 2020-07-06 14:55:54 +03:00
Simon Fowler
b875a1802c Implement smarter detection of windowing environments.
This patch centralises the loading of windowing environments, in order
to ensure that by default only a single module is loaded, rather than
the current code which can load multiple potentially incompatible
modules; and in order to provide the user with more control over the
loading of windowing modules.

The patch introduces a new str-list option `windowing_modules` which
defines an ordered list of windowing modules to attempt to load. Modules
are loaded in the order specified in the list until a module loads
without error, at which point the process finishes.

When loaded each windowing module tests the environment to determine
whether it should load (e.g. the tmux module tests to see if it's being
run within a tmux session), and if it determines that it should then it
completes its loading without error. If it doesn't detect an appropriate
environment then it returns an error, and the module loading logic tries
the next module.

The user can override the default `windowing_modules` list to specify
their preferred modules (i.e. they can put kitty ahead of tmux if that's
their preference, or they can leave out the x11 modules alltogether). In
addition, if the `windowing_modules` option is an empty list this
bypasses the environment detection logic completely, and allows the
modules to be loaded manually - this allows a user to replace the
windowing module loading logic with their own manual set up.
2020-07-05 22:48:31 +10:00
Maxime Coste
8abf18209e Fix selections getting unsorted on scroll
Fixes #3478
2020-07-05 10:13:57 +10:00
Thayne McCombs
dcab7d7485 Thayne McCombs 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.
2020-07-04 00:28:51 -06:00
Thayne McCombs
881c7b9f15 Add comment highlighting and options for asciidoc.
Fixes #3068.
2020-07-04 00:28:51 -06:00
Maxime Coste
f2cc7bc891 Add User hook support 2020-07-04 13:48:27 +10:00
Maxime Coste
e509a8e9cd Merge remote-tracking branch 'Screwtapello/document-file-expansion' 2020-07-03 21:08:10 +10:00
Maxime Coste
78fd817d9f Merge branch 'patch-1' of http://github.com/beardedsakimonkey/kakoune 2020-07-03 21:07:44 +10:00
Maxime Coste
1ca1e8fedc Merge branch 'master' of http://github.com/philgee1981/kakoune 2020-07-03 21:07:04 +10:00
Philman
63c4336a3c
finetuned the :send-text command
See discussions on [github](https://github.com/philgee1981/kakoune/pull/1) and on [the kakoune message board](https://discuss.kakoune.com/t/trying-to-run-kakoune-repl-with-st-and-dwm/1122/3)
2020-07-03 06:46:41 +02:00