Gregory Pakosz
5641d3b3f5
fixed custom variables detection, fixes #613
11 months ago
Gregory Pakosz
fa601ed607
bind p to paste-buffer -p to match tmux defaults, closes #610
...
see https://github.com/tmux/tmux/issues/2248#issuecomment-638329932
11 months ago
sarumont
ccbfdf2091
added support for wl-clipboard, closes #589 , closes #606
...
see https://github.com/bugaevc/wl-clipboard
12 months ago
Luis Davim
562f9c128e
fixed <prefix>+e not working when EDITOR is set to 'emacsclient -t' and the default shell is zsh (2), fixes #593
...
${EDITOR//gvim/vim} and ${EDITOR//mvim/vim} have been introduced to fix #416 ,
however the replace all substitution is not POSIX and is not supported by termux
or dash
the proper fix for #416 is to set EDITOR to 'gvim -f' or 'mvim -f'
1 year ago
Gregory Pakosz
5fa30deb20
fixed <prefix>+e not working when EDITOR is set to 'emacsclient -t' and the default shell is zsh, fixes #591
1 year ago
Gregory Pakosz
b620a4f0fb
turn off history substitution in case it's been enabled (2), fixes #583
...
dash considers "set +H" is a syntax error and doesn't even evaluate the " || true" part
the workaround consists in trying "set +H" in a subshell first
1 year ago
Gregory Pakosz
68a909d4ca
turn off history substitution in case it's been enabled, closes #582
1 year ago
Gregory Pakosz
18a111ff93
added a way to mark set/bind/unbind commands as important in ~/.tmux.conf.local, closes #571
...
inspired by css, any set/bind/unbind command ending with #!important will be
executed honored, e.g.:
bind-key -T copy-mode-vi Escape send-keys -X clear-selection #!important
1 year ago
Gregory Pakosz
e865a8a1c1
added a way to selectively disable binding manipulation, closes #514
...
you can set the following variables to 'disabled':
- tmux_conf_new_window_retain_current_path
- tmux_conf_new_pane_retain_current_path
- tmux_conf_new_pane_reconnect_ssh
- tmux_conf_new_session_prompt
- tmux_conf_copy_to_os_clipboard
1 year ago
Gregory Pakosz
b69ae7c1a4
reworked pane / tty introspection (5), fixes #573
1 year ago
Gregory Pakosz
f1cc46812b
added RGB 24-bit colour support automatic detection
1 year ago
Alan Oliveira
6242e4974f
pass #{pane_current_path} to _fpp() and then to split-window
1 year ago
Gregory Pakosz
9a2387c0c7
added support for arguments to custom variables defined in ~/.tmux.conf.local (2), fixes #547
2 years ago
Gregory Pakosz
b3915221f8
added the '<prefix> + Shift + Tab' binding to move to the last session
2 years ago
Gregory Pakosz
05d73a54ed
made tpm integration and patching more robust, fixes #540
2 years ago
Gregory Pakosz
96d085eaa7
made _apply_bindings() work with tmux 3.4 stock bindings, fixes #541
2 years ago
Gregory Pakosz
985d64c82e
Revert "use send-keys -R to clear terminal and remove the sleep call", fixes #538
...
Instead, increase the sleep delay
2 years ago
Gregory Pakosz
a453b7fe60
use send-keys -R to clear terminal and remove the sleep call
2 years ago
Gregory Pakosz
0fe760fa6d
reworked pane / tty introspection (4), fixes #535
...
fixed _split_window_ssh()
2 years ago
Gregory Pakosz
d471ccc068
updated _username() in when the ssh client doesn't support %r in ProxyCommand
...
in such a case, we use -o IdentityFile='%%username%%/%r' and parse the output of ssh -v
2 years ago
Gregory Pakosz
c6bab99f05
updated _ssh_or_mosh_args()
...
relaxed the regex to accommodate for renamed ssh clients and to ignore the command if supplied
2 years ago
Gregory Pakosz
1ef9b68d80
improved _pane_info() accuracy by excluding ssh proxy connections, tee, and only
...
considering the first child of a process
ps output is sorted by controlling terminal then pid
in case of a cmd1 | cmd2 | cmd3 pipe chain, we only consider the first child of
the parent process, which is cmd1 in the majority of cases
the rare situation when pids wrap around isn't worth additional work
on Linux
- we sort ps output by lstart in hope precision is enough to make cmd1 always
appear first even when pids wrap around
- the more complex solution involves inspecting /proc/<pid>/fd/0 to filter out
processes being piped to
finally, while lsof was promising, it won't list processes owned by other users
unless run as root
2 years ago
Gregory Pakosz
69f744117a
updated tpm integration to display a message when one or more plugin(s) fails to run, closes #533
2 years ago
Gregory Pakosz
24f1222307
made background sleep process exit immediately when exiting tmux (2)
...
tmux < 2.8 doesn't support #{l:...}
2 years ago
Gregory Pakosz
c4220639ff
worked around Falcon.app agent slowing everything down (3)
...
tmux < 2.8 doesn't support regex substitutions so we use basename substitution instead
2 years ago
Gregory Pakosz
2751c215a1
do not unset @tpm-install , @tpm-update , @tpm-clean and @plugin variables after tpm has launched, fixes #531
2 years ago
Gregory Pakosz
ee1547cb6c
reworked pane / tty introspection (3)
...
fixed _pane_info() when running under Cygwin
2 years ago
Gregory Pakosz
0ad7f141dc
added word boundaries when replacing uptime_xxx variables (2)
...
use perl instead of sead as on macOS sed doesn't support \b to match word boundaries
2 years ago
Gregory Pakosz
0da7d5c3db
reworked pane / tty introspection (2)
...
fixed implementation and calls to _root()
2 years ago
Gregory Pakosz
1cd8ed93d3
added support for arguments to custom variables defined in ~/.tmux.conf.local
2 years ago
Gregory Pakosz
14bd87c7b2
added word boundaries when replacing uptime_xxx variables
2 years ago
Gregory Pakosz
90cdbbc32f
check connectivity to github.com before installing and/or updating tpm and plugins (2)
2 years ago
Gregory Pakosz
e8032e3ffb
set default-terminal to tmux-256color when available, fixes #205 , fixes #382 , closes #386
...
see https://github.com/tmux/tmux/wiki/FAQ#i-dont-see-italics-or-italics-and-reverse-are-the-wrong-way-round
2 years ago
Gregory Pakosz
a71d0d9f8d
made background sleep process exit immediately when exiting tmux, fixes #509
2 years ago
Gregory Pakosz
18775e12a4
reworked pane / tty introspection, fixes #403 , fixes #458
...
- renamed _tty_info() to _pane_info()
- pass both #{pane_pid} and #{pane_tty} to _pane_info()
- when inspecting ps output, walk down from #{pane_pid} to the child-most pid
2 years ago
Gregory Pakosz
a976b17bed
worked around Falcon.app agent slowing everything down (2), fixes #522
2 years ago
Gregory Pakosz
f8a5a08868
worked around Falcon.app agent slowing everything down, fixes #492
...
it appears the Falcon anti-malware product for end-points slows down ps -t /dev/ttysXXX
commands 🤷
the workaround consists in passing ttysXXX instead of /dev/ttysXXX and is achieved
by removing the /dev/ prefix in #{pane_tty} expansion with the help of formats
substitutions
2 years ago
Gregory Pakosz
df46ab2ba9
fixed tpm plugins not installing on CentOS 7, fixes #520
...
- drop git clone --shallow-submodules as it requires git >= 2.9.0
- display a message when one of the tpm script fails
2 years ago
Gregory Pakosz
a97e3021cc
updated tpm integration
...
- automatically delete tpm when not used
- automatically delete unused plugins
- install plugins when subsequently enabling then in ~/.tmux.conf.local
- use <prefix> + u to update plugins as <prefix> + U is bound to Urlview, fixes #507
2 years ago
Gregory Pakosz
4f332e6b17
fixed _battery_info() when pmset doesn't report a charge percentage, fixes #512
2 years ago
Gregory Pakosz
a63dc5c6a9
check connectivity to github.com before installing and/or updating tpm and plugins, fixes #513
2 years ago
Gregory Pakosz
4ef0626b6d
revert "mitigate tmux displaying its "<... not ready>" message, closes #496"
...
this reverts commit 67b1d38a87
.
the proposed mitigation causes flickering for some, see followups in #496
2 years ago
Gregory Pakosz
67b1d38a87
mitigate tmux displaying its "<... not ready>" message, closes #496
...
the "flickering" perceived when the "<... not ready>" message is long won't be
totally eliminated until tmux 3.3 though (commit 38c5788232e0e3abdd08ade55a9d4fbcda637df1)
2 years ago
Gregory Pakosz
1f91646af1
replaced printf '\n' calls by echo calls, fixes #479
...
TPM plugins further editing status-left or status-right may alter the content
in such a way that the line feed character becomes a space
2 years ago
Gregory Pakosz
760bf4fabd
made _apply_bindings() work with tmux 3.2 stock bindings, fixes #472
2 years ago
Gregory Pakosz
3bfec1a25a
made version detection more robust in case tmux executable is renamed (3), fixes #462
...
fixed a regression introduced by commit 8aefa1e798
that breaks
version detection for tmux HEAD for which 'tmux -V' prints e.g. tmux next-3.3
3 years ago
Gregory Pakosz
8aefa1e798
made version detection more robust in case tmux executable is renamed (2), fixes #457
3 years ago
Gregory Pakosz
4868ac4bd9
worked around broken /sys/class/power_supply/<supply_name>/capacity > 100, resolves #460
3 years ago
Gregory Pakosz
a752c41bca
fixed copy to os clipboard on macOS when xclip or xsel is installed, fixes #459
3 years ago
Gregory Pakosz
4bf9263fbd
fixed variable replacement in tmux_conf_theme_status_right and tmux_conf_theme_status_left (2), fixes #442
3 years ago