irongit

A readme explaining how to make neovim work fast

added a better help menu for tmux

huncholanehuncholaneauthored
parent e62f415commit 871e64b1d4609a3b7f1c9683b5511eaff9846f25Browse files

2 files changed, +7 -1

+3-0bashrc.sh
@@ -2,3 +2,6 @@
22 alias nvim='~/nvim.appimage'
33 alias vim=nvim
44 alias nv=nvim
5+
6+# Make nice fzf for tmux prefix Keys
7+alias fzf-tmux-prefix='tmux list-keys -T prefix | grep -Po "(?<=prefix\s).*" | fzf --header="Prefixed Keys" --preview="echo {}" --border --preview-window=down:3:wrap | awk '\''{first = $1; $1=""; print $0}'\'' | sed '\''s/^ //g'\'
+4-1tmux.conf
@@ -11,8 +11,9 @@ set -g @treemux-tree-nvim-init-file '~/.tmux/plugins/treemux/configs/treemux_ini
1111 set -g @continuum-restore 'on'
1212 set -g xterm-keys on
1313 set -g set-clipboard on
14+set -g automatic-rename on
15+set -g automatic-rename-format "#{b:pane_current_path##*/} → #{pane_current_command}"
1416 TMUX_FZF_MENU=\
15-"lazygit\nlazygit\n"\
1617 "foo\necho 'Hello!'\n"\
1718 "bar\nls ~\n"\
1819 "sh\nsh ~/test.sh\n"
@@ -25,6 +26,8 @@ bind c new-window -c "#{pane_current_path}" \; display "Opened new window in #{p
2526 bind a attach-session -c "#{pane_current_path}" \; display "Attached current session to #{pane_current_path}"
2627 bind e show-environment
2728 bind g display-popup -E -w 90% -h 90% 'lazygit'
29+bind ? display-popup -E 'tmux list-keys -T prefix | grep -Po "(?<=prefix\s).*" | fzf --header="Prefixed Keys" --preview="echo {}" --border --preview-window=down:3:wrap | awk '\''{first = $1; $1=""; print $0}'\'' | sed '\''s/^ //g'\'' | xargs -I{} tmux {}'
30+
2831
2932
3033 # Keybindings