Commit Graph

75 Commits

Author SHA1 Message Date
Gokcehan
d51e99adc1 close pipe and then wait command in a separate goroutine
Mentioned in #5.
2016-09-16 15:22:39 +03:00
Gokcehan
f82073603f clean command resources after preview script call
Mentioned in #5.
2016-09-16 13:27:38 +03:00
Gokcehan
0395f75ea9 break previewer output pipe when enough lines are read
Mentioned in #5.
2016-09-15 21:26:54 +03:00
Gokcehan
6094078185 buffer file and dir previews for drawing
Mentioned in #5.
2016-09-15 16:28:36 +03:00
Gokcehan
ee0f931db8 add command counts 2016-09-09 01:03:25 +03:00
Gokcehan
34c58b634a add basic readline shortcuts 2016-09-07 22:34:29 +03:00
Gokcehan
3d493e8271 use filepath module instead of path for portability
This should fix path separator confusion in windows.

Mentioned in #12.
2016-09-07 00:27:55 +03:00
KenjiTakahashi
ef340a533d Do binary check after calling previewer
Many files valid for previewer, such as archives, are treated as binary
and thus were not passed to the previewer.

Also sanitizes the previewer output, to some extent.
2016-09-01 21:11:03 +02:00
KenjiTakahashi
8d4a3192f1 Pass width and height to the previewer
This way, the script can do a little magic like

 head -n $2 $1 | highlight -O ansi --syntax ${1##*.}

to avoid reading whole (possibly huge) file.
2016-09-01 00:19:08 +02:00
Gokcehan
f356e6d694 handle all keys for mappings
Mentioned in #1.
2016-08-28 18:21:42 +03:00
Gokcehan
c19d3450a2 add an option to filter file content for preview
Mentioned in #5.
2016-08-28 15:04:57 +03:00
Gokcehan
e944639acf evaluate ansi escape codes while printing
Mentioned in #5.
2016-08-28 03:45:05 +03:00
Gokcehan
df6c23769f close termbox during skipping commands
Mentioned in #8.
2016-08-27 00:20:08 +03:00
Gokcehan
b90bd273f7 sort key bindings before listing
Mentioned in #1.
2016-08-24 13:08:49 +03:00
Gokcehan
fb26551693 rename redraw to renew 2016-08-24 12:36:52 +03:00
Gokcehan
19561f6531 show completion menu for multiple match 2016-08-21 18:41:03 +03:00
Gokcehan
66ce56eb6e get rid of residual escape codes after skipping shell commands
Some applications (e.g. vim) seem to leave behind escape codes in the
terminal after quitting. For some terminals (including xterm and
gnome-terminal) this is somehow interpreted as key strokes by lf. This
is a temporary fix to get rid of these escape codes by restarting
termbox until we can find a proper way to handle this.
2016-08-21 14:15:19 +03:00
Gokcehan
4b0a6d1013 cleanup 2016-08-17 23:28:42 +03:00
Gokcehan
70f8c1331d error context for nav and ui 2016-08-17 23:22:11 +03:00
Gokcehan
98839a42f2 basic shell completion for single match 2016-08-16 22:31:17 +03:00
Gokcehan
656a9c837a basic command completion for single match 2016-08-15 23:29:37 +03:00
Gokcehan
6a2bdf472b handle dir symlinks in preview and open 2016-08-14 15:15:54 +03:00
Gokcehan
84cf8e12c3 add cursor key bindings 2016-08-13 21:37:09 +03:00
Gokcehan
bdee73bc54 add error message for unhandled keys 2016-08-13 21:26:36 +03:00
Gokcehan
4b266c97e9 initial commit 2016-08-13 15:49:04 +03:00