kakounedotcom / connect.kak

Connect a program to Kakoune clients
https://kakoune.org
The Unlicense
88 stars 18 forks source link

Call `:send` from within kak [feature request] #42

Open sucrecacao opened 3 years ago

sucrecacao commented 3 years ago

(Might be a bug actually)

steps

create the following bash del.sh script:

#! /bin/bash
:send execute-keys `xd`

Open kakoune from kak-shell and run the command:

: %sh{ ./del.sh}

Currently nothing happen, but it would be nice if the xd keys got execute to delete a line.

This would allow the use of :send and :get within the plugin and script that get called by kakoune. And ease the writting

alexherbo2 commented 3 years ago

Try from Kakoune:

$ :send execute-keys xd

With your script:

$ del.sh

See also Custom connect commands.

sucrecacao commented 3 years ago

Try from Kakoune:

$ :send execute-keys xd

That didn't work neither. I'm running the last version of connect.kak