spreadsheet

terminal spreadsheet application
git clone https://git.ce9e.org/spreadsheet.git

commit
a29f06d3163f02f5d4fe777801b488fd0223e9bc
parent
14225f3943d190486a4bc35c6aad39907b345748
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-09-07 07:18
visual: add del as alias for d

Diffstat

M sheet/__main__.py 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/sheet/__main__.py b/sheet/__main__.py

@@ -255,9 +255,9 @@ class App(boon.App):
  255   255             elif key == boon.KEY_ESC:
  256   256                 self.cancel_drag()
  257   257         elif self.visual is not None:
  258    -1             if key in ['y', 'd']:
   -1   258             if key in ['y', 'd', boon.KEY_DEL]:
  259   259                 self.copy()
  260    -1                 if key == 'd':
   -1   260                 if key in ['d', boon.KEY_DEL]:
  261   261                     for pos in iter_range(self.cursor, self.visual):
  262   262                         self.sheet.set(pos, '')
  263   263                 self.cursor_x, self.cursor_y = self.visual