Fix tmux scrolling: enable smooth line-by-line scrolling
- Override default wheel bindings that caused 5-line jumps - Add custom bindings for smooth 1-line scrolling - Clean up trailing whitespaces in fish.nix - Adjust Alacritty scroll multiplier from 3 to 1
This commit is contained in:
parent
f72b7e6ddb
commit
9814feb179
2 changed files with 14 additions and 3 deletions
|
|
@ -82,4 +82,3 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,6 @@
|
||||||
set -g pane-base-index 1
|
set -g pane-base-index 1
|
||||||
|
|
||||||
# sensible defaults
|
# sensible defaults
|
||||||
set -g mouse on
|
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
set -g history-limit 100000
|
set -g history-limit 100000
|
||||||
set -g escape-time 20
|
set -g escape-time 20
|
||||||
|
|
@ -113,6 +112,19 @@
|
||||||
# split with dash and vbar
|
# split with dash and vbar
|
||||||
bind | split-window -h -c "#{pane_current_path}"
|
bind | split-window -h -c "#{pane_current_path}"
|
||||||
bind - split-window -v -c "#{pane_current_path}"
|
bind - split-window -v -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
# Enable mouse with smooth scrolling
|
||||||
|
set -g mouse on
|
||||||
|
# Override the default wheel bindings that cause 5-line jumps
|
||||||
|
unbind -T copy-mode WheelUpPane
|
||||||
|
unbind -T copy-mode WheelDownPane
|
||||||
|
unbind -T copy-mode-vi WheelUpPane
|
||||||
|
unbind -T copy-mode-vi WheelDownPane
|
||||||
|
# Bind smooth scrolling (1 line at a time)
|
||||||
|
bind -T copy-mode WheelUpPane send-keys -X scroll-up
|
||||||
|
bind -T copy-mode WheelDownPane send-keys -X scroll-down
|
||||||
|
bind -T copy-mode-vi WheelUpPane send-keys -X scroll-up
|
||||||
|
bind -T copy-mode-vi WheelDownPane send-keys -X scroll-down
|
||||||
'';
|
'';
|
||||||
plugins = with pkgs.tmuxPlugins; [
|
plugins = with pkgs.tmuxPlugins; [
|
||||||
catppuccin
|
catppuccin
|
||||||
|
|
@ -143,7 +155,7 @@
|
||||||
startup_mode = "Fullscreen";
|
startup_mode = "Fullscreen";
|
||||||
option_as_alt = "Both";
|
option_as_alt = "Both";
|
||||||
};
|
};
|
||||||
scrolling = { history = 10000; multiplier = 3; };
|
scrolling = { history = 10000; multiplier = 1; };
|
||||||
font = {
|
font = {
|
||||||
size = 13.0;
|
size = 13.0;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue