Skip to content

Commit

Permalink
REPL search history: add ^U binding (clears buffer)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobaldassi committed Apr 2, 2014
1 parent 1a0001a commit 0684a32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/LineEdit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,10 @@ function setup_search_keymap(hp)
11 => s->transition(s, state(s, p).parent),
# ^Y
25 => :(LineEdit.edit_yank(s); LineEdit.update_display_buffer(s, data)),
# ^U
21 => :(LineEdit.edit_clear(data.query_buffer);
LineEdit.edit_clear(data.response_buffer);
LineEdit.update_display_buffer(s, data)),
# Right Arrow
"\e[C" => s->(accept_result(s, p); edit_move_right(s)),
# Left Arrow
Expand Down

0 comments on commit 0684a32

Please sign in to comment.