Commit graph

84 commits

Author SHA1 Message Date
Guido van Steen
1022df5a5a fix highlighting of query in matching commands
Without this commit, searching for "rebo" in "reboot" incorrectly causes
"eboo" to be highlighted instead of "rebo".
2011-06-15 15:21:48 -07:00
Guido van Steen
53b70a0b82 keep highlights when moving cursor within $BUFFER 2011-06-15 15:20:44 -07:00
Guido van Steen
2f0b0c6a5d unhighlight on edits if no zsh-syntax-highlighting 2011-06-15 15:20:40 -07:00
Guido van Steen
c322b844f1 revise comments; optimize multi-line buffer checks 2011-06-15 15:20:33 -07:00
Suraj N. Kurapati
1d7ea438d3 zsh-syntax-highlighting plugin changed its API
https://github.com/robbyrussell/oh-my-zsh/pull/215#issuecomment-1361889
2011-06-15 15:20:18 -07:00
Suraj N. Kurapati
942a22206b add contributors to license; link to non-OMZ repo 2011-06-15 15:20:18 -07:00
Suraj N. Kurapati
2132c4b4a6 add *.plugin.zsh file to integrate into oh-my-zsh 2011-06-15 15:20:18 -07:00
Suraj N. Kurapati
c647fb423c add variable to configure case-sensitivity etc. 2011-06-15 15:20:18 -07:00
Vincent Guerci
f9a4c753af prevent beeps when navigating multi-line commands
`man zshzle` at the "zle widget" section:

A non-zero return status causes the shell to beep when the widget exits,
unless the BEEP options was unset or the widget was called via the zle
command. Thus if a user defined widget requires an immediate beep, it
should call the beep widget directly.

https://github.com/robbyrussell/oh-my-zsh/pull/215#issuecomment-1328406
2011-06-15 15:20:18 -07:00
Vincent Guerci
d655da70a8 fix command not found: up-line-or-history errors
https://github.com/robbyrussell/oh-my-zsh/pull/215#issuecomment-1328406
2011-06-15 15:20:18 -07:00
Suraj N. Kurapati
f53a3405ba namespace, inline, refactor multiline buffer logic 2011-06-15 15:20:17 -07:00
Guido van Steen
dafeb77e2a multi-line buffer editing; better than Fish now 2011-06-15 15:20:14 -07:00
Suraj N. Kurapati
14adfd9836 cursor movements should not make $BUFFER new query
Suppose you have just pressed "arrow-up", and you get a single-line in
your terminal. You move your cursor into $BUFFER. After this the edited
$BUFFER becomes the new search string. That breaks the searching model.
2011-06-09 00:16:36 -07:00
Suraj N. Kurapati
dd276a80f1 ignore case when searching and highlighting query 2011-06-09 00:16:35 -07:00
Sorin Ionescu
0ed2fa04f4 only load zsh/parameter module if not already so 2011-06-09 00:16:35 -07:00
Suraj N. Kurapati
e50a664321 add README with instructions on script activation 2011-06-09 00:16:28 -07:00
Sorin Ionescu
d217eff6a1 set options and load modules only once at loadtime 2011-06-09 00:10:28 -07:00
Sorin Ionescu
43ab2cd304 fix typos in comments inherited from fizsh source 2011-06-09 00:10:28 -07:00
Suraj N. Kurapati
7b71437106 highlight query on top of zsh-syntax-highlighting 2011-06-09 00:10:28 -07:00
Suraj N. Kurapati
1e02a2118e rename _search* variables to be self-documenting 2011-06-09 00:10:28 -07:00
Suraj N. Kurapati
9cb4212c40 make attribution more descriptive in file header 2011-06-09 00:10:28 -07:00
Suraj N. Kurapati
b200932843 remove length restriction for command highlighting
That decision should be made by the ZSH Syntax Highlighting plugin.
2011-06-09 00:10:28 -07:00
Suraj N. Kurapati
25a9b38c76 remove unnecessary parentheses in if-statements 2011-06-09 00:10:28 -07:00
Suraj N. Kurapati
dcd7cc6323 simplify last widget == current widget check
Restored from Peter Stephenson's original version of this plugin:
http://www.zsh.org/mla/users/2009/msg00818.html
2011-06-09 00:10:28 -07:00
Suraj N. Kurapati
b8bb5bd8b0 remove global variable in favor of O(1) hash check 2011-06-09 00:10:28 -07:00
Suraj N. Kurapati
93d4cb73c5 rename constants and variables to reflect filename 2011-06-09 00:10:28 -07:00
Suraj N. Kurapati
415b5c60c7 refactor repeated ZLE region highlighting logic 2011-06-09 00:10:28 -07:00
Suraj N. Kurapati
dcc4f7ffb0 put comments ABOVE the code they are meant for 2011-06-09 00:10:27 -07:00
Suraj N. Kurapati
186e240a63 remove debugging logic that writes to /tmp/ok2 2011-06-09 00:10:27 -07:00
Suraj N. Kurapati
26a7f99add refactor calls to _zsh_highlight-zle-buffer func 2011-06-09 00:10:27 -07:00
Suraj N. Kurapati
9fd4576ae7 split dual-roled function into two distinct ones 2011-06-09 00:10:27 -07:00
Sorin Ionescu
56d178984e Removed 'zsh-' prefix. 2011-06-09 00:10:27 -07:00
Suraj N. Kurapati
b8c4337ddd escaped newlines and tabs were expanded on recall
Kudos to Sorin Ionescu for finding this same solution independently.

https://github.com/robbyrussell/oh-my-zsh/pull/215#issuecomment-811332

https://github.com/robbyrussell/oh-my-zsh/pull/215#issuecomment-1046603
2011-06-09 00:10:23 -07:00
Suraj N. Kurapati
4e129559a5 import history substring search plugin from fizsh-1.0.1 2011-06-09 00:10:14 -07:00