Skip to content

Commit 5dc3904

Browse files
author
Andreas Müller
committed
30 entries
1 parent 2b2421e commit 5dc3904

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gtt-edit.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ program
1515
let config = new Config(process.cwd());
1616
let id = program.args[0];
1717
let timeFormat = config.set('timeFormat', program.opts().time_format).get('timeFormat', 'log');
18-
18+
const listSize = 30;
1919

2020
function column(str, n){
2121
if(str.length > n) {
@@ -29,7 +29,7 @@ function toHumanReadable(input) {
2929
}
3030

3131
if (!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) => {

0 commit comments

Comments
 (0)