Open alexherbo2 opened 3 years ago
I created alacritty.kak supporting alacritty-popup
(through class configuration). It is a first step toward it.
Implementation candidate:
hook global ModuleLoaded tmux %{
define-command tmux-terminal-popup -params 1.. -shell-completion -docstring '
tmux-terminal-popup <program> [<arguments>]: create a new terminal as a tmux popup
The program passed as argument will be executed in the new popup' \
%{
tmux-terminal-impl 'display-popup -E -h 75% -d #{pane_current_path}' %arg{@}
}
}
@vbauerster I don’t recall exactly the needed parameters, but from tmux#2475 I needed the following command:
tmux display-popup -d "$PWD" -K -E -R -- sh -c 'some-command "$@"' -- "$@"
-K and -R
have been removed since then.
Floating scratch terminal in tmux
Example of a use case:
It could be nice to introduce the notion of
popup
commands.See https://github.com/wez/wezterm/issues/270.