Commit Graph
100 Commits
Author SHA1 Message Date
Julien Nicoulaud 30c365e030 Add links to Arch Linux and Gentoo packages
(Anyone knowing packages for other systems or wanting to create it,
please get in touch!)
2011-12-03 19:36:25 +01:00
Julien Nicoulaud 2c5c38144d close #84 2011-12-03 19:26:46 +01:00
Julien Nicoulaud d2715e2cb3 Merge pull request #82 from garinger/feature
make highlighting work for first entry in history. fixes #79
2011-09-28 10:04:07 -07:00
Julien Nicoulaud f824e5e84d Options should only be set locally 2011-09-24 14:42:55 +02:00
Julien Nicoulaud 8d4cde6301 (Hopefully) fix #21 (tilde and hashed directories in paths) 2011-09-20 19:13:37 +02:00
Julien Nicoulaud db8f98fc53 Set default style for pipes and stuff to none 2011-09-20 19:13:37 +02:00
Julien Nicoulaud cbfd4a8889 Merge pull request #75 from garinger/master
supposed fix for issue #73 and issue #74
2011-09-09 08:22:00 -07:00
Julien Nicoulaud f786e9977c Merge pull request #71 from hchbaw/for-nicoulaj/nounset
make _zsh_highlight nounset-able
2011-09-06 10:23:24 -07:00
Julien Nicoulaud a6d105131c Fix #21: No highlighting when using tilde 2011-09-06 19:21:40 +02:00
Julien Nicoulaud d8fe211aed Ignore zwc files 2011-09-06 19:15:09 +02:00
Julien Nicoulaud 26f30697ea Merge pull request #69 from garinger/master
Minor fixes
2011-08-08 10:54:23 -07:00
Julien Nicoulaud 4e0749dd83 Merge pull request #68 from garinger/master
test data for bracket highlighter
2011-08-05 08:16:50 -07:00
Julien Nicoulaud 3c82e872ad Merge pull request #66 from simonair/master
Add ` || true ' to last line of init script to guarantee zero exit code when sourcing multiple times
2011-08-03 05:42:50 -07:00
Julien Nicoulaud 186d80054a Fix #65, sourcing the script multiples times should not cause issues anymore 2011-08-02 20:25:49 +02:00
Julien Nicoulaud 0e331cd654 Isolate setup code in functions to ease messing with zsh-syntax-highlighting 2011-07-31 17:59:55 +02:00
Julien Nicoulaud 5003fa7c9b We don't need this hook as we have already bound every widget we could find (stop me if I'm wrong) 2011-07-31 17:14:56 +02:00
Julien Nicoulaud 08dae96eb1 Add highlighter triggered when the user is root 2011-07-27 00:37:33 +02:00
Julien Nicoulaud 11de634b33 Add cursor highlighter 2011-07-27 00:13:41 +02:00
Julien Nicoulaud 4ff08dcfa6 Fix #53: Prefix all defined functions with _zsh_highlight 2011-07-26 23:16:52 +02:00
Julien Nicoulaud 776453cb5b Fix #46: Conflict with url-quote-magic 2011-07-26 22:50:53 +02:00
Julien Nicoulaud 3b27ad778d More efficient way to strip leading dot 2011-07-25 22:30:06 +02:00
Julien Nicoulaud 9617f6e61b Remove contributors list (too annoying to maintain), people can use Commits > Contributors (https://github.com/zsh-users/zsh-syntax-highlighting/contributors) to access the same list 2011-07-25 22:08:29 +02:00
Julien Nicoulaud 8b7a6bd24d Add @garinger to the list of contributors 2011-07-25 22:06:24 +02:00
Julien Nicoulaud d5cceb2c34 Merge pull request #64 from Valodim/master
don't highlight anymore for long lines
2011-07-25 12:52:47 -07:00
Julien Nicoulaud 8ebce17a11 Merge pull request #63 from garinger/master
Fix for Issue #36 "Brackets of different types matched"
2011-07-21 03:45:51 -07:00
Julien Nicoulaud a18e43d059 Fix README links 2011-07-21 12:45:21 +02:00
Julien Nicoulaud eb749f2681 Merge pull request #62 from garinger/master
Fix for Issue #35 "Unclosed brackets not marked as error"
2011-07-08 08:30:04 -07:00
Julien Nicoulaud 9e75ca0e76 Add @tednaleid to the list of contributors 2011-06-30 20:11:38 +02:00
Julien Nicoulaud 28720c77aa Some fixes consecutive to pull request #61 merge
* Allow to override highlighters directory through `ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR`
* Handle spaces in the directory path
* Use Zsh builtin "h" modifier instead of `dirname`
2011-06-30 20:08:43 +02:00
Julien Nicoulaud df2fe2a97d Merge pull request #61 from tednaleid/master
Error: "unrecognized modifier 'A'" on startup for zsh 4.3.9 on OSX
2011-06-30 11:05:48 -07:00
Julien Nicoulaud e04f6ab862 Safety checks before looking up cursor position 2011-06-17 12:36:07 +02:00
Julien Nicoulaud f6af27b8a6 More reliable way to hook precmd 2011-06-17 12:35:26 +02:00
Julien Nicoulaud 52bdb56fdb Merge pull request #57 from guidovansteen/patch-1
Much easier and less error prone way to start highlighting immediately af
2011-06-17 02:27:49 -07:00
Julien Nicoulaud bf4fe1f228 Another README link fix 2011-06-16 14:56:55 +02:00
Julien Nicoulaud 1435868740 Another README link fix 2011-06-16 14:54:47 +02:00
Julien Nicoulaud e7d7ccfe35 Group if statements in f26310d97e 2011-06-16 14:54:24 +02:00
Julien Nicoulaud ef4f5ed638 Fix READMEs 2011-06-12 23:16:41 +02:00
Julien Nicoulaud bb7fcb79fa Fix #56: tolerance to WARN_GLOBAL option 2011-06-12 23:09:59 +02:00
Julien Nicoulaud 55e6a85fbb Merge branch 'master' of github.com:nicoulaj/zsh-syntax-highlighting
Conflicts:
	zsh-syntax-highlighting.zsh
2011-06-12 23:04:33 +02:00
Julien Nicoulaud 0772ddd346 Big refactoring.
* Don't override user defined styles
* Better modularisation of highlighters
* Allow to define which highlighters are activated
* Allow to define the order in which they are defined
* Minor performance optimizations
* Fixed some variables leak
* Improve documentation
* Brackets highlighter: use ZSH_HIGHLIGHT_STYLES instead of a specific array
2011-06-12 22:57:14 +02:00
Julien Nicoulaud 19f16752bb Issue 49: Don't use readlink, options differ between systems
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-03-02 00:34:12 +01:00
Julien Nicoulaud bc788f3f19 Start splitting highlighters to separate files.
The script still works on its own, highlighters in highlighters/ are
loaded as addons if present.

Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-02-17 23:41:01 +01:00
Julien Nicoulaud 2f0fb81af4 More efficient way to look for elements in arrays
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-02-17 22:27:31 +01:00
Julien Nicoulaud 3abf463753 More code style fixes
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-02-17 21:02:23 +01:00
Julien Nicoulaud 2670c93e05 Make sure functions names match _zsh_highlight_*
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-02-17 20:58:22 +01:00
Julien Nicoulaud dd84bff854 Code style
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-02-17 19:51:07 +01:00
Julien Nicoulaud 6879d3c29f Issue 47: Removing styling of 'isearch' and 'special', as it has no effect
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-02-17 19:31:20 +01:00
Julien Nicoulaud e1479022a0 Merge branch 'hchbaw-for-nicoulaj' 2011-02-17 19:20:32 +01:00
Julien Nicoulaud 69e7442e4d Add nakamuray to the list of contributors
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-02-16 22:42:18 +01:00
Julien Nicoulaud fdc113996e Merge branch 'highlight-assignment' of https://github.com/nakamuray/zsh-syntax-highlighting into nakamuray-highlight-assignment 2011-02-16 22:39:45 +01:00
Julien Nicoulaud d66b15aeb0 Fix contributor URL
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-02-13 09:57:36 +01:00
Julien Nicoulaud 93c9e6a753 Split off contributors list to a separate file
Markdown for everyone

Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-02-01 21:07:00 +01:00
Julien Nicoulaud ca79a5f65a Fix fish shell URL
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-02-01 21:02:45 +01:00
Julien Nicoulaud 78ff61eddc Fix typo
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-02-01 21:01:37 +01:00
Julien Nicoulaud ea792cbf87 Add a mechanism for testing the correctness of the highlighting.
Feel free to add more test data !

Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-01-10 23:46:27 +01:00
Julien Nicoulaud e162de6f51 Add BSD license
(http://www.zsh.org/mla/users//2011/msg00030.html)

Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-01-10 10:11:35 +01:00
Julien Nicoulaud 0392fdc46a Issue 34: Do not highlight non commands as commands.
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-01-08 18:03:52 +01:00
Julien Nicoulaud 50b612cec4 Merge branch 'celtic-master' 2011-01-08 13:09:56 +01:00
Julien Nicoulaud 678245bd63 Add stillmaintained badge
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2011-01-08 13:08:02 +01: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
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
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
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
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
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
Julien Nicoulaud c6dcd93691 Remove fg=white from path style, confusing for white background terminals 2010-12-30 19:49:04 +01:00
Julien Nicoulaud 204e8f1b93 Issue 9: take into account aliases for tokens followed by commands 2010-12-30 19:18:17 +01:00
Julien Nicoulaud 97d944743a Some refactoring to avoid names collisions
Code cleaning
2010-12-30 18:53:42 +01:00
Julien Nicoulaud 91760946f3 Declare styles in an associative array to make it easily overridable 2010-12-30 18:35:28 +01:00
Julien Nicoulaud 00427081d1 Format code 2010-12-30 17:05:00 +01:00
Julien Nicoulaud 2cf6e4844b Merge branch 'master' of git://github.com/x-way/zsh-syntax-highlighting 2010-12-30 16:53:40 +01:00
Julien Nicoulaud 7c1690f5b0 Issue 7: Add instructions for using with oh-my-zsh 2010-12-30 16:35:55 +01:00
Julien Nicoulaud e1c078c628 Issue 8: Trigger highlighting on magic-space (thanks to sunaku) 2010-12-30 16:20:43 +01:00