add kakoune config
This commit is contained in:
parent
831c51fcec
commit
558a6cfd90
7 changed files with 484 additions and 9 deletions
22
kak_ide_open.sh
Executable file
22
kak_ide_open.sh
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue