Takeshi Banse
07588d2165
Make core syntax highlighting a function.
Make `_zsh_highlight-zle-buffer` just a hands-off.
Now, `_zsh_highlight-zle-buffer` calls each ZSH_HIGHLIGHT_FUNCTIONS
in turn. The former `_zsh_highlight-zle-buffer` is renamed to
`_zsh_main-highlight.`
Signed-off-by: Takeshi Banse <takebi@laafc.net>
преди 13 години
Julien Nicoulaud
e162de6f51
Add BSD license
(http://www.zsh.org/mla/users//2011/msg00030.html )
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
преди 13 години
Julien Nicoulaud
0392fdc46a
Issue 34: Do not highlight non commands as commands.
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
преди 13 години
Arlen Cuss
a40d777860
Use ${(Q)arg} to expand a level of quotes, such that files/directories with spaces in their name (escaped with backslash) are noticed correctly.
преди 13 години
Takeshi Banse
d2f641ca50
Carefully rebind the $clean_event.
% bindkey "^I" complete-word
% bi<TAB>
If we had not source the zsh-syntax-highlighting.zsh, it could
complete something. This is due to that `complete-word` will be
rebinded with 'zle -N $clean_event'.
Signed-off-by: Takeshi Banse <takebi@laafc.net>
преди 13 години
Takeshi Banse
2fd0845b77
Recreate the completion widget with its own function.
Currently, each completion widgets will be re-installed, but its
function will be statically associated with `_main_complete`.
We can get this function name via $widget[$event] which is the
zsh's zsh/zleparameter module's feature. We can use this information
for `zle -C`ing.
Signed-off-by: Takeshi Banse <takebi@laafc.net>
преди 13 години
Takeshi Banse
802583ea94
Make this clause function and call it afterward.
Signed-off-by: Takeshi Banse <takebi@laafc.net>
преди 13 години
Julien Nicoulaud
f962bdf1e7
Fix regression
преди 13 години
Julien Nicoulaud
83372a5cee
Issue 38: Conflict with command-not-found
преди 13 години
Julien Nicoulaud
fc5caa4e2d
Fix error when sourcing twice the script
преди 13 години
Julien Nicoulaud
43e31cdc58
Fix error when source twice the script
преди 13 години
Mounier Florian
7e963c6c7e
Fix issue 31
преди 13 години
Julien Nicoulaud
0a50e2a830
Issue 32: 'xargs' and 'zargs' are followed by commands (thanks to claytron)
преди 13 години
Julien Nicoulaud
a9da4e6c76
Harmonize exported variables names
преди 13 години
Julien Nicoulaud
60842aa75b
Define a style for hashed commands
преди 13 години
Sorin Ionescu
a7746077bf
Added hashed commands highlighting to zsh-syntax-highlighting oh-my-zsh plugin.
преди 13 години
Julien Nicoulaud
b45891cdf4
Fix variable scope and make variable names even more obvious
преди 13 години
Julien Nicoulaud
0e55450a0b
Issue 26: The script unplugs user defined events
преди 13 години
Mounier Florian
701cc303fe
Highlighting bracket pair, when one is under the cursor (Issue 24)
преди 13 години
Mounier Florian
f78e444451
Fix highlighting on new line with same buffer
преди 13 години
Mounier Florian
a765f76656
Remove the huge zle functions array and replace it with zle -la output
преди 13 години
Mounier Florian
1da1aeb6f8
Simple rainbow style bracket matching
преди 13 години
Julien Nicoulaud
a640bb8b96
Fix for aliases (from zsh-users)
http://www.zsh.org/mla/users/2011/msg00005.html
преди 13 години
Mounier Florian
5afa8fcb32
Add all zle hookable functions
преди 13 години
Julien Nicoulaud
0c138706a7
'where' and 'whereis' are both followed by commands
преди 13 години
Julien Nicoulaud
f4a5493d12
'whence' and 'which' are both followed by commands
преди 13 години
Julien Nicoulaud
94ecf1b111
'nocorrect' is followed by a command
преди 13 години
Julien Nicoulaud
3befdc552f
The script should not be executable, it is meant to be sourced
преди 13 години
Julien Nicoulaud
6db0692d5e
Make sure the ZSH_HIGHLIGHT_STYLES array is exported
преди 13 години
Julien Nicoulaud
f713934f6c
Fix issue with substrings extraction
преди 13 години
Julien Nicoulaud
90e661bd69
Issue 17: Update README with "How to override the default styles"
Harmonize variable names
преди 13 години
Julien Nicoulaud
e50d47ae1b
Rename variable with obsolete/confusing name
преди 13 години
Julien Nicoulaud
d4a9baa4ae
Issue 15: History expansion is highlighted as unknown token (partial fix, only covers common cases)
преди 13 години
Julien Nicoulaud
9f9e6c24c6
Issue 19: No duplicates in ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS
преди 13 години
Julien Nicoulaud
5958662772
Issue 14: Do not highlight globbing if noglob is present
преди 13 години
Wayne Davison
a4e7eddae7
Avoid processing the same buffer multiple times.
преди 13 години
Julien Nicoulaud
ce15291cfb
Make default styles identic to Fish
преди 13 години
Julien Nicoulaud
c19bef7714
Issue 12: Highlight isearch like fish
Bind highlighting to more history navigation ZLE events
преди 13 години
Julien Nicoulaud
a56a085ca7
Fix tokens followed by commands and aliases bug (thanks to hchbaw)
преди 13 години
Julien Nicoulaud
a2f022c70f
Fix vim header
преди 13 години
Julien Nicoulaud
887f06131e
Replace tabs with spaces...
преди 13 години
Wayne Davison
0e73dee10f
Also need to affect delete-char-or-list.
преди 13 години
Julien Nicoulaud
c6dcd93691
Remove fg=white from path style, confusing for white background terminals
преди 13 години
Wayne Davison
19de6c9e92
Fix renamed function reference.
преди 13 години
Wayne Davison
6a3bbe72da
Fix some _hl_string issues:
- Avoid unset variable warning at $arg[0].
- Fix highlighting of "\$" and "\\".
- Tweak the code style a bit.
преди 13 години
Wayne Davison
030cabee59
Avoid some variables bleeding into the user's env.
преди 13 години
Wayne Davison
fe3ac1a25b
Also affect the accept-line* and more zle *complete* functions.
преди 13 години
Wayne Davison
75eba65836
A bit more code formatting.
преди 13 години
Julien Nicoulaud
204e8f1b93
Issue 9: take into account aliases for tokens followed by commands
преди 13 години
Julien Nicoulaud
97d944743a
Some refactoring to avoid names collisions
Code cleaning
преди 13 години