Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
sucrecacao edited this pageOct 4, 2020 ·2 revisions

kak -p send the commands written on the standard input to session session_id

echo "set-option global tabstop 5" | kak -p $kak_sessionecho "edit /path/to/file" | kak -p $kak_sessionecho "source /path/to/plugin.kak" | kak -p $kak_session

It's important to notice that this only work for command executed at a global scope, meaning any command you can put on a kakrc file.

A command likeexecute-keys will only work in a client, since it involves client-specific functionality such as "insert mode".To useexecute-keys withkak -p you need to callexecute-keys with the-client or-buffer option.

  • execute-keys -client will execute the keys with the current $client state ( cursor position, mode etc...)
  • execute-keys -buffer will execute the keys as if you are opening the buffer for the first time. It is handy if you want to affect a buffer without affecting a particular client.

Example:

echo "execute-keys -buffer /path/to/file ihello" | kak -p $kak_sessionecho "execute-keys -client $client ihello" | kak -p $kak_session
Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp