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.
2011-01-08 15:51:26 +11:00
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>
2011-01-07 21:51:39 +09:00
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>
2011-01-07 21:46:17 +09:00
Takeshi Banse
802583ea94
Make this clause function and call it afterward.
...
Signed-off-by: Takeshi Banse <takebi@laafc.net>
2011-01-07 21:35:43 +09:00
Julien Nicoulaud
f962bdf1e7
Fix regression
2011-01-06 23:28:41 +01:00
Julien Nicoulaud
0b0b09de64
Fix absolute path in symlink
2011-01-06 23:26:24 +01:00
Julien Nicoulaud
9d63573e4e
Issue 30: Add a test script to watch performance
2011-01-06 23:23:29 +01:00
Julien Nicoulaud
83372a5cee
Issue 38: Conflict with command-not-found
2011-01-06 22:25:16 +01:00
Julien Nicoulaud
4d0e833079
Merge branch 'master' of github.com:nicoulaj/zsh-syntax-highlighting
2011-01-06 14:59:59 +01:00
Julien Nicoulaud
fc5caa4e2d
Fix error when sourcing twice the script
2011-01-06 14:59:23 +01:00
Julien Nicoulaud
43e31cdc58
Fix error when source twice the script
2011-01-06 14:57:51 +01:00
Mounier Florian
7e963c6c7e
Fix issue 31
2011-01-06 09:16:15 +01:00
Julien Nicoulaud
262755f1e7
Fix link in README
2011-01-05 23:46:08 -08:00
Julien Nicoulaud
0a50e2a830
Issue 32: 'xargs' and 'zargs' are followed by commands (thanks to claytron)
2011-01-06 08:41:52 +01:00
Julien Nicoulaud
ca4d7fbd06
Emphasize installations instructions ;)
2011-01-05 23:11:24 +01:00
Julien Nicoulaud
a9da4e6c76
Harmonize exported variables names
2011-01-05 23:07:56 +01:00
Julien Nicoulaud
8188920d00
Update README
2011-01-05 23:07:22 +01:00
Julien Nicoulaud
60842aa75b
Define a style for hashed commands
2011-01-05 22:51:00 +01:00
Sorin Ionescu
a7746077bf
Added hashed commands highlighting to zsh-syntax-highlighting oh-my-zsh plugin.
2011-01-06 05:47:42 +08:00
Sorin Ionescu
06d67990d9
Added oh-my-zsh zsh-syntax-highlighting plugin.
2011-01-06 05:47:42 +08:00
Julien Nicoulaud
b45891cdf4
Fix variable scope and make variable names even more obvious
2011-01-05 22:16:17 +01:00
Julien Nicoulaud
0e55450a0b
Issue 26: The script unplugs user defined events
2011-01-05 22:11:00 +01:00
Mounier Florian
701cc303fe
Highlighting bracket pair, when one is under the cursor (Issue 24)
2011-01-05 17:08:34 +01:00
Mounier Florian
f78e444451
Fix highlighting on new line with same buffer
2011-01-05 14:27:22 +01:00
Mounier Florian
a765f76656
Remove the huge zle functions array and replace it with zle -la output
2011-01-05 14:10:57 +01:00
Mounier Florian
2ca730ed17
Merge branch 'master' of gh:nicoulaj/zsh-syntax-highlighting
2011-01-05 13:50:19 +01:00
Mounier Florian
1da1aeb6f8
Simple rainbow style bracket matching
2011-01-05 13:48:23 +01:00
Julien Nicoulaud
a640bb8b96
Fix for aliases (from zsh-users)
...
http://www.zsh.org/mla/users/2011/msg00005.html
2011-01-05 11:28:24 +01:00
Mounier Florian
77ff47dc27
Add zsh version requirement
2011-01-05 10:56:12 +01:00
Mounier Florian
5afa8fcb32
Add all zle hookable functions
2011-01-05 10:54:25 +01:00
Julien Nicoulaud
0c138706a7
'where' and 'whereis' are both followed by commands
2011-01-02 18:19:56 +01:00
Julien Nicoulaud
f4a5493d12
'whence' and 'which' are both followed by commands
2011-01-02 18:19:25 +01:00
Julien Nicoulaud
94ecf1b111
'nocorrect' is followed by a command
2011-01-02 00:09:05 +01:00
Julien Nicoulaud
3befdc552f
The script should not be executable, it is meant to be sourced
2011-01-01 23:42:24 +01:00
Julien Nicoulaud
6db0692d5e
Make sure the ZSH_HIGHLIGHT_STYLES array is exported
2011-01-01 22:17:56 +01:00
Julien Nicoulaud
f713934f6c
Fix issue with substrings extraction
2011-01-01 19:17:02 +01:00
Julien Nicoulaud
f575527564
Fix code blocks indentation
2011-01-01 17:49:12 +01:00
Julien Nicoulaud
90e661bd69
Issue 17: Update README with "How to override the default styles"
...
Harmonize variable names
2011-01-01 17:34:35 +01:00
Julien Nicoulaud
e50d47ae1b
Rename variable with obsolete/confusing name
2011-01-01 16:32:37 +01:00
Julien Nicoulaud
d4a9baa4ae
Issue 15: History expansion is highlighted as unknown token (partial fix, only covers common cases)
2011-01-01 16:30:35 +01:00
Julien Nicoulaud
9f9e6c24c6
Issue 19: No duplicates in ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS
2011-01-01 16:11:13 +01:00
Julien Nicoulaud
5958662772
Issue 14: Do not highlight globbing if noglob is present
2011-01-01 16:01:30 +01:00
Wayne Davison
a4e7eddae7
Avoid processing the same buffer multiple times.
2010-12-31 15:16:50 -08:00
Julien Nicoulaud
ce15291cfb
Make default styles identic to Fish
2010-12-31 14:45:03 +01:00
Julien Nicoulaud
c19bef7714
Issue 12: Highlight isearch like fish
...
Bind highlighting to more history navigation ZLE events
2010-12-31 14:35:38 +01:00
Julien Nicoulaud
a56a085ca7
Fix tokens followed by commands and aliases bug (thanks to hchbaw)
2010-12-31 02:07:24 +01:00
Julien Nicoulaud
a2f022c70f
Fix vim header
2010-12-30 23:06:24 +01:00
Julien Nicoulaud
887f06131e
Replace tabs with spaces...
2010-12-30 20:06:46 +01:00
Wayne Davison
0e73dee10f
Also need to affect delete-char-or-list.
2010-12-30 10:49:14 -08:00
Julien Nicoulaud
c6dcd93691
Remove fg=white from path style, confusing for white background terminals
2010-12-30 19:49:04 +01:00