mirror of
https://github.com/tmux-plugins/tmux-sensible.git
synced 2025-09-09 15:47:46 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
e725d88256 | |||
ba0b52d999 | |||
b5a1c2ade5 | |||
22d1305cb7 |
@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
### master
|
### master
|
||||||
|
|
||||||
|
### v2.2.0, 2015-02-10
|
||||||
|
- bugfix in `key_binding_not_set`: the regex is now properly detecting key
|
||||||
|
bindings with `-r` flag.
|
||||||
|
- enable `aggressive-resize`
|
||||||
|
|
||||||
### v2.1.0, 2014-12-12
|
### v2.1.0, 2014-12-12
|
||||||
- check before binding `prefix + prefix` (@m1foley)
|
- check before binding `prefix + prefix` (@m1foley)
|
||||||
- enable `focus-events`
|
- enable `focus-events`
|
||||||
|
@ -51,6 +51,9 @@ Inspired by [vim-sensible](https://github.com/tpope/vim-sensible).
|
|||||||
# focus events enabled for terminals that support them
|
# focus events enabled for terminals that support them
|
||||||
set -g focus-events on
|
set -g focus-events on
|
||||||
|
|
||||||
|
# super useful when using "grouped sessions" and multi-monitor setup
|
||||||
|
setw -g aggressive-resize on
|
||||||
|
|
||||||
### Key bindings
|
### Key bindings
|
||||||
|
|
||||||
# easier and faster switching between next/prev window
|
# easier and faster switching between next/prev window
|
||||||
@ -130,6 +133,8 @@ You might also find these useful:
|
|||||||
improve tmux search and reduce mouse usage
|
improve tmux search and reduce mouse usage
|
||||||
- [pain control](https://github.com/tmux-plugins/tmux-pain-control)
|
- [pain control](https://github.com/tmux-plugins/tmux-pain-control)
|
||||||
useful standard bindings for controlling panes
|
useful standard bindings for controlling panes
|
||||||
|
- [resurrect](https://github.com/tmux-plugins/tmux-resurrect)
|
||||||
|
persists tmux environment across system restarts
|
||||||
|
|
||||||
### License
|
### License
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ server_option_value_not_changed() {
|
|||||||
|
|
||||||
key_binding_not_set() {
|
key_binding_not_set() {
|
||||||
local key="$1"
|
local key="$1"
|
||||||
if $(tmux list-keys | grep -q "bind-key[[:space:]]\+${key}"); then
|
if $(tmux list-keys | grep -q "bind-key[[:space:]]\+\(-r[[:space:]]\+\)\?${key}"); then
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
@ -110,6 +110,9 @@ main() {
|
|||||||
# focus events enabled for terminals that support them
|
# focus events enabled for terminals that support them
|
||||||
tmux set-option -g focus-events on
|
tmux set-option -g focus-events on
|
||||||
|
|
||||||
|
# super useful when using "grouped sessions" and multi-monitor setup
|
||||||
|
tmux set-window-option -g aggressive-resize on
|
||||||
|
|
||||||
# ALMOST SENSIBLE OPTIONS - DEPRECATED
|
# ALMOST SENSIBLE OPTIONS - DEPRECATED
|
||||||
|
|
||||||
if almost_sensible_on; then
|
if almost_sensible_on; then
|
||||||
|
Reference in New Issue
Block a user