Guido van Steen
87ce96b186
Merge pull request #159 from dxrcy/master
...
Fix user input after search
2024-06-05 07:04:53 +02:00
darcy
3235b885dd
Fix user input after search, including space
key
2024-02-16 12:27:31 +11:00
darcy
837d49959e
Fix user input after search
...
Now when a user types `-` directly after searching, it is not treated as a commandline option by `zle`
2024-01-26 11:26:14 +11:00
Arjun Reddy K
8dd05bfcc1
Update README.md
...
Remove percent sign (%). The source command should not be prefixed with % symbol.
2023-11-23 12:12:14 +02:00
Ilkin Bayramli
8f5d8a5aa9
Add Fig as an installation method to the README ( #133 )
...
* Add Fig as an installation method to the README
---------
Co-authored-by: Ilkin Bayramli <43158991+ibayramli2001@users.noreply.github.com>
2023-11-21 19:54:14 +02:00
Atte Peltomäki
4f982d65b4
Merge branch 'zinit-readme'
...
Resolved merge conflict.
2023-11-21 19:45:43 +02:00
Padsworth
a7e6d94ba5
updated readme to include Zinit instructions
2023-11-21 19:24:11 +02:00
Andy Richardson
19b887667a
Use brew to determine prefix
...
https://docs.brew.sh/FAQ#why-should-i-install-homebrew-in-the-default-location
2023-11-08 13:33:12 +02:00
Chris Hua
2e28e23261
fix: line wrap
2023-11-08 12:14:56 +02:00
Chris Hua
591ca3326a
chore: update readme
...
- adds example for `zplug`
- adds example for `antigen` - closes #113
- adds note for alternative binding keys - clsoes #141 , $138
2023-11-08 12:14:56 +02:00
kooshie
3bbc5a8cfa
replace sourcing method with exec zsh
2023-11-08 11:45:46 +02:00
Atte Peltomäki
da5f0673b9
fix search match highlight with latest z-sy-h
...
Search highlight is cleared after a timeout, which is one second by default.
Timeout period can be changed by setting an environment variable; example below
for setting one minute timeout.
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT=60
Fixes #131
2023-11-08 11:36:37 +02:00
Guido van Steen
400e58a87f
Merge pull request #135 from jirutka/redrawhook
...
Fix compatibility with latest zsh-syntax-highlighting (zle-line-pre-redraw) and use memo= feature
2023-01-03 20:25:44 +01:00
Jakub Jirutka
fcbdb89754
Use new zsh 'memo=' feature to improve interoperability with others
...
See 810c2dcede
I'm not sure if it should be used even in our dummy _zsh_highlight or
not and, to be honest, I couldn't figure out why is this dummy
_zsh_highlight needed at all, so I left it unchanged.
2022-08-07 17:19:08 +02:00
Jakub Jirutka
b4fb93de0e
Fix compatibility with latest zsh-syntax-highlighting
...
zsh-syntax-highlighting started using zle-line-pre-redraw hook instead
of the legacy "bind all widgets" if 1) zsh has the memo= feature (added
in version 5.9) and 2) add-zle-hook-widget is available.
Now when zsh-history-substring-search is loaded before
zsh-syntax-highlighting, it causes error:
_zsh_highlight_widget_zle-line-pre-redraw: job table full or recursion limit exceeded
See https://github.com/zsh-users/zsh-syntax-highlighting/pull/749
2022-08-07 17:08:21 +02:00
Jakub Jirutka
563a551165
Use SPDX snippet tags instead of copy-pasting full license text
...
Based on https://github.com/spdx/spdx-spec/pull/719
2022-08-07 14:39:08 +02:00
Suraj N. Kurapati
4abed97b6e
Merge pull request #97 from partcyborg/master
...
Also rename `HISTORY_SUBSTRING_SEARCH_PREFIX` variable by adding "ED"
suffix so that it reads more like a special mode of operation rather
than an instruction to prepend a specified prefix to matched commands.
2021-08-02 23:19:13 -07:00
Suraj N. Kurapati
e310a75a52
Merge pull request #117 from ivopauly/patch-1
...
README: Update plugin name in Oh-My-Zsh activation instructions.
2021-08-02 22:55:40 -07:00
Suraj N. Kurapati
c765a4a17c
Merge pull request #108 from ericbn/dont-overwrite-config
...
Don't overwrite config with default values
2021-08-02 22:45:42 -07:00
Eric Nielsen
4ee70abb6f
Don't overwrite config with default values
...
otherwise users are obliged to set the config values *after* sourcing
the plugin. They're not able to do it before. Also, re-sourcing the
plugin will reset the values to the defaults again.
A similar change was done in zsh-autosuggestions in the past:
https://github.com/zsh-users/zsh-autosuggestions/commit/9e4d3c3
2021-08-02 15:23:57 -05:00
Xue Qianming
4f2f17cc46
add HISTORY_SUBSTRING_SEARCH_PREFIX (#112,#115)
...
* `HISTORY_SUBSTRING_SEARCH_PREFIX` is a global variable that defines
how the command history will be searched for your query. If set to a non-empty
value, only history prefixed by your query will be matched. For example,
if this variable is empty, `ls` will match `ls -l` and `echo ls`; if it is
non-empty, `ls` will only match `ls -l`.
Co-authored-by: Xue Qianming <qianmingxue@microsoft.com>
2021-08-02 10:20:14 -07:00
Ivo Pauly
56dc8c2ec4
Update README.md
...
Plugin name isn't correct in instructions
2020-12-24 10:07:20 +01:00
Part Cyborg
f48193bcd9
Declare HISTORY_SUBSTRING_SEARCH_ANCHORED global
2020-07-03 15:57:16 -07:00
Suraj N. Kurapati
0f80b8eb33
GH-92: also try bindkey with $terminfo for arrows
2019-05-12 17:35:54 -07:00
Suraj N. Kurapati
2c36e4dd3a
Merge pull request #98 from FranciscoBorges/master
...
Declare `query_part` as local to avoid warnings due to `WARN_CREATE_GLOBAL`
2019-05-12 17:18:38 -07:00
Suraj N. Kurapati
79d3619704
Merge pull request #99 from d10n/fix-zsh-4.3-regressions
...
Fix zsh 4.3 regressions
2019-05-12 17:17:45 -07:00
d10n
19cb0eb8be
Quote variable to highlight right words on zsh 4.3
...
When the variable is not quoted, there seems to be some difference in
evaluating the line between zsh 4.3 and 5.6
2018-12-26 19:43:49 -05:00
d10n
36505c46c7
Explicitly disable word splitting when not fuzzy
...
This prevents shell configuration from breaking fuzzy search
configuration
2018-12-26 19:42:36 -05:00
Francisco Borges
8d4a409c89
Declare query_part as local to avoid warnings due to WARN_CREATE_GLOBAL
2018-12-11 10:21:28 +01:00
Part Cyborg
3f8e85f3f8
Support anchoring the substring to search for
...
Add a new config variable that will anchor the history search to the beginning of the command.
Note that the default behavior does not change with this
2018-10-01 05:15:02 -07:00
Bastian Heist
47a7d416c6
Fix typo in README.md ( #91 )
...
The plugin line needed to contain "history-substring-search" (not zsh-history-substring-search) to work for me.
2018-02-21 10:15:09 -08:00
David Suilea
d44159b5e8
support for installing as Oh-My-Zsh plugin ( #87 )
2017-08-03 11:15:30 -07:00
Suraj N. Kurapati
4594acaa4f
Merge pull request #86 from iroedius/master
...
also ignore files ending in .zwc.old
2017-08-02 11:20:53 -07:00
iroedius
c35b4d1e8c
also ignore files ending in .zwc.old
2017-07-20 14:52:31 +02:00
Vithon
933733e867
Update README.md
...
With Homebrew/homebrew-core#13567 script is now installed in a different location. updating README.md to reflect
2017-05-20 20:40:29 +01:00
Geza Lore
be0fe1fca9
Clean up global variable declarations
...
- Remove duplicate declarations
- Separate internal variables from configuration variables
2017-05-16 20:07:06 +01:00
Bengt Brodersen
fd27842cad
feat: add fuzzy search
2017-05-16 19:49:29 +01:00
Bengt Brodersen
563c88c4ca
README: add installation instructions for Homebrew
2017-05-15 22:42:16 -07:00
Geza Lore
c750a17757
Merge pull request #67 from gezalore/master
...
Fix breakage with setopt ERR_RETURN (Issue #60 )
2017-05-05 21:45:55 +01:00
Geza Lore
07011f632b
Fix breakage with setopt ERR_RETURN (Issue #60 )
2017-05-05 19:20:48 +01:00
Suraj N. Kurapati
2b6451de03
README: upgrade to CommonMark; move <C-v> note up
2017-05-05 03:34:00 -07:00
Suraj N. Kurapati
21c025eb33
Merge pull request #78 from RuRo/patch-1
...
Updated README.md keybinding instructions.
2017-05-05 03:24:21 -07:00
RuRo
34fdd6b1b2
Updated README.md keybinding instructions.
...
The solution I propose to add to the README was found in issue https://github.com/zsh-users/zsh-history-substring-search/issues/64#issuecomment-289208209 .
2017-05-03 00:50:18 +03:00
Suraj N. Kurapati
aae3388491
Merge pull request #62 from alyssais/declare
...
declare global variables to support `setopt warn_create_global`
2016-12-11 11:44:51 -08:00
Suraj N. Kurapati
8d0ae55a43
Merge pull request #66 from disarmer/master
...
Add support for WARN_CREATE_GLOBAL option. Fixes #65
2016-12-11 11:39:11 -08:00
disarmer mk
1a9b72a95f
typeset for variables. Fixes #65
2016-12-02 22:18:19 +03:00
Alyssa Ross
fd331b8345
global variables: fix array declarations
2016-11-02 01:33:44 +00:00
Alyssa Ross
f7c8d3157b
global variables: declare up-front
2016-11-02 01:23:59 +00:00
Alyssa Ross
3fa98998c5
Revert "Declare global variables"
...
This reverts commit b554feb7ba
.
2016-11-02 01:23:59 +00:00
Alyssa Ross
d26aaa6594
Revert "Declare more global variables"
...
This reverts commit ec88096611
.
2016-11-02 01:23:59 +00:00