Crates.io | kak-popup |
lib.rs | kak-popup |
version | 0.6.2-beta |
source | src |
created_at | 2023-06-04 00:43:46.203936 |
updated_at | 2024-09-22 13:58:53.004123 |
description | kakoune popups |
homepage | |
repository | https://github.com/enricozb/popup.kak |
max_upload_size | |
id | 881925 |
size | 74,567 |
Terminals inside kakoune.
tmux
must be installed. It is not required that kakoune runs under tmux
, just that it's installed.
cargo install kak-popup
.evaluate-commands %sh{kak-popup init}
to your kakrc
.rc/popup.kak
into your autoload directory.kak-popup
with cargo or nix.Within kakoune
popup [<switches>] <shell-command> <shell-arg1>...: create a modal running
<shell-command> in a terminal. Switches are prefixed with --. The command
and arguments can be passed as a single string or as a series of arguments,
for example, the following two invocations are equivalent:
popup --title open %{fish -c "some fish command"}
popup --title open -- fish -c "some fish command"
Popups can be exited using <c-space>.
Switches:
--kak-script <commands> kakoune script to execute after the shell-command
exits, providing any standard output through
%opt{popup_output}
--title <title> the title of the modal
--input <input> input passed as the stdin of <shell-command>
--on-err <on-err> what to do on non-zero exit status
warn show a modal with stderr
dismiss dismiss modal without running KAK_SCRIPT
ignore ignore status and always run KAK_SCRIPT
--padding <int> the amount of padding around the height and width
of the popup. defaults to 16.
These are some possible ways to use popup.kak:
# open a shell
popup fish
# a file picker
popup --title open --kak-script %{edit %opt{popup_output}} -- fzf