Skip to content

Commit

Permalink
[features-] sysedit-cell: modify cell only if value changes
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef committed Dec 28, 2024
1 parent f40ba4c commit cabc38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/features/sysedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +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')
TableSheet.addCommand('^O', 'sysedit-cell', 'cd = cursorDisplay; e = vd.launchExternalEditor(cursorDisplay); cursorCol.setValues([cursorRow], e) if e != cd else None', 'edit current cell in external $EDITOR')
Sheet.addCommand('g^O', 'sysedit-selected', 'syseditCells(visibleCols, onlySelectedRows)', 'edit rows in $EDITOR')

0 comments on commit cabc38e

Please sign in to comment.