mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 19:03:11 +00:00
Different marking of current history entry
This commit is contained in:
parent
47eacda735
commit
8d0e727200
1 changed files with 6 additions and 3 deletions
|
@ -65,10 +65,13 @@ _zhcw_main() {
|
|||
|
||||
# All entries should have multilines replaced
|
||||
disp_list=( "${(@)disp_list//$'\n'/\\n}" )
|
||||
# ... and truncated to display width
|
||||
disp_list=( "${(@)disp_list/(#m)*/${MATCH[1,COLUMNS-6]}}" )
|
||||
# ... and truncated to display width, and
|
||||
# also preceeded by two spaces
|
||||
disp_list=( "${(@)disp_list/(#m)*/ ${MATCH[1,COLUMNS-8]}}" )
|
||||
|
||||
disp_list[on_page_idx]="> ${disp_list[on_page_idx]} <"
|
||||
local entry="${disp_list[on_page_idx]}"
|
||||
entry[1]='>'
|
||||
disp_list[on_page_idx]="$entry"
|
||||
|
||||
zle -M -- \
|
||||
"Searching for '$BUFFER'. "\
|
||||
|
|
Loading…
Reference in a new issue