diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-02-03 19:01:52 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-02-03 19:01:52 +0200 |
| commit | 4ad772a1e93a068a1f4c622610efc92cacd550b7 (patch) | |
| tree | 184a087e888dde8bcfe8e1ab59150c945499052e | |
| parent | cac7be6c22bafc0d43fe209813c1fc1ac31a0190 (diff) | |
Added v/V in visual/visual line modes to switch between the 2
| -rw-r--r-- | internal/client/ui/viminput/viminput.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/client/ui/viminput/viminput.go b/internal/client/ui/viminput/viminput.go index a24eef8..f9c0319 100644 --- a/internal/client/ui/viminput/viminput.go +++ b/internal/client/ui/viminput/viminput.go @@ -1703,6 +1703,13 @@ func (m *Model) handleVisualModeKeys(key tea.KeyMsg) { return } + if motion == "V" { + m.SetCursorColumn(min(m.cursorColumn, len(m.lines[m.cursorLine])-1)) + m.mode = VisualLineMode + m.count = NoCount + return + } + if motion != "x" && motion != "d" && motion != "c" && motion != "y" && motion != "p" && motion != "P" { return @@ -1874,6 +1881,12 @@ func (m *Model) handleVisualLineModeKeys(key tea.KeyMsg) { return } + if motion == "v" { + m.mode = VisualMode + m.count = NoCount + return + } + if motion != "x" && motion != "d" && motion != "c" && motion != "y" && motion != "p" && motion != "P" { return |
