File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ program
1515let config = new Config ( process . cwd ( ) ) ;
1616let id = program . args [ 0 ] ;
1717let timeFormat = config . set ( 'timeFormat' , program . opts ( ) . time_format ) . get ( 'timeFormat' , 'log' ) ;
18-
18+ const listSize = 30 ;
1919
2020function column ( str , n ) {
2121 if ( str . length > n ) {
@@ -29,7 +29,7 @@ function toHumanReadable(input) {
2929}
3030
3131if ( ! id ) {
32- lastFrames = Fs . all ( config . frameDir ) . slice ( - 10 ) ; // last 10 frames (one page of inquirer)
32+ lastFrames = Fs . all ( config . frameDir ) . slice ( - listSize ) ; // last listSize frames (one page of inquirer)
3333 lastFrames = lastFrames . map ( ( file ) =>
3434 Frame . fromFile ( config , Fs . join ( config . frameDir , file ) )
3535 ) ;
@@ -59,7 +59,7 @@ if (!id) {
5959 message : "Frame?" ,
6060 default : lastFramesDetails . length - 1 ,
6161 choices : lastFramesDetails ,
62- pageSize : 10 ,
62+ pageSize : listSize ,
6363 } ,
6464 ] )
6565 . then ( ( answer ) => {
You can’t perform that action at this time.
0 commit comments