diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-11-14 11:22:13 -0800 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-11-14 11:22:13 -0800 |
| commit | 213d56ebc1819461b5d8dfe06797fcaaddc4088c (patch) | |
| tree | 71948241630463239217a721e9a9874c6ebd0ea1 | |
| parent | Release v0.5.0 (diff) | |
| download | tmux-toggle-term-213d56ebc1819461b5d8dfe06797fcaaddc4088c.zip | |
Update README for prefix default change
| -rw-r--r-- | README.md | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -21,13 +21,13 @@ run-shell '~/.tmux/plugins/tmux-toggle-term/src/main.sh' ### Toggle Split Terminal -`C-;` → Toggle a split terminal for the current tmux window +`Prefix + C-;` → Toggle a split terminal for the current tmux window  ### Toggle Floating Terminal -`C-f` → Toggle a global floating popup terminal +`Prefix + C-f` → Toggle a global floating popup terminal  @@ -55,21 +55,21 @@ set -g @toggle-term-split-key 'M-t' set -g @toggle-term-float-key 'M-f' ``` -### Using Tmux Prefix Keys +### Binding Without the Tmux Prefix -By default, the plugin binds keys don't require the tmux prefix. If you prefer to -use the tmux prefix key, you can enable it by setting the use-prefix options: +By default, the plugin binds its keys in the tmux prefix table, so you press the +tmux prefix before the key. If you'd rather trigger the toggles directly, +without the prefix, disable the `toggle-term-<mode>-use-prefix` options: ```tmux -set -g @toggle-term-float-key 'f' -set -g @toggle-term-float-use-prefix 'true' +set -g @toggle-term-float-key 'M-f' +set -g @toggle-term-float-use-prefix 'false' -set -g @toggle-term-split-key ';' -set -g @toggle-term-split-use-prefix 'true' +set -g @toggle-term-split-key 'M-t' +set -g @toggle-term-split-use-prefix 'false' ``` With the above configuration: -- **Prefix + f** → Toggle floating terminal -- **Prefix + ;** → Toggle split terminal - +- **M-f** → Toggle floating terminal +- **M-t** → Toggle split terminal |