9 Commits
Author SHA1 Message Date
Dongbo Wang 835bfd2bf8 Skip the AST analysis when command-line input has any parsing errors (#3075) 2021-12-02 16:24:09 -08:00
Dongbo Wang 1280763116 Make the default sensitive history scrubbing function a little smarter (#2921) 2021-10-13 17:43:02 -07:00
Dongbo Wang fd9980642c Fix incremental history saving when the history queue is full (#1602) 2020-06-15 10:00:44 -07:00
Dongbo Wang 24636202f8 Relax the sensitive words we filter (#1517) 2020-05-12 13:43:58 -07:00
Dongbo Wang fd13554df8 Preserve and clear the saved current line properly (#1259)
1. Preserve the saved current line and the history index while in a series of history commands.
    So when switching between different history command, such as from `F8`/`Shift+F8` (`HistorySearchBackward` and `HistorySearchForward`) to `UpArrow`/`DownArrow`  (recall history) or from `Ctrl+r`/`Ctrl+s` to `UpArrow`/`DownArrow`, the history command can continue to work as expected.
2. Clear the saved current line when we are out of a series of history commands.
    So the saved line will not leak to another unrelated history search.
2020-01-01 22:44:46 -08:00
Dongbo Wang 11d5e5081e Handle 'PSObject' correctly so that script block handlers works for 'AddToHistoryHandler' (#1068) 2019-09-26 10:17:21 -07:00
Dongbo Wang 239955c035 Filter sensitive history items and avoid writing them to the history file (#1058) 2019-09-23 13:20:15 -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
Jason Shirk f1705e9bb2 Switch from MSTest to xUnit, enable tests in AppVeyor (#600) 2017-12-15 11:59:57 -08:00