I like making fun, cool, or useful things with PowerShell.
Check out my gist profile here too.
App, Utility and Function Launcher for PowerShell.
License: MIT License
I like making fun, cool, or useful things with PowerShell.
Check out my gist profile here too.
filter can not input CJK text
With Function entries, you have to add functions to the global scope. If we don't want to use the global scope, registering ScriptBlocks directly should be useful.
If you manage many ps1 files instead of making functions in a file, adding those script files as callable entries should be handy too.
Currently favorite files are invoked with Invoke-Item
command which leads to opening executable files in another window. It should be better to run them on the same terminal as the one where PowerShellRun is running. It's also better for the consistency with the Executable category entries.
When creating a nested selector menu in the Function entry that modifies the prompt or any other options, you need to get the current default option.
Instead of passing it through global variables, which prevents the functions from being written in a generic way, it should be better to add a function to get the default option.
Name Value
---- -----
PSVersion 7.4.2
PSEdition Core
GitCommitId 7.4.2
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0โฆ}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
The characters in escape sequence should not hit with search. My bad...
The command names in the module are long, which is perfectly acceptable. But the purpose of the module, as I see it anyway, is to make is easier for the user to do things without a lot of typing. I think you could almost create a domain specific language for this module like Pester. Instead of having to type Invoke-PSRun
, let me type psrun
. That's just one example.
Name Value
---- -----
PSVersion 7.4.1
PSEdition Core
GitCommitId 7.4.1
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0โฆ}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
If you open a file in the File Manager or a Favorite file entry with this editor script, the terminal text editor cannot show it's output.
Set-PSRunDefaultEditorScript -ScriptBlock {
param($path)
nvim $path
}
You cannot use class methods and you need to use & operator to invoke the editor script same as GlobalStore.invokeFile
.
We should add comment based help to all the public functions.
Like in the Select-String viewer example #25, there are cases where you want to get an input from the user. To make the interface consistent, we need a way to use the prompt without entries or Action Window instead of using Read-Host.
Name Value
---- -----
PSVersion 7.4.1
PSEdition Core
GitCommitId 7.4.1
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0โฆ}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Then the following error occurs:
Invoke-PSRun: A parameter cannot be found that matches parameter name 'Query'.
PgDn/Up keys should scroll entries. Shift+PgDn/PgUp should scroll the Preview.
We would like to see documentation for Invoke-PSRunPrompt
function in the PowerShellRun as a generic selector
section of the README.
Currently the argument list is passed as single element even if it's an array. It should support slitting parameters to named variables defined in param block.
As pointed out in #48, it is not clear that the user is expected to write PowerShellRun configurations in their profile script. We should add a profile script sample to the README.
-Category All
works but -Category all
does not work. It should also allow lower cases.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.