Comparing version 0.9.0 to 0.10.0
{ | ||
"name": "node-fzf", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "fzf ( junegunn/fzf ) inspired cli utility for node", | ||
@@ -5,0 +5,0 @@ "main": "src/main.js", |
@@ -32,2 +32,3 @@ // Gracefully restore the CLI cursor on exit | ||
module.exports.getInput = getInput | ||
module.exports.cliColor = clc | ||
@@ -985,3 +986,13 @@ function getInput ( label, callback ) | ||
stdout.write( clcBgGray( clcFgArrow( '> ' ) ) ) | ||
if ( opts.prelinehook ) { | ||
stdout.write( opts.prelinehook( match.originalIndex ) ) | ||
} | ||
stdout.write( clcBgGray( item ) ) | ||
if ( opts.postlinehook ) { | ||
stdout.write( opts.postlinehook( match.originalIndex ) ) | ||
} | ||
stdout.write( '\n' ) | ||
@@ -991,3 +1002,13 @@ } else { | ||
stdout.write( ' ' ) | ||
if ( opts.prelinehook ) { | ||
stdout.write( opts.prelinehook( match.originalIndex ) ) | ||
} | ||
stdout.write( item ) | ||
if ( opts.postlinehook ) { | ||
stdout.write( opts.postlinehook( match.originalIndex ) ) | ||
} | ||
stdout.write( '\n' ) | ||
@@ -994,0 +1015,0 @@ } |
38945
941