Compare commits

..

5 commits

Author SHA1 Message Date
557d8422ea readme: Aclarar dependencias 2022-07-10 21:11:39 -03:00
9754648d92 readme: Agregar dependencia en bat y fd
https://github.com/alexherbo2/kakoune.cr/issues/32
2022-07-10 21:07:40 -03:00
c86b3e0319 tmux: Agregar config básica 2022-07-10 21:06:58 -03:00
c44bb1b4d5 kak: Preferir tmux por sobre Wayland
Y agregar comentario de donde encontré el snippet de tmux
2022-07-10 21:06:33 -03:00
0864cfa3fd kak: Agregar soporte de kcr para tmux 2022-07-10 20:56:54 -03:00
3 changed files with 21 additions and 3 deletions

View file

@ -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
View 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"

View file

@ -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
``` ```