2018-08-03 10:50:24 +00:00
|
|
|
# Opciones basicas
|
2020-04-18 15:59:02 +00:00
|
|
|
set -g default-terminal 'tmux-256color'
|
|
|
|
set -as terminal-overrides ',alacritty:Tc'
|
2020-04-19 04:42:47 +00:00
|
|
|
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
|
|
|
|
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
|
2020-08-28 16:11:06 +00:00
|
|
|
# set -g set-titles-string "#S > #{pane_current_command} (#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}})"
|
2020-09-25 17:25:56 +00:00
|
|
|
set -g set-titles-string "#S > #{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}} (#T)"
|
2020-08-28 16:11:06 +00:00
|
|
|
set -g mode-keys vi
|
2020-06-03 14:23:45 +00:00
|
|
|
set -g history-limit 102400
|
2020-08-28 16:11:06 +00:00
|
|
|
set -sg escape-time 0
|
2018-07-21 04:46:57 +00:00
|
|
|
set -g set-clipboard on
|
|
|
|
set -g mouse on
|
2020-06-03 14:23:45 +00:00
|
|
|
set -gq utf8 on
|
2018-07-21 04:46:57 +00:00
|
|
|
set -gq status-utf8 on
|
2020-08-28 16:11:06 +00:00
|
|
|
set -wg wrap-search off
|
Hice un re quilombo de cosas.
Por un lado, comenze el destete de coc.nvim, para tal fin volvi a
incorporar fzf, lo cual no fue tan directo como dice la documentacion,
mas sobre eso en el blog.
Tambien segui modularizando la configuracion que ya estaba aprovechando los directorios que provee nvim.
Retoque bastante el tema de funciones y autcmds.
Modifique status y tab line ya que estaba, quedaron bastante cancheras ahora pero seguro le haga un par de cambios mas en el futuro.
Agregue mappings nuevos para funciones que ya existen y los relevantes de los plugins y tambien algunas opciones de configuracion. Adopte un par nuevos para ver como me resultan: Fern y GitGutter.
Reacomode todo el tema de colores y lo puse entre funciones y autocmds
a ver si cargan bien despues de un nested source, todavia no lo probe.
Por otro lado, retoque un par de scripts y adopte uno buenisimo
para sesiones de tmux con soporte para fzf y toda la bola, tengo que
ver si lo puedo tunear mas para elegir usarlo con dmenu o fzf segun
como se lo invoque. Agregue un par de cambios minimos de teclas,
tmux, y zsh. Ah y la configuracion de bat, porque no estaba, si bien
son 3 lineas o algo asi.
MUCHO laburo en el git config, porque estoy tratando de usarlo de una
manera mas "pro", de a poco lo estoy integrando mas con nvim. El primer
paso es probar estos commits larguisimos, y el resto lo iremos viendo.
2020-09-21 19:57:42 +00:00
|
|
|
set -g focus-events on
|
2018-01-24 19:32:47 +00:00
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Ventanas
|
2020-08-28 16:11:06 +00:00
|
|
|
set -wg automatic-rename on
|
2018-07-21 04:46:57 +00:00
|
|
|
set -g renumber-windows on
|
2020-08-28 16:11:06 +00:00
|
|
|
set -g allow-rename on
|
2020-03-11 19:16:16 +00:00
|
|
|
set -g base-index 1
|
2017-02-23 03:30:07 +00:00
|
|
|
|
2018-07-21 04:46:57 +00:00
|
|
|
# Panes
|
2020-06-03 14:23:45 +00:00
|
|
|
set -g pane-base-index 1
|
|
|
|
set -g aggressive-resize on
|
2020-06-18 01:38:39 +00:00
|
|
|
set -wg main-pane-width 100
|
2018-07-21 04:46:57 +00:00
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Notificaciones
|
2018-07-21 04:46:57 +00:00
|
|
|
set -g monitor-activity on
|
|
|
|
set -g bell-action none
|
|
|
|
|
|
|
|
# Statusbar
|
2020-06-03 14:23:45 +00:00
|
|
|
set -g pane-border-status bottom
|
|
|
|
set -g pane-border-format '──'
|
|
|
|
set -g automatic-rename-format '#{s/zsh//:pane_current_command}'
|
2020-06-18 01:38:39 +00:00
|
|
|
set -g pane-border-style fg=colour0,dim
|
|
|
|
set -g pane-active-border-style fg=colour0,dim
|
2020-03-11 19:16:16 +00:00
|
|
|
set -g set-titles on
|
2020-06-03 14:23:45 +00:00
|
|
|
set -g status-interval 60
|
2020-08-28 16:11:06 +00:00
|
|
|
set -g mode-style 'fg=#EEEEEE,bg=#75507B'
|
2019-04-14 15:53:12 +00:00
|
|
|
set -g message-command-style bg=colour0,fg=colour13
|
2020-08-28 16:11:06 +00:00
|
|
|
set -g message-style 'bg=#222222,fg=white,italics'
|
2018-07-21 04:46:57 +00:00
|
|
|
set -g status-style bg=default,fg=colour7
|
|
|
|
set -g status-left ''
|
2020-08-28 16:11:06 +00:00
|
|
|
set -g status-right '#(txbar) #[fg=colour134]%a %d #[fg=colour167]%R #[fg=colour7]#S'
|
2019-06-23 03:48:32 +00:00
|
|
|
set -g window-status-separator ' '
|
2019-04-14 15:53:12 +00:00
|
|
|
set -g window-status-current-style fg=colour3
|
2020-04-19 04:42:47 +00:00
|
|
|
set -g window-status-activity-style bg=default,fg=colour15,italics
|
2020-04-18 15:59:02 +00:00
|
|
|
set -g window-status-format '#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}}'
|
|
|
|
set -g window-status-current-format '#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}}'
|
2018-07-21 04:46:57 +00:00
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Limpiar atajos
|
2018-07-21 04:46:57 +00:00
|
|
|
unbind-key C-b
|
|
|
|
unbind-key '"'
|
|
|
|
unbind-key %
|
2020-04-14 04:07:37 +00:00
|
|
|
unbind-key -
|
2018-07-21 04:46:57 +00:00
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Prefijo
|
2020-08-28 16:11:06 +00:00
|
|
|
set -g prefix F12
|
|
|
|
set -g prefix2 M-a
|
|
|
|
bind a send-prefix
|
2018-07-21 04:46:57 +00:00
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Varios
|
2019-06-23 03:48:32 +00:00
|
|
|
bind-key D detach-client
|
2020-04-14 04:07:37 +00:00
|
|
|
bind-key S command-prompt -I "#S" "rename-session '%%'"
|
|
|
|
bind-key M command-prompt -p man: "split-window -fh 'man %1'"
|
2020-06-03 14:23:45 +00:00
|
|
|
bind-key R source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display "Config Reloaded"
|
2018-07-21 04:46:57 +00:00
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Dividir
|
2018-07-21 04:46:57 +00:00
|
|
|
bind-key | split-window -h -c "#{pane_current_path}"
|
|
|
|
bind-key - split-window -v -c "#{pane_current_path}"
|
2020-04-29 17:44:55 +00:00
|
|
|
bind-key ° split-window -fh -c "#{pane_current_path}"
|
2018-09-20 19:17:01 +00:00
|
|
|
bind-key _ split-window -fv -c "#{pane_current_path}"
|
2018-07-21 04:46:57 +00:00
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Cerrar
|
2018-07-21 04:46:57 +00:00
|
|
|
bind-key x kill-pane
|
2019-06-23 03:48:32 +00:00
|
|
|
bind-key X kill-window
|
2018-10-04 14:26:51 +00:00
|
|
|
bind-key Z kill-session
|
2020-04-14 04:07:37 +00:00
|
|
|
bind-key Q kill-server
|
|
|
|
bind-key % delete-buffer
|
|
|
|
|
|
|
|
# Paneles
|
2020-08-28 16:11:06 +00:00
|
|
|
bind-key k select-pane -U
|
|
|
|
bind-key j select-pane -D
|
|
|
|
bind-key h select-pane -L
|
|
|
|
bind-key l select-pane -R
|
2020-09-16 02:28:56 +00:00
|
|
|
bind-key M-S-Up swap-pane -s :. -t :.- \; select-pane -t :.-
|
|
|
|
bind-key M-S-Down swap-pane -s :. -t :.+ \; select-pane -t :.+
|
2018-07-21 04:46:57 +00:00
|
|
|
|
2019-12-28 16:20:17 +00:00
|
|
|
# Ventanas
|
2020-09-16 02:28:56 +00:00
|
|
|
bind-key C-j previous-window
|
|
|
|
bind-key C-k next-window
|
2020-08-28 16:11:06 +00:00
|
|
|
bind-key C-Up swap-window -t :-1 -d
|
|
|
|
bind-key C-Down swap-window -t :+1 -d
|
2019-06-23 03:48:32 +00:00
|
|
|
bind-key Tab choose-window
|
2020-06-03 14:23:45 +00:00
|
|
|
bind-key Enter new-window
|
2020-08-28 16:11:06 +00:00
|
|
|
bind-key Space last-window
|
|
|
|
bind-key w choose-tree -Zw "swap-window -t '%%'"
|
|
|
|
bind-key W command-prompt -I "#W" "rename-window '%%'"
|
2018-07-21 04:46:57 +00:00
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Copy/paste. Seleccionar texto con el mouse lo copia automaticamente al clipboard
|
2020-04-01 15:47:43 +00:00
|
|
|
bind-key b list-buffers
|
2020-03-11 19:16:16 +00:00
|
|
|
bind-key P choose-buffer
|
2020-04-01 15:47:43 +00:00
|
|
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
|
2020-04-14 04:07:37 +00:00
|
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
|
|
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
2020-08-28 16:11:06 +00:00
|
|
|
bind-key P capture-pane -S -32768 \; save-buffer "/tmp/printscreen" \; delete-buffer \; new-window -n "PRINTSCREEN" "$EDITOR /tmp/printscreen"
|
2018-09-20 19:17:01 +00:00
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Prender y apagar statusbar
|
2018-09-20 19:17:01 +00:00
|
|
|
bind-key & set-option -g status
|
2017-09-25 15:10:28 +00:00
|
|
|
|
2018-09-20 19:17:01 +00:00
|
|
|
# Mejor soporte para mouse
|
2017-09-25 15:10:28 +00:00
|
|
|
set -g @prevent-scroll-for-fullscreen-alternate-buffer 'on'
|
|
|
|
set -g @scroll-speed-num-lines-per-scroll '3'
|
2020-09-25 17:25:56 +00:00
|
|
|
run-shell ~/.local/apps/tmux-better-mouse-mode/scroll_copy_mode.tmux
|
2018-07-21 04:46:57 +00:00
|
|
|
|
2019-05-30 15:00:26 +00:00
|
|
|
# vim: set ft=tmux:
|