From f271865808b5ae09ed42dd1e24080c6795a4832e Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Tue, 8 Oct 2024 14:11:27 +1100 Subject: [PATCH] Updated readme --- README.md | 20 +++++++++++--------- commandmap.go | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 334d932..b89d339 100644 --- a/README.md +++ b/README.md @@ -45,19 +45,21 @@ Editing: | `e` | Edit cell value | | `r` | Replace cell value | | `a` | Insert row below cursor and edit value | +| `O` | Insert column to the right of cursor | | `D` | Delete current row | Others: -| Key | Action | -|:-----------|:--------------------| -| `{` | Reduce cell width | -| `}` | Increase cell width | -| `/` | Search for cell matching regular expression | -| `n` | Find next cell matching search | -| `y` | Copy cell value | - | `p` | Paste cell value | -| `:` | Enter command | +| Key | Action | +|:----|:--------------------------------------------| +| `{` | Reduce cell width | +| `}` | Increase cell width | +| `/` | Search for cell matching regular expression | +| `n` | Find next cell matching search | +| `N` | Find previous cell matching search | +| `y` | Copy cell value | +| `p` | Paste cell value | +| `:` | Enter command | ## Commands diff --git a/commandmap.go b/commandmap.go index ddbd9fe..09f237c 100644 --- a/commandmap.go +++ b/commandmap.go @@ -175,7 +175,7 @@ func (cm *CommandMapping) RegisterViewCommands() { for { cellX-- - if cellY < 0 { + if cellX < 0 { cellX = width - 1 cellY-- if cellY < 0 {