Skip to content

Commit

Permalink
[features-] add sysedit-cell command, using external editor
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef committed Nov 29, 2024
1 parent 7e75dee commit 7023852
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion visidata/features/sysedit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from copy import copy
from visidata import vd, asyncthread, Path, Sheet, IndexSheet
from visidata import vd, asyncthread, Path, Sheet, IndexSheet, TableSheet


@Sheet.api
Expand Down Expand Up @@ -40,4 +40,5 @@ def syseditCells_async(sheet, cols, rows, filetype=None):
col.setValuesTyped(rows, *[tempcol.getTypedValue(r) for r in tempvs.rows])


TableSheet.addCommand('^O', 'sysedit-cell', 'cursorCol.setValues([cursorRow], vd.launchExternalEditor(cursorDisplay))', 'edit current cell in external $EDITOR')
Sheet.addCommand('g^O', 'sysedit-selected', 'syseditCells(visibleCols, onlySelectedRows)', 'edit rows in $EDITOR')

0 comments on commit 7023852

Please sign in to comment.