From 4917716c9edd596d4c53cfd9764913b81935bc30 Mon Sep 17 00:00:00 2001 From: midichef <67946319+midichef@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:48:35 -0800 Subject: [PATCH] [columns-] describe key-selected action as set, not toggle --- visidata/metasheets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visidata/metasheets.py b/visidata/metasheets.py index e41c8ced5..215d84a30 100644 --- a/visidata/metasheets.py +++ b/visidata/metasheets.py @@ -134,7 +134,7 @@ def join_cols(sheet): Sheet.addCommand('C', 'columns-sheet', 'vd.push(ColumnsSheet(name+"_columns", source=[sheet]))', 'open Columns Sheet: edit column properties for current sheet') # used ColumnsSheet, affecting the 'row' (source column) -ColumnsSheet.addCommand('g!', 'key-selected', 'for c in onlySelectedRows: c.sheet.setKeys([c])', 'toggle selected source columns as key columns') +ColumnsSheet.addCommand('g!', 'key-selected', 'for c in onlySelectedRows: c.sheet.setKeys([c])', 'set selected source columns as key columns') ColumnsSheet.addCommand('gz!', 'key-off-selected', 'for c in onlySelectedRows: c.sheet.unsetKeys([c])', 'unset selected source columns as key columns') ColumnsSheet.addCommand('g-', 'hide-selected', 'onlySelectedRows.hide()', 'hide selected source columns')