7 Commits
Author SHA1 Message Date
Maxime Labelle 9e09968960 Prevent crash in GotoFirstNonBlankOfLine (#2050) (#2051) 2021-02-09 22:21:14 -08:00
Maxime Labelle 9ad8eb6769 Ensure the desired column number is used while moving up or down in VI mode (#1122) 2019-12-09 13:48:14 -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
Maxime Labelle 3a97b701d7 Fixed some unit-tests that were relying on an implicit definition of "_" at the top of the file. (#886)
* Added missing [SkippableFact] attribute to prevent test from failing instead of being skipped.
* Fix failing unit-tests that used an aliased member which defaults to handling upper case/lower case keys differently.

Previously, sequence of keys were interpreted using a language hack at the top of the file.
The "using _ = Keys;" statement defaulted to a class that contained both "K" and "ucK" for lower-case 'K' and upper-case 'K' respectively.
Now, "_" is a member of the class that points to a "KbdLayout" class with members "k" and "K" respectively.

Therefore, the unit-test was broken when the definition of "_" changed.
2019-04-11 12:52:12 -07:00
Maxime Labelle 929f4f9bf4 Supports '_' and '$' to move to the beginning and end of the logical line in Vi mode. (#812)
Fix #795
2019-03-21 15:27:53 -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 274381a89e Support vi mode 'G' and 'gg' movements in multi-line buffers (#793)
Fix #789
2018-11-05 12:34:17 -08:00