Minor changes to tmux key bindings and names; minor clean-up

This commit is contained in:
2025-08-28 21:38:15 -05:00
parent 624a06cc36
commit d4f05595d2
4 changed files with 19 additions and 36 deletions

View File

@@ -89,14 +89,6 @@ return {
})
-- `/` cmdline setup.
cmp.setup.cmdline('/', {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = 'buffer' }
}
})
-- `:` cmdline setup.
cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
@@ -107,21 +99,6 @@ return {
matching = { disallow_symbol_nonprefix_matching = false }
})
vim.diagnostic.config({
-- update_in_insert = true,
float = {
@@ -133,6 +110,5 @@ return {
prefix = "",
},
})
end
}

View File

@@ -7,6 +7,11 @@ bind-key C-Space send-prefix
set -g status-style 'bg=#111111 fg=#22cc00'
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
set-window-option -g mode-keys vi
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
# 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
# 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
# TODO: if i can combine this into the above when only 1 session remains, do so
bind-key W kill-session
# find and switching for sessions, include using tmux-sessionizer
unbind-key f; unbind-key C-f; unbind-key C-s
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"
bind-key C-s run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer existing"
bind-key C-h run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer hub"
bind-key C-l switch-client -l
bind-key C-o last-window
# creating new windows
bind-key n new-window
# find and switching for sessions, include using tmux-session-init
bind-key C-f run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init"
bind-key C-s run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init find-existing"
bind-key C-h run-shell "tmux neww $DIR_SCRIPTS/tmux-session-init hub"
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-p previous-window

View File

@@ -14,7 +14,7 @@ alias cls='clear;ls'
# shortcuts for executables
alias nv='nvim'
alias n='nvim'
alias tms='tmux-sessionizer'
alias tms='tmux-session-init'
# executable name overrides
alias ls='ls -F'
@@ -27,6 +27,7 @@ alias ppw='ping -c 2 pinewoods.xyz'
alias weather='curl wttr.in'
alias shrug='echo "¯\\_(ツ)_/¯"'
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
[[ -e "$HOME/.profile" ]] && source "$HOME/.profile" # TODO: do i want to source .profile?