Remove 'almost sensible' feature

This commit is contained in:
Bruno Sutic 2015-06-24 16:17:49 +02:00
parent fff9a53723
commit e1aabe4b8a
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
3 changed files with 2 additions and 45 deletions

View File

@ -1,6 +1,7 @@
# Changelog # Changelog
### master ### master
- remove 'almost sensible' feature
### v2.3.0, 2015-06-24 ### v2.3.0, 2015-06-24
- update to support \*THE\* latest tmux version - update to support \*THE\* latest tmux version

View File

@ -76,25 +76,6 @@ allowing you to hold `Ctrl` and repeat `a + p`/`a + n` (if your prefix is
If prefix is `C-b`, above keys will be `C-b` and `b`.<br/> If prefix is `C-b`, above keys will be `C-b` and `b`.<br/>
If prefix is `C-z`, above keys will be `C-z` and `z`... you get the idea. If prefix is `C-z`, above keys will be `C-z` and `z`... you get the idea.
### Almost sensible options - deprecated
**Note**: this feature is deprecated and will be removed from `tmux-sensible`
in the next major release. The reason for this is to focus this plugin on doing
just one thing (and hopefully doing it well).<br/>
If you were using 'almost sensible' the path forward is to move all the
below options to your `.tmux.conf`.
Activate these by putting `set -g @almost-sensible 'on'` in `.tmux.conf`.
# C-a should be the Tmux default prefix, really
set -g prefix C-a
set -g mode-keys vi
# enable mouse features for terminals that support it
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
### Installation with [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) (recommended) ### Installation with [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) (recommended)
Add plugin to the list of TPM plugins in `.tmux.conf`: Add plugin to the list of TPM plugins in `.tmux.conf`:
@ -118,12 +99,7 @@ Add this line to the bottom of `.tmux.conf`:
run-shell ~/clone/path/sensible.tmux run-shell ~/clone/path/sensible.tmux
Reload TMUX environment: Reload TMUX environment with `$ tmux source-file ~/.tmux.conf`, and that's it.
# type this in terminal
$ tmux source-file ~/.tmux.conf
You might also want to restart your tmux server, just in case.
### Other goodies ### Other goodies

View File

@ -2,8 +2,6 @@
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ALMOST_SENSIBLE_OPTION="@almost-sensible"
# used to match output from `tmux list-keys` # used to match output from `tmux list-keys`
KEY_BINDING_REGEX="bind-key[[:space:]]\+\(-r[[:space:]]\+\)\?\(-T prefix[[:space:]]\+\)\?" KEY_BINDING_REGEX="bind-key[[:space:]]\+\(-r[[:space:]]\+\)\?\(-T prefix[[:space:]]\+\)\?"
@ -62,11 +60,6 @@ key_binding_not_changed() {
fi fi
} }
# "almost sensible" is deprecated
almost_sensible_on() {
[ "$(tmux show-option -gvq "$ALMOST_SENSIBLE_OPTION")" == "on" ]
}
main() { main() {
# OPTIONS # OPTIONS
@ -120,19 +113,6 @@ main() {
# super useful when using "grouped sessions" and multi-monitor setup # super useful when using "grouped sessions" and multi-monitor setup
tmux set-window-option -g aggressive-resize on tmux set-window-option -g aggressive-resize on
# ALMOST SENSIBLE OPTIONS - DEPRECATED
if almost_sensible_on; then
# C-a should be the Tmux default prefix, really
tmux set-option -g prefix C-a
tmux set-option -g mode-keys vi
# enable mouse features for terminals that support it
tmux set-option -g mouse-resize-pane on
tmux set-option -g mouse-select-pane on
tmux set-option -g mouse-select-window on
fi
# DEFAULT KEY BINDINGS # DEFAULT KEY BINDINGS
local prefix="$(prefix)" local prefix="$(prefix)"