-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Open File" Feature #346
Conversation
a9198c6
to
dc4ba7f
Compare
- Move `-Meditate` to open the current file - Add `-Library` to open the folder.
When Get-PSKoan is called with the user scope it needs to check if the folder actually exists.
- Use temp dir in show-karma test - Restructure tests to avoid duplication
fa5c876
to
d44205d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks OK to me, provided the default option in the switch for picking an editor allows for powershell ise for folks still beholden to it?
@steviecoaster yeah, PS ISE doesn't support a great deal of flexibility really, all it supports as far as I could find is a file path argument, much like most other editors will. We can always add new ones and reevaluate the solution as we go if we need to ^^ |
@vexx32 Hi Joel, sorry for the long delay, I've been super busy lately, and since I didn't have much experience with Pester I needed time to fix the tests. anyway, I'm happy you guys picked it up, I'm going to do the PSKoans test from the start and I'll let you know if I find any problem. 😊 |
@arefg not a problem! Hopefully everything works as expected! I'm looking to get this and other recent changes packed into a new release soon. 😊💖 |
PR Summary
Add functionality for opening current koan file instead of just the overall PSKoanLocation from
Show-Karma
Context
This PR supersedes #317, all credit for initial idea goes to @arefg -- thank you so much for the work you put in on this already, it really made this a hundred times easier. 😊 💖
Changes
-Library
switch.-Contemplate
switch to work as an "open current file in the set editor" with capability to recognisecode
andcode-insiders
as well asatom
and pass correct arguments for these editors to also go to the relevant line in the file.Checklist