More efficient kakoune editing integration
This commit is contained in:
parent
d5989c525c
commit
d625bb2c15
5 changed files with 111 additions and 3 deletions
28
home/kakoune/kaktex
Executable file
28
home/kakoune/kaktex
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
function usage
|
||||
echo "Usage: "
|
||||
echo " kaktex set [client] [session]"
|
||||
echo " kaktex jump [file] [line]"
|
||||
exit 1
|
||||
end
|
||||
|
||||
if test (count $argv) -ne 3
|
||||
usage
|
||||
end
|
||||
|
||||
switch $argv[1]
|
||||
case "set"
|
||||
set -U _kaktex_client $argv[2]
|
||||
set -U _kaktex_session $argv[3]
|
||||
case "jump"
|
||||
echo "
|
||||
evaluate-commands -client $_kaktex_client %{
|
||||
evaluate-commands -try-client $_kaktex_client %{
|
||||
edit -- $argv[2] $argv[3]
|
||||
}
|
||||
}
|
||||
" | kak -p $_kaktex_session
|
||||
case '*'
|
||||
usage
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue