From 96215c4619018d9d8d67d11d75deea571eb7ab9f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 1 Feb 2014 01:56:32 +0900 Subject: [PATCH] CTRL-L to clear and redraw the screen --- fzf | 6 +++--- fzf.gemspec | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fzf b/fzf index 019420b..c4bc1d5 100755 --- a/fzf +++ b/fzf @@ -7,13 +7,13 @@ # / __/ / /_/ __/ # /_/ /___/_/ Fuzzy finder for your shell # -# Version: 0.7.1 (January 31, 2014) +# Version: 0.7.2-devel (February 1, 2014) # # Author: Junegunn Choi # URL: https://github.com/junegunn/fzf # License: MIT # -# Copyright (c) 2013 Junegunn Choi +# Copyright (c) 2014 Junegunn Choi # # MIT License # @@ -683,7 +683,6 @@ class FZF def start_renderer Thread.new do begin - refresh while blk = @queue.shift blk.call refresh @@ -766,6 +765,7 @@ class FZF }, ctrl(:b) => proc { cursor = [0, cursor - 1].max; nil }, ctrl(:f) => proc { cursor = [input.length, cursor + 1].min; nil }, + ctrl(:l) => proc { render { C.clear; C.refresh }; update_list true }, :alt_b => proc { backword.call; nil }, :alt_f => proc { cursor += (input[cursor..-1].index(/(\S\s)|(.$)/) || -1) + 1 diff --git a/fzf.gemspec b/fzf.gemspec index 1d777f0..bbfdc1e 100644 --- a/fzf.gemspec +++ b/fzf.gemspec @@ -1,7 +1,7 @@ # coding: utf-8 Gem::Specification.new do |spec| spec.name = 'fzf' - spec.version = '0.7.1' + spec.version = '0.7.2' spec.authors = ['Junegunn Choi'] spec.email = ['junegunn.c@gmail.com'] spec.description = %q{Fuzzy finder for your shell}