Add GitHub inspired file finder to search for and open any file
commit53a4979f6d3ef39cc82be7462d63ae2483efc9b5
authorJonas Fonseca <jonas.fonseca@gmail.com>
Mon, 16 Mar 2015 00:51:57 +0000 (15 20:51 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Mon, 16 Mar 2015 14:01:36 +0000 (16 10:01 -0400)
tree8f50bbb9271de54aec4aaa9cb64654490f82ae63
parent307b93fb0518823532361f07a0b35e2c90a009b1
Add GitHub inspired file finder to search for and open any file

The file finder has been added to a new UI module since it can
potentially be reused for the tree and blame views. It is hooked into
the open_blob_view method, and will be launch if no file has been
selected or if the users presses the key to open the blob view when
already in the blob view.

In its current form it is not well integrated with the rest of the view
code, since the file finder creates a separate window that is overlayed
the current view. If possible, code for maintaining the current position
and offset should be shared between this and the other view code.

Fixes #342
Makefile
NEWS.adoc
include/tig/blob.h
include/tig/prompt.h
include/tig/ui.h [copied from include/tig/blob.h with 74% similarity]
src/blob.c
src/prompt.c
src/ui.c [new file with mode: 0644]