selector --bash -j -y -u -c 7,4,0,3 -q <(history)
}
+function selector-history-readline () {
+ selector --bash -j -y -u -c 7,4,0,3 -q <(history) -o /tmp/selector-cmd
+ READLINE_LINE=$(echo /tmp/selector-cmd)
+ READLINE_POINT="${#READLINE_LINE}"
+}
+
######################################################################
# Selector-based directory history
######################################################################
bind '"\C-[r":"\C-a\C-k selector-history\C-m"'
;;
+ --hist-readline)
+ # M-r puts the selected history line in place of the current one
+ bind '"\C-[r":"\C-a\C-k selector-history-readline\C-m"'
+ ;;
+
--cd)
# M-c provides a dynamic list of directories to cd into
bind '"\C-[c":"\C-a\C-k selector-cd-search\C-m"'