Minor changes to tmux key bindings and names; minor clean-up
This commit is contained in:
@@ -89,14 +89,6 @@ return {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- `/` cmdline setup.
|
-- `/` cmdline setup.
|
||||||
cmp.setup.cmdline('/', {
|
|
||||||
mapping = cmp.mapping.preset.cmdline(),
|
|
||||||
sources = {
|
|
||||||
{ name = 'buffer' }
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- `:` cmdline setup.
|
|
||||||
cmp.setup.cmdline(':', {
|
cmp.setup.cmdline(':', {
|
||||||
mapping = cmp.mapping.preset.cmdline(),
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
@@ -107,21 +99,6 @@ return {
|
|||||||
matching = { disallow_symbol_nonprefix_matching = false }
|
matching = { disallow_symbol_nonprefix_matching = false }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
-- update_in_insert = true,
|
-- update_in_insert = true,
|
||||||
float = {
|
float = {
|
||||||
@@ -133,6 +110,5 @@ return {
|
|||||||
prefix = "",
|
prefix = "",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
@@ -7,6 +7,11 @@ bind-key C-Space send-prefix
|
|||||||
set -g status-style 'bg=#111111 fg=#22cc00'
|
set -g status-style 'bg=#111111 fg=#22cc00'
|
||||||
set -g base-index 0
|
set -g base-index 0
|
||||||
|
|
||||||
|
# unbind keys
|
||||||
|
unbind-key f; unbind-key C-f; unbind-key C-s
|
||||||
|
unbind-key c; unbind-key n; unbind-key p
|
||||||
|
unbind-key C-o; unbind-key C-n; unbind-key C-p; unbind-key C-l; unbind-key C-h
|
||||||
|
|
||||||
# vim-like movement stuff
|
# vim-like movement stuff
|
||||||
set-window-option -g mode-keys vi
|
set-window-option -g mode-keys vi
|
||||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||||
@@ -17,22 +22,23 @@ bind -r h select-pane -L
|
|||||||
bind -r l select-pane -R
|
bind -r l select-pane -R
|
||||||
|
|
||||||
# reload tmux.conf
|
# reload tmux.conf
|
||||||
bind r source-file "~/.config/tmux/tmux.conf" \; display-message "tmux.conf reloaded"
|
bind-key r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" \; display-message "tmux.conf reloaded"
|
||||||
|
|
||||||
# kill the current session
|
# kill the current session
|
||||||
# TODO: would it clash with other bindings to change these to C-q and C-w ?
|
# TODO: would it clash with other bindings to change these to C-q and C-w ?
|
||||||
|
# TODO: combine these into one command; must cover case when only 1 session remains
|
||||||
bind-key Q rename-session zzzz-temp-kill\; switch-client -p\; kill-session -t zzzz-temp-kill
|
bind-key Q rename-session zzzz-temp-kill\; switch-client -p\; kill-session -t zzzz-temp-kill
|
||||||
# TODO: if i can combine this into the above when only 1 session remains, do so
|
|
||||||
bind-key W kill-session
|
bind-key W kill-session
|
||||||
|
|
||||||
# find and switching for sessions, include using tmux-sessionizer
|
# creating new windows
|
||||||
unbind-key f; unbind-key C-f; unbind-key C-s
|
bind-key n new-window
|
||||||
unbind-key C-h; unbind-key C-l; unbind-key C-o; unbind-key C-n; unbind-key C-p
|
|
||||||
bind-key C-f run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer"
|
# find and switching for sessions, include using tmux-session-init
|
||||||
bind-key C-s run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer existing"
|
bind-key C-f run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init"
|
||||||
bind-key C-h run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer hub"
|
bind-key C-s run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init find-existing"
|
||||||
bind-key C-l switch-client -l
|
bind-key C-h run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init hub"
|
||||||
bind-key C-o last-window
|
bind-key -r C-l switch-client -l
|
||||||
|
bind-key -r C-o last-window
|
||||||
bind-key -r C-n next-window
|
bind-key -r C-n next-window
|
||||||
bind-key -r C-p previous-window
|
bind-key -r C-p previous-window
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@ alias cls='clear;ls'
|
|||||||
# shortcuts for executables
|
# shortcuts for executables
|
||||||
alias nv='nvim'
|
alias nv='nvim'
|
||||||
alias n='nvim'
|
alias n='nvim'
|
||||||
alias tms='tmux-sessionizer'
|
alias tms='tmux-session-init'
|
||||||
|
|
||||||
# executable name overrides
|
# executable name overrides
|
||||||
alias ls='ls -F'
|
alias ls='ls -F'
|
||||||
@@ -27,6 +27,7 @@ alias ppw='ping -c 2 pinewoods.xyz'
|
|||||||
alias weather='curl wttr.in'
|
alias weather='curl wttr.in'
|
||||||
alias shrug='echo "¯\\_(ツ)_/¯"'
|
alias shrug='echo "¯\\_(ツ)_/¯"'
|
||||||
alias journal="cd $DIR_HOME_BOX; $EDITOR .current-journal"
|
alias journal="cd $DIR_HOME_BOX; $EDITOR .current-journal"
|
||||||
|
alias ncspotkeys="$EDITOR $DIR_GIT_PROJECTS/other/ncspot/doc/users.md"
|
||||||
|
|
||||||
# source extensions and system-specific files
|
# source extensions and system-specific files
|
||||||
[[ -e "$HOME/.profile" ]] && source "$HOME/.profile" # TODO: do i want to source .profile?
|
[[ -e "$HOME/.profile" ]] && source "$HOME/.profile" # TODO: do i want to source .profile?
|
||||||
|
@@ -23,7 +23,7 @@ local target_path=''
|
|||||||
[[ $# -eq 1 ]] && target_path=$1 ||
|
[[ $# -eq 1 ]] && target_path=$1 ||
|
||||||
target_path=$(find $search_dirs -mindepth 1 -maxdepth 1 -type d | fzf)
|
target_path=$(find $search_dirs -mindepth 1 -maxdepth 1 -type d | fzf)
|
||||||
|
|
||||||
if [[ $target_path = "existing" ]]; then target_name=$(echo $existing_sessions | fzf);
|
if [[ $target_path = "find-existing" ]]; then target_name=$(echo $existing_sessions | fzf);
|
||||||
elif [[ $target_path = "hub" ]]; then target_name="hub" && target_path="$HOME";
|
elif [[ $target_path = "hub" ]]; then target_name="hub" && target_path="$HOME";
|
||||||
elif [[ -n $target_path ]]; then target_name=$(basename "$target_path" | tr . _);
|
elif [[ -n $target_path ]]; then target_name=$(basename "$target_path" | tr . _);
|
||||||
fi
|
fi
|
Reference in New Issue
Block a user