20 Commits
Author SHA1 Message Date
Andy Jordan 7a5826bac3 Fix hard-coded continuation prompt in tests
These tests were using a hard-coded continuation prompt (and its length)
which blocks tests for the upcoming screen reader mode.

This is also simply a reasonable refactor, thanks Claude (for trying).
2025-08-27 16:52:03 -07:00
Dongbo Wang fbdf7faf0b Fix a few VI key handlers to close edit group properly (#3845) 2023-10-24 09:46:18 -07:00
Maxime Labelle 1966609701 [vi-mode] Undo now leaves the cursor under the position at the start of the deletion (#2045) 2021-09-21 23:04:43 -07:00
Maxime Labelle 47fb95728c Make d0 to delete to the start of the current logical line in a multiline buffer in VI mode (#2002) 2021-02-09 21:45:37 -08:00
Maxime Labelle 1f6c5c0bc0 Deleting backward to or until a character should preserve the character under the cursor (#2007) 2020-12-07 11:43:30 -08:00
Maxime Labelle 352edb9c62 Use 'd^' to delete from the first non-blank character of a logical line (#2001) 2020-12-07 11:37:10 -08:00
Dongbo Wang fd1265e385 Add the prediction ListView and also hook up with the CommandPrediction APIs introduced in PS 7.1 (#1909) 2020-11-03 14:17:37 -08:00
Maxime Labelle a45ab815a8 vi-mode: Add dgg to delete from the beginning of the buffer to the current logical line (#1752) 2020-09-10 11:45:27 -07:00
Maxime Labelle 70249682ed vi-mode: Use dk to delete the previous n logical lines and the current logical line in a multi-line buffer (#1737) 2020-08-12 12:00:22 -07:00
Maxime Labelle 1d3964160d vi-mode - Make 'dj' delete the current and next n logical lines (#1697) 2020-07-29 16:51:15 -07:00
Maxime Labelle 8b0cc85965 vi-mode: Make 'D' and 'd$' delete to the end of the current logical line (#1695) 2020-07-26 10:26:08 -07:00
Maxime Labelle c7ef3bd0f6 vi-mode: Add 'dG' to delete to the end of multiline buffer (#1692) 2020-07-25 11:06:54 -07:00
Dongbo Wang 958ce3aeb2 Fix a few VI edit mode issues (#1262) 2020-01-07 13:08:39 -08:00
Maxime Labelle 197a3fdc83 In VI mode, moving left or right should stick cursor on logical line (#1120) 2019-10-29 16:56:59 -07:00
Jason Shirk a7af25aa37 Stop dispatching on ConsoleKeyInfo (#831)
There are likely issues introduced by this PR,
but I'm merging for a new Beta so this code gets more testing.

* Introduce PSKeyInfo type alias
* Explicit conversions b/w ConsoleKeyInfo and PSKeyInfo
* Change tests to use actual ConsoleKeyInfo data
* Add fr-FR keyboard layout tests
* Add KeyInfo-ru-RU-windows.json (#839)

All impossible without Shift shortcuts labeled as "Investigate: true"
Alt+Spacebar tracked by windows itself

* Add KeyInfo for Polish (Programmers) layout on Windows and Linux (#870)

On Windows *Alt+Spacebar* is hijacked by Windows
On Linux any *Alt+F1-12* combination was not detected
2019-03-20 16:14:05 -07:00
Maxime Labelle 803008a092 ViAppendLine crashes with cursor at end of input on empty line (#797)
Fix #796
2018-11-09 10:57:57 -08:00
srdubya 8e7900b486 Fixed CompleteMenu in vi insert mode (#656)
Fix by exiting insert mode to clear the GroupEdit and then re-entering insert mode.

Fixes #651
2018-03-25 10:14:52 -07:00
srdubya 91d6eeda30 Support Ctrl+u in vi insert mode (#637)
Fixes #628
2018-03-20 11:17:58 -07:00
srdubya c385dd5bcb Fix 2 vi-mode cursor placement issues (#627)
Fix cursor placement after `cf`
Also fix cursor placement with `s` at EOL.

Fix #623
2018-01-28 11:53:29 -08:00
Jason Shirk f1705e9bb2 Switch from MSTest to xUnit, enable tests in AppVeyor (#600) 2017-12-15 11:59:57 -08:00