README.md 999 Bytes
Newer Older
Márton Szabó's avatar
Márton Szabó committed
1
2
3
# `elvish.kak`
[Kakoune](https://kakoune.org) language file for editing [Elvish](https://elvish.io) scripts.

notramo's avatar
notramo committed
4
5
6
7
8
9
# Contributing
You can give feedback using [Matrix](https://matrix.org) in the `#kakoune-plugins:grin.hu` room. (Matrix is an open source and decentralised messaging platform.)  
This project doesn't have an IRC channel. [Why?](https://matrix.org/faq/#what-is-the-difference-between-matrix-and-irc%3F)  
If you open an issue or merge request on GitLab, please mention @notramo in the description, to put the issue into my TO-DO list.

# Limitations
Márton Szabó's avatar
Márton Szabó committed
10
11
12
Curly brackets indentation only works when the opening bracket is the last character in the line, and the closing is the first in the line:
```elvish
# This works.
Márton Szabó's avatar
Márton Szabó committed
13

Márton Szabó's avatar
Márton Szabó committed
14
15
16
17
18
19
20
21
22
23
24
25
fn example {
  kak
  if $true {
    ls
    cat text.txt
    cd ~
  }
}
```

```elvish
# This don't work, because the opening bracket isn't the last character.
Márton Szabó's avatar
Márton Szabó committed
26
27
# However, it is less readable than the above formatting.

Márton Szabó's avatar
Márton Szabó committed
28
29
30
31
32
33
fn example { kak
if $true { ls
cat text.txt
cd ~ }
}
```