Compare commits
5 commits
c4c5b5fc9a
...
557d8422ea
Author | SHA1 | Date | |
---|---|---|---|
557d8422ea | |||
9754648d92 | |||
c86b3e0319 | |||
c44bb1b4d5 | |||
0864cfa3fd |
3 changed files with 21 additions and 3 deletions
|
@ -58,7 +58,17 @@ hook global WinSetOption filetype=go %{
|
||||||
# ------------
|
# ------------
|
||||||
|
|
||||||
eval %sh{
|
eval %sh{
|
||||||
test -n "$WAYLAND_DISPLAY" && echo '
|
# https://github.com/alexherbo2/kakoune.cr/issues/33#issuecomment-1112160325
|
||||||
|
if test -n "$TMUX"; then echo "
|
||||||
|
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% -w 75% -d #{pane_current_path}' %arg{@}
|
||||||
|
}
|
||||||
|
alias global terminal-popup tmux-terminal-popup
|
||||||
|
"
|
||||||
|
elif test -n "$WAYLAND_DISPLAY"; then echo '
|
||||||
hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" }
|
hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" }
|
||||||
define-command terminal-popup -params 1.. -shell-completion %{
|
define-command terminal-popup -params 1.. -shell-completion %{
|
||||||
set-option global termcmd "footclient --app-id=fzf sh -c"
|
set-option global termcmd "footclient --app-id=fzf sh -c"
|
||||||
|
@ -66,6 +76,7 @@ eval %sh{
|
||||||
set-option global termcmd "footclient sh -c"
|
set-option global termcmd "footclient sh -c"
|
||||||
}
|
}
|
||||||
'
|
'
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# ------------
|
# ------------
|
||||||
|
|
5
.config/tmux/tmux.conf
Normal file
5
.config/tmux/tmux.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
set -sg escape-time 20
|
||||||
|
set -g history-limit 100000
|
||||||
|
|
||||||
|
set -g default-terminal "tmux-256color"
|
||||||
|
set -ga terminal-overrides ",*:Tc"
|
|
@ -31,8 +31,10 @@ Probablemente incompleto.
|
||||||
apk add zsh zsh-vcs fzf kak
|
apk add zsh zsh-vcs fzf kak
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Para desktop/IDE
|
#### Para editor mejorado
|
||||||
|
|
||||||
|
(requiere tmux o Wayland+foot)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
apk add kakoune-cr kakoune-cr-commands foot sway
|
apk add kakoune-cr kakoune-cr-commands bat fd
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue