Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

Moved kak-exit-hook into rc #5

Merged
merged 2 commits into from
Feb 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ You have to have lf executable in PATH.
```
# Kakoune integration

cmd kak-exit-hook &{{
echo "eval -client $kak_client set-option global lf_id none" | kak -p "$kak_session"
lf -remote "send $id quit"
}}

&{{
if [ "$KAKLF" = "yes" ]; then
echo "eval -client $kak_client set-option global lf_id %{$id}" | kak -p "$kak_session"
Expand Down
4 changes: 4 additions & 0 deletions rc/lf.kak
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ str lf_terminal_cmd lf-spawn-new
# When lf_id is set, configure lf instance
hook -group lf global GlobalSetOption 'lf_id=\d+' %{
lf-send-configuration '
cmd kak-exit-hook &{{
echo "eval -client $kak_client set-option global lf_id none" | kak -p "$kak_session"
lf -remote "send $id quit"
}}
cmd kak-edit &{{
for c in $fx
do
Expand Down