PSFzf icon indicating copy to clipboard operation
PSFzf copied to clipboard

`Set-PsFzfOption` `PSReadlineChordReverseHistory` - Multi Line Command

Open mattcargile opened this issue 4 years ago • 3 comments

I want to look more at the .dll but I don't think it handles multi line commands. I think there needs new if logic to handle the backtick ( ` ) on particular lines within the ReverseLineReader.cs. Below is the way the Microsoft folks do it in the PSReadline repo sample.

https://github.com/PowerShell/PSReadLine/blob/dc38b451bee4bdf07f7200026be02516807faa09/PSReadLine/SamplePSReadLineProfile.ps1#L43

Here is an example screenshot.

image

mattcargile avatar Mar 18 '22 04:03 mattcargile

Good catch. It doesn't currently look at mult-line commands. Let me see how easy this is to add.

kelleyma49 avatar Mar 28 '22 00:03 kelleyma49

read-history-of-multiple-line-command

It would be awesome if -PSReadlineChordReverseHistory option shows the multiple-line command as a single line with fzf, but show the details(full multiple-lines) within the sidebar preview

snowman avatar Jun 15 '22 13:06 snowman

I'm going to attempt to touch this now.

EDIT 1: I couldn't get it fully. I spent too much time attempting to understand the code. I'm closer though.

mattcargile avatar Nov 26 '22 22:11 mattcargile