mirror of
https://github.com/mawww/kakoune.git
synced 2024-10-05 17:18:00 +03:00
Page:
kak ‐p
Pages
Ambiguous Keys
Annotated examples of "Kakoune script"
Avoid the escape key
Bar
Bc
Building
Clang
Community
Ctags
Distinguish between focused and unfocused clients in Tmux
Documenting Plugins
EditorConfig
Eval Exec
Fuzzy finder
Git integration via Tig
Grep
HTML editing
Hacking
Header files
Highlighters
Home
IDE
Implementing user mode
Increment and Decrement
Indentation and Tabulation
Info boxes
Installing Plugins
Integrating Other CLI apps
JSON RPC
Jumplist
Kak daemon helper : 1 session per project
Languages
Line flags
Manipulating dates with Chronic
Migrating from Vim popular plugins
Migrating from Vim
Normal mode commands
OpenBSD
Plugin Managers
Qalculate
Ranger
Readline
Regex
Registers & Clipboard
Registers Clipboard
Reverse search
Running commands at startup
Rust
Selections combinations
Selections
Setting Plugin Options
Shell scripting
Status line
String syntax
TUI
The window scope
Tips for building from source
Undo tree
Wc
Windows tips
Wrapping
Writing Plugins
kak ‐p
macOS tips
zsh zle
0
kak ‐p
sucrecacao edited this page 2020-10-04 15:10:58 +02:00
kak -p
send the commands written on the standard input to session session_id
echo "set-option global tabstop 5" | kak -p $kak_session
echo "edit /path/to/file" | kak -p $kak_session
echo "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 like execute-keys
will only work in a client, since it involves client-specific functionality such as "insert mode".
To use execute-keys
with kak -p
you need to call execute-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_session
echo "execute-keys -client $client ihello" | kak -p $kak_session
Wiki Home Page
Onboarding
Keys
- Normal mode commands
- Avoid the escape key
- Implementing user mode (Leader key)
- Kakoune explain
- Kakoune TV
Editing
User Interface
Integration with OS and other tools
- Languages
- IDE
- Bar
- Kak daemon helper : 1 session per project
- Registers & Clipboard
- macOS tips
- Windows tips
- Fuzzy finders
- JSON-RPC UI
- bc
- Qalculate!
- wc
- Shell Scripting
- Manipulating dates with Chronic
- Integrating Other CLI apps