From 8c3e878548552cafea96d4329fa469b4f21ffa4d Mon Sep 17 00:00:00 2001 From: assumecs Date: Thu, 29 Jul 2021 11:35:50 +0800 Subject: [PATCH] add slug to list for another filename option --- lib/commands/list.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/commands/list.js b/lib/commands/list.js index ea0b0a0..4050a8a 100644 --- a/lib/commands/list.js +++ b/lib/commands/list.js @@ -72,14 +72,15 @@ cmd.handler = function(argv) { if (problem.locked) ++stat.locked; if (problem.starred) ++stat.starred; - log.printf('%s %s %s [%=4s] %-60s %-6s (%s %%)', + log.printf('%s %s %s [%=4s] %-60s %-6s (%s %%) %-60s', (problem.starred ? chalk.yellow(icon.like) : icon.empty), (problem.locked ? chalk.red(icon.lock) : icon.nolock), h.prettyState(problem.state), problem.fid, problem.name, h.prettyLevel(problem.level), - (problem.percent || 0).toFixed(2)); + (problem.percent || 0).toFixed(2), + problem.slug); if (argv.extra) { let badges = [problem.category];