Commit graph

85 commits

Author SHA1 Message Date
Suraj N. Kurapati
fc7eb3cbf0 GH-42: speed up HIST_FIND_NO_DUPS: drop O(n) prune
Don't prune all duplicates from the search space *before* performing the
search! Instead, simply redo the search when a duplicate result is found.
2015-03-22 11:16:12 -07:00
Suraj N. Kurapati
5866858947 Merge pull request #41 from parkercoates/master
GH-19: Respect the HIST_FIND_NO_DUPS option.
2015-03-17 10:59:44 -07:00
Parker Coates
13033d87a1 GH-19: Respect the HIST_FIND_NO_DUPS option.
This is the best way I've found to remove duplicate entries while
keeping the most recent occurence, but I'm not a ZSH expert. There may
be a more efficient way.
2015-03-16 08:35:28 -03:00
Parker Coates
fd31074470 Use array reversal instead of array sorting.
There's no need to do a full numerical sort here, since we know the
keys will be in reverse numerical order, because (R) searches in last-
to-first order. Not a big deal, but this is just simpler and
presumably more efficient.

Also cleaned up a rather confusing comment about (on) being used to
remove duplicates, which it definitely doesn't.
2015-03-16 08:30:05 -03:00
Suraj N. Kurapati
3c7b079275 Merge zsh-syntax-highlighting #143 to close #15
The problem reported in issue #15 was fixed upstream in #143:
https://github.com/zsh-users/zsh-syntax-highlighting/pull/143
2015-02-17 12:16:55 -08:00
Suraj N. Kurapati
9f9fc7d550 README: MacOSX 10.9 users need to bind ^[[A/B too
Thanks to Andrea Leopardi for reporting this in issue #37.
2014-08-30 10:38:17 -07:00
Suraj N. Kurapati
1e76804052 README: document that ZSH 4.3 or newer is required
closes #24
2013-11-02 12:55:57 -07:00
Arash Rouhani
9c51863eb2 README: $terminfo does not work under Ubuntu 12.04
This gives further advice for keybindings: for some reason, on my Ubuntu
12.04 system, I need to enter `^[[A` but `$terminfo[kcuu1]` gives `^[OA`
2013-09-26 13:24:48 -07:00
Sorin Ionescu
d9b28ed7f9 GH-21: bind arrow key codes according to terminfo 2013-07-05 08:51:14 -07:00
Jon Rogers
99341be866 GH-21: fix bindkey strings for up and down arrows 2013-06-18 23:13:26 -07:00
Suraj N. Kurapati
82fbef5132 drop default key bindings (move them into README)
https://github.com/sorin-ionescu/prezto/issues/422

3c5363ef9b
2013-04-25 14:46:22 -07:00
Suraj N. Kurapati
3bd84be43e we need to bind ^[[A and ^[[B not ^[A and ^[B 2013-02-22 12:21:34 -08:00
Suraj N. Kurapati
428ea10598 Merge branch 'bindkey'; closes issue #12 2013-01-05 17:47:45 -08:00
Sorin Ionescu
ebde030990 GH-12: fix arrow bindkey and support emacs & vicmd 2012-11-21 22:11:32 -08:00
Suraj N. Kurapati
04c2eca00c use explicit return codes instead of true & false 2012-03-28 11:00:53 -07:00
Sorin Ionescu
c61c9956c4 use 0 instead of true in returns 2012-03-28 11:05:00 -04:00
Suraj N. Kurapati
a23cfbb11f GH-10: retain not-found highlight at boundaries 2012-03-28 06:44:05 -07:00
Suraj N. Kurapati
226ae9a368 GH-10: clear highlights before displaying result 2012-03-27 21:36:09 -07:00
Suraj N. Kurapati
527f95fee9 GH-9: retain search query highlight on cursor move 2012-03-13 13:54:54 -07:00
Suraj N. Kurapati
0943070a9d GH-8: do not interfere with self-insert overrides 2012-03-12 21:23:37 -07:00
Aaron Hall
68904e1d72 Update widget-remap code from zsh-syntax-highlighting
This brings in the several improvements since the code was initially
added for compatibility. In particular, this fixes widget conflicts with
existing functions and executables by prefixing all redefined widgets
with "_zsh_highlight_widget_".
2012-01-11 21:43:27 -08:00
Suraj N. Kurapati
ba2e1a76aa extendedglob used in *end() function; closes #6 2011-09-30 17:02:29 -07:00
Suraj N. Kurapati
db51e71ec7 Merge branch 'local_options' 2011-09-30 11:18:48 -07:00
Suraj N. Kurapati
c5c4ab8eea change options locally and restore them on return 2011-09-22 11:16:34 -07:00
Suraj N. Kurapati
0e58320e78 Merge pull request #5 from sorin-ionescu/issue-2
fix #2: always use up/down-line-or-history
2011-09-17 12:08:19 -07:00
Sorin Ionescu
8870c7e279 fix #2: always use up/down-line-or-history 2011-09-17 14:07:31 -04:00
Sorin Ionescu
9d3683b3d3 simplify relative file path calculation using ZSH
https://github.com/robbyrussell/oh-my-zsh/pull/215/files#r104749
2011-08-29 08:11:04 -07:00
Suraj N. Kurapati
acd181e11f README: update URLs to new zsh-users organization 2011-08-04 14:20:43 -07:00
Suraj N. Kurapati
1ec51023d7 move project description into README & markdownify 2011-08-04 14:19:56 -07:00
Suraj N. Kurapati
981b787ca0 separate markdown URL list into references section 2011-07-25 13:42:21 -07:00
Colin Hebert
dfc7ac9d06 add "zsh-" prefix to history-substring-search
@zsh-users/zsh-syntax-highlighting and
@zsh-users/zsh-history-substring-search don't follow the same naming
convention.

This commit just rename history-substring-search.zsh and
history-substring-search.plugin.zsh to zsh-history-substring-search.zsh
and zsh-history-substring-search.plugin.zsh respectively.
2011-07-25 13:39:39 -07:00
Guido van Steen
15f63dea7f make down-search() and up-search() logic symmetric 2011-06-29 06:11:11 -07:00
Suraj N. Kurapati
810095f097 follow the oh-my-zsh coding style guidelines
https://github.com/robbyrussell/oh-my-zsh/wiki/Coding-style-guide
2011-06-28 14:27:10 -07:00
Suraj N. Kurapati
02a1971540 begin writing usage & configuration documentation 2011-06-28 12:46:19 -07:00
Suraj N. Kurapati
89eec57d06 clean up shell programming style to fit ZSH 2011-06-27 19:04:53 -07:00
Suraj N. Kurapati
59e6bfbdfd merge search-highlight func into search-end func 2011-06-26 11:30:46 -07:00
Guido van Steen
ca086b8999 fix down-history after reaching the top of history 2011-06-25 20:58:31 -07:00
Suraj N. Kurapati
86bbedb993 rename number to index; use locals and (( math )) 2011-06-25 20:58:31 -07:00
Suraj N. Kurapati
f1ab1a7601 reorganize configuration, functions, and details 2011-06-25 20:58:31 -07:00
Suraj N. Kurapati
ffaecb6efc remove useless last_entry_in_history variable 2011-06-25 20:58:31 -07:00
Suraj N. Kurapati
89513675c3 shorten names of number_of_matches variables 2011-06-25 20:58:31 -07:00
Suraj N. Kurapati
7f24864a0e refactor assignment of move_cursor_eol variable 2011-06-25 20:58:31 -07:00
Suraj N. Kurapati
2685846742 rename backward/forward to up/down respectively 2011-06-25 20:58:31 -07:00
Suraj N. Kurapati
cf35f06261 rename up/down-highlight() functions to *-search() 2011-06-25 20:58:31 -07:00
Suraj N. Kurapati
bb9f93c0f6 rename functions; use return values vs. globals 2011-06-25 20:58:31 -07:00
Suraj N. Kurapati
42ac9185c9 format comments to fit screen and be readable 2011-06-25 20:58:31 -07:00
Guido van Steen
d48f41659e refactor script logic and improve documentation 2011-06-25 20:58:27 -07:00
Guido van Steen
9dffcab6f6 escape | in search query before scanning history
https://github.com/robbyrussell/oh-my-zsh/pull/215#issuecomment-1422348
2011-06-23 09:34:23 -07:00
Guido van Steen
654b080cd6 do not wrap $HISTORY upon UP/DOWN without query 2011-06-20 12:06:12 -07:00
Suraj N. Kurapati
eb2d958b15 prefix internal variables and functions with '_'
https://github.com/robbyrussell/oh-my-zsh/pull/215#r45547
2011-06-15 15:48:32 -07:00