mirror of https://github.com/curusarn/resh
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
708 B
28 lines
708 B
|
|
# shellcheck source=hooks.sh
|
|
. ~/.resh/hooks.sh
|
|
|
|
__resh_widget_arrow_up() {
|
|
(( __RESH_HISTNO++ ))
|
|
BUFFER="$(__resh_collect --recall --histno "$__RESH_HISTNO" 2> ~/.resh/arrow_up_last_run_out.txt)"
|
|
}
|
|
__resh_widget_arrow_down() {
|
|
(( __RESH_HISTNO-- ))
|
|
BUFFER="$(__resh_collect --recall --histno "$__RESH_HISTNO" 2> ~/.resh/arrow_down_last_run_out.txt)"
|
|
}
|
|
__resh_widget_control_R() {
|
|
# resh-collect --hstr
|
|
hstr
|
|
}
|
|
|
|
__resh_widget_arrow_up_compat() {
|
|
__bindfunc_compat_wrapper __resh_widget_arrow_up
|
|
}
|
|
|
|
__resh_widget_arrow_down_compat() {
|
|
__bindfunc_compat_wrapper __resh_widget_arrow_down
|
|
}
|
|
|
|
__resh_widget_control_R_compat() {
|
|
__bindfunc_compat_wrapper __resh_widget_control_R
|
|
}
|
|
|