From 0f0a59488f1cf4cff944b32f0482c020916954c6 Mon Sep 17 00:00:00 2001 From: midichef <67946319+midichef@users.noreply.github.com> Date: Wed, 26 Jun 2024 23:58:54 -0700 Subject: [PATCH] [modify-] clarify prompt for add-rows --- visidata/modify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visidata/modify.py b/visidata/modify.py index d3d2d3123..719c29c33 100644 --- a/visidata/modify.py +++ b/visidata/modify.py @@ -330,7 +330,7 @@ def new_rows(sheet, n): return [sheet.newRow() for i in range(n)] Sheet.addCommand('a', 'add-row', 'addRows([newRow()], index=cursorRowIndex); cursorDown(1)', 'append a blank row') -Sheet.addCommand('ga', 'add-rows', 'n=int(input("add rows: ", value=1)); addRows(new_rows(n), index=cursorRowIndex); cursorDown(1)', 'append N blank rows') +Sheet.addCommand('ga', 'add-rows', 'n=int(input("add how many rows: ", value=1)); addRows(new_rows(n), index=cursorRowIndex); cursorDown(1)', 'append N blank rows') Sheet.addCommand('za', 'addcol-new', 'addColumnAtCursor(SettableColumn(input("column name: ")))', 'append an empty column') Sheet.addCommand('gza', 'addcol-bulk', 'addColumnAtCursor(*(SettableColumn() for c in range(int(input("add columns: ")))))', 'append N empty columns')