You can use :connect to create a new terminal with [e]dit , [b]uffer and VISUAL , EDITOR connected to the client.
If you open a file using the shell command edit or an application using the default editor, the file will be opened in the client from where :connect was executed.
You can also open a buffer by using the buffer command (or its alias b ). With no argument, buffer will list the available buffers.
Thanks @alexherbo2, its hard work just keeping up with you .
A workaround for osx find command with fzy just add file fzy.kak to Alex’s modules.
connect.kak/rc/modules/fzy.kak
provide-module connect-fzy %{
require-module connect
define-command fzy-files -params .. -file-completion -docstring 'Open selected files with fzy' %{
connect-terminal sh -c %{
edit $(find . -type f "$@" | fzy)
} -- %arg{@}
}
define-command fzy-buffers -params ..1 -buffer-completion -docstring 'Open selected buffers with fzy' %{
connect-terminal sh -c %{
buffer $(buffer | grep -F "$1" | fzy)
} -- %arg{@}
}
alias global fzy fzy-files
}