document new options

This commit is contained in:
Jorge Morante 2017-05-02 17:41:30 +02:00
parent f2e8742057
commit 72f4f46208
1 changed files with 55 additions and 6 deletions

View File

@ -78,13 +78,26 @@ Reload TMUX conf by running:
# Configuration # Configuration
You can change the key that invokes **tmux-fingers**: NOTE: for changes to take effect, you'll need to source again your `.tmux.conf` file.
* [@fingers-key](#fingers-key)
* [@fingers-patterns-N](#fingers-patterns-N)
* [@fingers-copy-command](#fingers-copy-command)
* [@fingers-compact-hints](#fingers-compact-hints)
* [@fingers-hint-position](#fingers-hint-position)
* [@fingers-hint-position-nocompact](#fingers-hint-position-nocompact)
* [@fingers-hint-format](#fingers-hint-format)
* [@fingers-hint-format-nocompact](#fingers-hint-format-nocompact)
* [@fingers-highlight-format](#fingers-highlight-format)
* [@fingers-highlight-format-nocompact](#fingers-highlight-format-nocompact)
## @fingers-key ## @fingers-key
`default: F` `default: F`
Customize how to enter copy mode. Always preceded by prefix: `prefix + @fingers-key` Customize how to enter fingers mode. Always preceded by prefix: `prefix + @fingers-key`
For example:
``` ```
set -g @fingers-key F set -g @fingers-key F
@ -109,10 +122,6 @@ Patterns are case insensitive, and grep's extended syntax ( ERE ) should be used
If the introduced regexp contains an error, an error will be shown when If the introduced regexp contains an error, an error will be shown when
invoking the plugin. invoking the plugin.
It's recommended to install `gawk` for better support of custom
patterns: some things like interval expressions do not work in built-in `awk`
in OSX/BSD systems.
## @fingers-copy-command ## @fingers-copy-command
By default **tmux-fingers** will just yank matches using tmux clipboard ( or By default **tmux-fingers** will just yank matches using tmux clipboard ( or
@ -153,6 +162,46 @@ However for small hints this can be troublesome: a path as small as `/a/b`
would have half of its original content concealed. If that's the case you can would have half of its original content concealed. If that's the case you can
quickly toggle off compact mode by pressing `<space>`. quickly toggle off compact mode by pressing `<space>`.
## @fingers-hint-position
`default: "left"`
Control the position where the hint is rendered. Possible values are `"left"`
and `"right"`.
## @fingers-hint-position-nocompact
`default: "right"`
Same as above, used when `@fingers-compact-hints` is set to `0`.
## @fingers-hint-format
`default: "#[fg=yellow,bold]%s"`
You can customize the colors using the same syntax used in `.tmux.conf` for styling the status bar. You'll need to include the `%s` placeholder in your custom format, that's where the content will be rendered.
Check all supported features [here](https://github.com/morantron/tmux-printer).
## @fingers-hint-format-nocompact
`default: "#[fg=yellow,bold][%s]"`
Same as above, used when `@fingers-compact-hints` is set to `0`.
## @fingers-highlight-format
`default: "#[fg=yellow,bold,dim]%s"`
Custom format for the highlighted match. See [@fingers-hint-format](#fingers-hint-format) for more details.
## @fingers-highlight-format-nocompact
`default: "#[fg=yellow,bold,dim]%s"`
Same as above, used when `@fingers-compact-hints` is set to `0`.
# Acknowledgements and inspiration # Acknowledgements and inspiration
This plugin is heavily inspired by This plugin is heavily inspired by