blob: b19af5fdbfbba68d3ff5fe58056d28ab1362c448 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# declare-option range-specs fold_ranges
# define-command fold-range -params 1 %{
# # TODO: Check if cursor is within range
# evaluate-commands %sh{
# if (echo "$kak_opt_fold_ranges" | grep -F "${1}" >/dev/null 2>&1); then
# echo "set-option -remove buffer fold_ranges '${1}|Texthere'"
# else
# echo "set-option -add buffer fold_ranges '${1}|Texthere'"
# fi
# }
# }
# define-command fold-enable %{
# add-highlighter global/folding replace-ranges fold_ranges
# }
# define-command fold-indent %{
# execute-keys '<a-i>i'
# fold-range %val{selection_desc}
# }
# fold-enable
|