Commit graph

28 commits

Author SHA1 Message Date
Emma Bukacek aa0f197c49 strip asterisk from history line number 2025-11-02 18:15:13 -08:00
haxibami 03a0904cd4
fix arithmetic operation again 2024-05-29 12:23:59 +09:00
Josh Skidmore d5a9730b5b Fixes issues #34 and #35 introduced by PR #27 2024-05-15 17:40:24 -04:00
Josh Skidmore a2700be96d
Merge pull request #32 from zebolino/fzf-query-prefix 2024-05-06 05:13:21 -04:00
zebolino 670fa37fcc Ability to define a fzf query prefix which is only used when $BUFFER is not empty. 2023-09-13 00:05:40 +02:00
haxibami 42b10f9421
fix arithmetic operation 2023-03-27 14:28:19 +09:00
MamoruDS 99211d7e40
Fix multi-line history to correctly handle line breaks 2023-02-11 03:54:33 +09:00
MamoruDS de4c3c7a8a
Fix candidate parsing now preserving original history content
The previous expansion condensed repeated white spaces which caused harm to the original history content.
2023-02-11 03:43:30 +09:00
Wu Zhenyu 0fa5338375 Add '--preview-window=hidden' 2022-10-12 12:08:54 +08:00
Javi Merino 44b785e81b Add an option to remove duplicates from search
Some users may prefer to keep duplicates in their zsh history, but
drop them from search.  The awk manual[0] recommends this.

[0] https://www.gnu.org/software/gawk/manual/html_node/History-Sorting.html
2022-05-12 07:42:17 +01:00
Javi Merino 76c6588204 Add an option to remove dates from search
Let the user decide if they want full date timestamps in ISO8601
format in the search.
2022-05-12 07:01:53 +01:00
Javi Merino 754d074027 Add an option to remove event numbers from search
Event numbers don't add information to the search: if you knew the
event number you wouldn't be searching for the command.  Add an option
to remove them from the search to declutter it.  Default it to true to
preserve the current behaviour.
2022-05-09 07:21:59 +01:00
Javi Merino 5abc3e2204 Avoid calling echo to expand fzf args
ZSH_FZF_HISTORY_SEARCH_FZF_ARGS and
ZSH_FZF_HISTORY_SEARCH_FZF_EXTRA_ARGS may contain multiple arguments
separated by spaces that need to be expanded to build the command line
for fzf.  This is currently done by calling a subshell and letting
echo handle it.

Unlike other shells, zsh does not do word splitting by default.
According to zshexpn(1) you can perform word splitting using the rules
for SH_WORD_SPLIT by using the ${=spec} construct.  Avoid creating a
subshell and just expand the spaces.
2022-05-09 07:18:44 +01:00
Moritz Sauter 826165e36d feat: Add option to put the cursor at end of line 2022-04-29 17:02:31 +02:00
Ofir Gal aad7964778 Added options 2022-02-06 19:35:48 +02:00
kassadin 6ad924a5ad fix prompt
1. Completion lost prompt
2. Original input is lost when canceling
2021-09-10 16:19:36 +08:00
Stefan Hojer 0bf9432bda
feat: disable plugin if fzf is not installed 2021-08-31 01:51:11 +02:00
Stefan Hojer daf2367e9d
feat: use fc instead of history 2021-08-31 01:29:18 +02:00
wzy da045d7f07
Fix #5 again 2021-08-05 23:15:12 +08:00
wzy 676e108c84
Fix #5 2021-08-05 11:34:57 +08:00
wzy 13dda2c877
Fix #3 2021-08-03 23:21:05 +08:00
Josh Skidmore d594846297 initiate fzf search with $BUFFER (if available) 2020-08-19 08:13:18 -04:00
Josh Skidmore 9a15d9792f properly handle zle widget 2020-08-19 07:32:18 -04:00
Josh Skidmore 78dec6460d use %Y-%m-%d %H:%M:%S format (24h) 2020-08-19 07:00:34 -04:00
Josh Skidmore 8378fcf053 use %Y-%m-%d %I:%M:%S' format 2020-08-19 06:57:16 -04:00
Josh Skidmore 0564606b88 rework exist if there is no history 2020-08-19 06:48:11 -04:00
Josh Skidmore 1eb912521a exit if there is no history 2020-08-19 06:39:46 -04:00
Josh Skidmore 76c63d36cc initial commit 2020-08-19 06:08:56 -04:00