This adds text editor support for VSCodium, and adds some general examples for changing the text editor.
Context
I became aware of this project recently after answering a question in the r/PowerShell subreddit. I noticed the list of known text editors is quite short, and I think it'll be useful to add other commonly used text editors that support line-jumping on the command line. I've started with VSCodium as it accepts the same command line arguments as VSCode, and doesn't require any functional changes to how the Editor setting is processed, but I'd be happy to include recognition for others like Notepad++, Vim, Sublime Text etc. if there's appetite for it.
I've also added a couple of examples for Get-PSKoansSetting and Set-PSKoansSetting for reading/changing the text editor setting, as I noticed that there weren't any references to them in the docs for those functions.
As for Pester tests, I don't believe any new ones are required for this change, as the functionality of Show-Karma is identical and the module help tests cover the docs changes. I did however notice there aren't any in place for the block handling GitHub Atom, but this could be rectified later with changes/tests for supporting other text editors.
Changes
Add VSCodium text editor support for Show-Karma -Contemplate
Add codium to list of known editors in docs for Show-Karma
Add example in docs for Get-PSKoanSetting for retrieving editor
Add example in docs for Set-PSKoanSetting for changing editor
Checklist
[x] Pull Request has a meaningful title.
[x] Summarised changes.
[x] Pull Request is ready to merge & is not WIP.
[x] Added tests / only testable interactively.
Make sure you add a new test if old tests do not effectively test the code changed.
[x] Added documentation / opened issue to track adding documentation at a later date.
PR Summary
This adds text editor support for VSCodium, and adds some general examples for changing the text editor.
Context
I became aware of this project recently after answering a question in the r/PowerShell subreddit. I noticed the list of known text editors is quite short, and I think it'll be useful to add other commonly used text editors that support line-jumping on the command line. I've started with VSCodium as it accepts the same command line arguments as VSCode, and doesn't require any functional changes to how the Editor setting is processed, but I'd be happy to include recognition for others like Notepad++, Vim, Sublime Text etc. if there's appetite for it.
I've also added a couple of examples for
Get-PSKoansSetting
andSet-PSKoansSetting
for reading/changing the text editor setting, as I noticed that there weren't any references to them in the docs for those functions.As for Pester tests, I don't believe any new ones are required for this change, as the functionality of
Show-Karma
is identical and the module help tests cover the docs changes. I did however notice there aren't any in place for the block handling GitHub Atom, but this could be rectified later with changes/tests for supporting other text editors.Changes
Show-Karma -Contemplate
Show-Karma
Get-PSKoanSetting
for retrieving editorSet-PSKoanSetting
for changing editorChecklist