Giter Site home page Giter Site logo

powershellrun's Introduction

๐Ÿ‘‹ Hi, I'm mdgrs.

I like making fun, cool, or useful things with PowerShell.

Check out my gist profile here too.

My Stats

mdgrs's GitHub stats

powershellrun's People

Contributors

andrewpla avatar mdgrs-mei avatar seeminglyscience avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

powershellrun's Issues

[Feature Request]: ScriptBlock and Script file entries

OS

  • Windows
  • macOS
  • Linux
  • Not specific to an OS

New feature description

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.

[Feature Request]: Use & operator to run favorite executables

OS

  • Windows
  • macOS
  • Linux
  • Not specific to an OS

New feature description

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.

[Feature Request]: Function to get the current default SelectorOption

OS

  • Windows
  • macOS
  • Linux
  • Not specific to an OS

New feature description

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.

[Bug]: Escape sequence characters are not ignored from search

OS

  • Windows
  • macOS
  • Linux

PSVersionTable

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

What happened?

The characters in escape sequence should not hit with search. My bad...

image

[Feature Request]: Add winget utility

OS

  • Windows
  • macOS
  • Linux
  • Not specific to an OS

New feature description

Adding winget operation as an utility entry would be useful. It should include Install, Upgrade and Uninstall features as tried in
#12 #24.

[Feature Request]: Consider adding command aliases

OS

  • Windows
  • macOS
  • Linux
  • Not specific to an OS

New feature description

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.

[Bug]: Setting nvim as a default editor doesn't work

OS

  • Windows
  • macOS
  • Linux

PSVersionTable

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

What happened?

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.

[Feature Request]: PowerShellRun version of Read-Host

OS

  • Windows
  • macOS
  • Linux
  • Not specific to an OS

New feature description

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.

[Bug]: Query error occurs when invoking PowerShellRun with a hot key

OS

  • Windows
  • macOS
  • Linux

PSVersionTable

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

What happened?

  1. Set a hot key with Set-PSRunPSReadLineKeyHandler
  2. Type something in prompt
  3. Launch PowerShellRun with the hot key

Then the following error occurs:

Invoke-PSRun: A parameter cannot be found that matches parameter name 'Query'.

[Documentation]: Invoke-PSRunPrompt

What needs to be improved?

We would like to see documentation for Invoke-PSRunPrompt function in the PowerShellRun as a generic selector section of the README.

[Feature Request]: Named parameters in PreviewAsyncScript

OS

  • Windows
  • macOS
  • Linux
  • Not specific to an OS

New feature description

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.

[Documentation]: Add Profile script sample

What needs to be improved?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.