From 58a8c58779a3049f18e938b5d136008353f96521 Mon Sep 17 00:00:00 2001 From: szktkfm Date: Sun, 28 Apr 2024 21:35:18 +0900 Subject: [PATCH] update README --- README.md | 4 ++++ table.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a15e9af..3bc81b5 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,9 @@ When multiple tables are present, you will be prompted to select the table you w +You can delegate the editing of a cell to your external editor set in the `$EDITOR` environment variable. + + ## ⌨️ Key Bindings | Key | Action | @@ -81,6 +84,7 @@ When multiple tables are present, you will be prompted to select the table you w | `g`/`home` | Go to start | | `G`/`end` | Go to end | | `i` | Insert mode | +| `I` | Open `$EDITOR` | | `esc`/`ctrl+c` | Normal mode | | `o`/`vo` | Add row/column | | `dd`/`vd` | Delete row/column | diff --git a/table.go b/table.go index b21b880..b296921 100644 --- a/table.go +++ b/table.go @@ -198,7 +198,7 @@ func (k keyMap) FullHelp() [][]key.Binding { return [][]key.Binding{ {k.lineUp, k.lineDown, k.left, k.right, k.pageUp, k.pageDown, k.halfPageUp, k.halfPageDown, k.gotoTop, k.gotoBottom}, - {k.insertMode, k.normalMode, k.addRowCol, k.delRowCol, + {k.insertMode, k.editor, k.normalMode, k.addRowCol, k.delRowCol, k.yank, k.paste, k.quit, k.help}, } }