adding zaw as an external module
This commit is contained in:
parent
413b717484
commit
16eceabb03
4 changed files with 70 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -7,3 +7,6 @@
|
||||||
[submodule "modules/completion/external"]
|
[submodule "modules/completion/external"]
|
||||||
path = modules/completion/external
|
path = modules/completion/external
|
||||||
url = https://github.com/zsh-users/zsh-completions.git
|
url = https://github.com/zsh-users/zsh-completions.git
|
||||||
|
[submodule "modules/zaw/external"]
|
||||||
|
path = modules/zaw/external
|
||||||
|
url = git://github.com/zsh-users/zaw.git
|
||||||
|
|
34
modules/zaw/README.md
Normal file
34
modules/zaw/README.md
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
Zaw
|
||||||
|
===
|
||||||
|
|
||||||
|
Loads and configures Zaw from the [zsh-users/zaw][1] project.
|
||||||
|
|
||||||
|
Styles
|
||||||
|
======
|
||||||
|
|
||||||
|
```
|
||||||
|
':prezto:module:zaw:filter-select:highlight' selected
|
||||||
|
':prezto:module:zaw:filter-select:highlight' matched
|
||||||
|
':prezto:module:zaw:filter-select:highlight' title
|
||||||
|
```
|
||||||
|
|
||||||
|
Bindings
|
||||||
|
========
|
||||||
|
|
||||||
|
To use zaw as your default history search. Add the following to your .zpreztorc:
|
||||||
|
|
||||||
|
```
|
||||||
|
zstyle ':prezto:module:zaw' default-history-search 'yes'
|
||||||
|
```
|
||||||
|
|
||||||
|
More details can be found on the [zsh-users/zaw][1] project's Readme.
|
||||||
|
|
||||||
|
Authors
|
||||||
|
-------
|
||||||
|
|
||||||
|
*The authors of this module should be contacted via the [issue tracker][2].*
|
||||||
|
|
||||||
|
- [Santiago Suarez Ordoñez](https://github.com/santiycr)
|
||||||
|
|
||||||
|
[1]: https://github.com/zsh-users/zaw
|
||||||
|
[2]: https://github.com/sorin-ionescu/prezto/issues
|
1
modules/zaw/external
Submodule
1
modules/zaw/external
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit d0f603203b23cf30050c6597559d6b5a6336d92f
|
32
modules/zaw/init.zsh
Normal file
32
modules/zaw/init.zsh
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#
|
||||||
|
# Loads zaw plugin in prezto
|
||||||
|
#
|
||||||
|
# Authors:
|
||||||
|
# Santiago Suarez Ordoñez <santiycr@gmail.com>
|
||||||
|
#
|
||||||
|
|
||||||
|
# Source plugin file.
|
||||||
|
source "${0:h}/external/zaw.zsh"
|
||||||
|
|
||||||
|
# Add custom shortcuts.
|
||||||
|
if zstyle -t ':prezto:module:zaw' default-history-search; then
|
||||||
|
bindkey '^R' zaw-history
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Setup custom syntax highlighting.
|
||||||
|
zstyle -s ':prezto:module:zaw:filter-select:highlight' selected 'SELECTED' \
|
||||||
|
|| SELECTED='fg=blue,underline'
|
||||||
|
zstyle ':filter-select:highlight' selected "$SELECTED"
|
||||||
|
|
||||||
|
zstyle -s ':prezto:module:zaw:filter-select:highlight' matched 'MATCHED' \
|
||||||
|
|| MATCHED='fg=yellow'
|
||||||
|
zstyle ':filter-select:highlight' matched "$MATCHED" || 'fg=yellow'
|
||||||
|
|
||||||
|
zstyle -s ':prezto:module:zaw:filter-select:highlight' title 'TITLE' \
|
||||||
|
|| TITLE='fg=yellow,underline'
|
||||||
|
zstyle ':filter-select:highlight' title "$TITLE"
|
||||||
|
|
||||||
|
zstyle ':filter-select' max-lines 15
|
||||||
|
zstyle ':filter-select' rotate-list yes
|
||||||
|
zstyle ':filter-select' case-insensitive yes
|
||||||
|
zstyle ':filter-select' extended-search yes
|
Loading…
Add table
Reference in a new issue