mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 00:53:42 -05:00
Updated Examples (markdown)
@@ -113,8 +113,6 @@ __fzf_history ()
|
|||||||
builtin history -c;
|
builtin history -c;
|
||||||
builtin history -r;
|
builtin history -r;
|
||||||
builtin typeset \
|
builtin typeset \
|
||||||
READLINE_LINE_OLD="$READLINE_LINE" \
|
|
||||||
READLINE_POINT_OLD="$READLINE_POINT"\
|
|
||||||
READLINE_LINE_NEW="$(
|
READLINE_LINE_NEW="$(
|
||||||
HISTTIMEFORMAT= builtin history |
|
HISTTIMEFORMAT= builtin history |
|
||||||
command fzf +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r |
|
command fzf +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r |
|
||||||
@@ -127,9 +125,8 @@ __fzf_history ()
|
|||||||
: end
|
: end
|
||||||
'
|
'
|
||||||
)";
|
)";
|
||||||
|
READLINE_LINE="${READLINE_LINE:+${READLINE_LINE:0:READLINE_POINT}}${READLINE_LINE_NEW}${READLINE_LINE:+${READLINE_LINE:READLINE_POINT}}";
|
||||||
READLINE_LINE="${READLINE_LINE_OLD:+${READLINE_LINE_OLD:0:READLINE_POINT_OLD}}${READLINE_LINE_NEW}${READLINE_LINE_OLD:+${READLINE_LINE_OLD:READLINE_POINT_OLD}}";
|
READLINE_POINT="$((READLINE_POINT + ${#READLINE_LINE_NEW}))"
|
||||||
READLINE_POINT="$((READLINE_POINT_OLD + ${#READLINE_LINE_NEW}))"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
builtin set -o histexpand;
|
builtin set -o histexpand;
|
||||||
|
|||||||
Reference in New Issue
Block a user