Canop/broot

Could not edit file in Kakoune by specifying client and server

已关闭

#869 创建于 2024年4月12日

 (3 条评论) (0 个反应) (0 位负责人)Rust (213 个派生)batch import
bughelp wanted

仓库指标

星标
 (9,383 个星标)
PR 合并指标
 (平均合并 53分钟) (30 天内合并 1 个 PR)

描述

Hi!

Here is excerpt from Kakoune docs:

if you need an actual explorer to interact with the editor, you can create a Kakoune script that will 
spawn the tool in question, which should in return send an "edit" command followed by the path 
of the file you selected to the current Kakoune session 
(e.g. echo "eval -client $kak_client edit /path/to/file" | kak -p $kak_session)

I'm trying to set Broot like this. Here is my verb:

{
        invocation: edit
        shortcut: e
        key: enter
        apply_to: text_file
        execution: "echo eval -client client0 edit {file} | kak -p vk"
        leave_broot: false
}

Unfortunately when I press Enter on a text-file just nothing happens (command is echoed, though):

If I run the same command manually form command line - everything works as expected, the file is successfully opened in specified Kakoune session:

What may be wrong here? Am I missing something? Thank you!

贡献者指南