Set multiple keyhandlers at once or have configuration file? #2382
SteveL-MSFT
started this conversation in
Ideas
Replies: 2 comments
|
Honestly, when I was first reading about PSReadLine and when the readme referenced the sample profile, I'd hoped it meant that PSReadLine supported loading its own .ps1 profile. While I know now that that's not the case, I was excited about that prospect, since, like yours, much of my $profile is devoted to PSReadLine options. With that in mind, I really like the idea of being able to export/import PSReadLine options. |
0 replies
|
A configuration file was definitely considered, probably even my first thought. I went with cmdlets for configuration because:
Binding multple key handlers with one invocation might be handy, but it does feel a bit like yak shaving at this point. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
A good portion of my
$profileis to set PSReadLine options and keyhandlers. I wonder if it makes sense to haveSet-PSReadLineKeyHandleraccept a hashtable of chords and functions/scriptblocks to allow setting multiple keyhandlers with one call to the cmdlet or alternatively, haveSet-PSReadLineConfigurationandExport-PSReadLineConfigurationwhereExportwould produce a json (?) file that contains all options and keyhandlers that could then be fed toSetto apply. This might also make it easier to share options/keyhandlers.All reactions