A readme explaining how to make neovim work fast
added a better help menu for tmux
2 files changed, +7 -1
+3-0bashrc.sh
| @@ -2,3 +2,6 @@ | ||
| 2 | 2 | alias nvim='~/nvim.appimage' |
| 3 | 3 | alias vim=nvim |
| 4 | 4 | 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 | ||
| 11 | 11 | set -g @continuum-restore 'on' |
| 12 | 12 | set -g xterm-keys on |
| 13 | 13 | set -g set-clipboard on |
| 14 | +set -g automatic-rename on | |
| 15 | +set -g automatic-rename-format "#{b:pane_current_path##*/} → #{pane_current_command}" | |
| 14 | 16 | TMUX_FZF_MENU=\ |
| 15 | -"lazygit\nlazygit\n"\ | |
| 16 | 17 | "foo\necho 'Hello!'\n"\ |
| 17 | 18 | "bar\nls ~\n"\ |
| 18 | 19 | "sh\nsh ~/test.sh\n" |
| @@ -25,6 +26,8 @@ bind c new-window -c "#{pane_current_path}" \; display "Opened new window in #{p | ||
| 25 | 26 | bind a attach-session -c "#{pane_current_path}" \; display "Attached current session to #{pane_current_path}" |
| 26 | 27 | bind e show-environment |
| 27 | 28 | 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 | + | |
| 28 | 31 | |
| 29 | 32 | |
| 30 | 33 | # Keybindings |