add kakoune config

This commit is contained in:
Johann Dreo 2021-04-04 12:02:26 +02:00
commit 558a6cfd90
7 changed files with 484 additions and 9 deletions

22
kak_ide_open.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
# Forget the Oth argument (name of the script).
if [[ $# > 0 ]] ; then
files="$@"
else
files=""
while read line
do
files="$files $line"
done < /dev/stdin
fi
if kak -l | grep -q "ide" ; then
# Open files in the `main` window of the `ide` session of kakoune.
for file in "${files}"; do
echo "evaluate-commands -client main edit ${file}" | kak -p ide
done
else
terminator -p kakoune -e kak -s ide ${files}
fi