Skip to content

Commit e1aabe4

Browse files
author
Bruno Sutic
committed
Remove 'almost sensible' feature
1 parent fff9a53 commit e1aabe4

File tree

3 files changed

+2
-45
lines changed

3 files changed

+2
-45
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
### master
4+
- remove 'almost sensible' feature
45

56
### v2.3.0, 2015-06-24
67
- update to support \*THE\* latest tmux version

README.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,6 @@ allowing you to hold `Ctrl` and repeat `a + p`/`a + n` (if your prefix is
7676
If prefix is `C-b`, above keys will be `C-b` and `b`.<br/>
7777
If prefix is `C-z`, above keys will be `C-z` and `z`... you get the idea.
7878

79-
### Almost sensible options - deprecated
80-
81-
**Note**: this feature is deprecated and will be removed from `tmux-sensible`
82-
in the next major release. The reason for this is to focus this plugin on doing
83-
just one thing (and hopefully doing it well).<br/>
84-
If you were using 'almost sensible' the path forward is to move all the
85-
below options to your `.tmux.conf`.
86-
87-
Activate these by putting `set -g @almost-sensible 'on'` in `.tmux.conf`.
88-
89-
# C-a should be the Tmux default prefix, really
90-
set -g prefix C-a
91-
set -g mode-keys vi
92-
93-
# enable mouse features for terminals that support it
94-
set -g mouse-resize-pane on
95-
set -g mouse-select-pane on
96-
set -g mouse-select-window on
97-
9879
### Installation with [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) (recommended)
9980

10081
Add plugin to the list of TPM plugins in `.tmux.conf`:
@@ -118,12 +99,7 @@ Add this line to the bottom of `.tmux.conf`:
11899

119100
run-shell ~/clone/path/sensible.tmux
120101

121-
Reload TMUX environment:
122-
123-
# type this in terminal
124-
$ tmux source-file ~/.tmux.conf
125-
126-
You might also want to restart your tmux server, just in case.
102+
Reload TMUX environment with `$ tmux source-file ~/.tmux.conf`, and that's it.
127103

128104
### Other goodies
129105

sensible.tmux

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44

5-
ALMOST_SENSIBLE_OPTION="@almost-sensible"
6-
75
# used to match output from `tmux list-keys`
86
KEY_BINDING_REGEX="bind-key[[:space:]]\+\(-r[[:space:]]\+\)\?\(-T prefix[[:space:]]\+\)\?"
97

@@ -62,11 +60,6 @@ key_binding_not_changed() {
6260
fi
6361
}
6462

65-
# "almost sensible" is deprecated
66-
almost_sensible_on() {
67-
[ "$(tmux show-option -gvq "$ALMOST_SENSIBLE_OPTION")" == "on" ]
68-
}
69-
7063
main() {
7164
# OPTIONS
7265

@@ -120,19 +113,6 @@ main() {
120113
# super useful when using "grouped sessions" and multi-monitor setup
121114
tmux set-window-option -g aggressive-resize on
122115

123-
# ALMOST SENSIBLE OPTIONS - DEPRECATED
124-
125-
if almost_sensible_on; then
126-
# C-a should be the Tmux default prefix, really
127-
tmux set-option -g prefix C-a
128-
tmux set-option -g mode-keys vi
129-
130-
# enable mouse features for terminals that support it
131-
tmux set-option -g mouse-resize-pane on
132-
tmux set-option -g mouse-select-pane on
133-
tmux set-option -g mouse-select-window on
134-
fi
135-
136116
# DEFAULT KEY BINDINGS
137117

138118
local prefix="$(prefix)"

0 commit comments

Comments
 (0)