kelleyma49 / fasdr Goto Github PK
View Code? Open in Web Editor NEWPowerShell command line productivity booster
License: MIT License
PowerShell command line productivity booster
License: MIT License
Similar to fzf's - example:
^music prefix-exact-match Items that start with music
exact search for suffix seems to be case-sensitive.
Similar to fzf's:
# Files under parent directory that match `fzf`
vim ../fzf**<TAB>
similar to fzf's syntax.
like fzf's:
# Directories under current directory (single-selection)
cd **<TAB>
Add markdown for module documentation - use PlatyPs like PSReadline.
if user presses '?', show special characters and help strings in tab completion
Add zipline ability
Split-Path ~ IsAbsolute
returns $false
, which means path won't be added.
Possibly using method described here:
http://stackoverflow.com/questions/7195337/how-do-i-get-a-path-with-the-correct-canonical-case-in-powershell
via Save-FasdrDatabase
?
Relative paths should not be added to database.
Add a mode where results are filtered based on git-ls-files. Maybe add a git Provider?
Size of saved database is currently unlimited. Add global to specify database size.
If you insert a path that is already in the database with a '', the path with be inserted twice.
In PowerShell 7, Import-Module Fasdr
results in:
InvalidOperation: <User profile path>\Documents\PowerShell\Modules\Fasdr\1.0.135\Fasdr.psm1:288
Line |
288 | if ((test-path $path) -and $global:fasdrDatabase.AddEntry($fi …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
Are there any plans to support 7 or any idea what needs to be done?
Hello!
I tried importing the module on Mac and got few errors import-module fasdr
PS /Users/vors/dev/Pester> import-module fasdr New-Object : Cannot convert argument "0", with value: "System.IO.Abstractions.FileSystem", for "Database" to type "System.IO.Abstractions.IFileSystem": "Cannot convert the "System.IO.Abstractions.FileSystem" value of type "System.IO.Abstractions.FileSystem" to type "System.IO.Abstractions.IFileSystem"." At /Users/vors/.local/share/powershell/Modules/Fasdr/1.0.135/Fasdr.psm1:237 char:26
+ ... rDatabase = New-Object Fasdr.Backend.Database -ArgumentList $fileSyst ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-Object], MethodException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
database is null!
You cannot call a method on a null-valued expression.
At /Users/vors/.local/share/powershell/Modules/Fasdr/1.0.135/Fasdr.psm1:241 char:2
+ $global:fasdrDatabase.Load()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At /Users/vors/.local/share/powershell/Modules/Fasdr/1.0.135/Fasdr.psm1:488 char:1
+ $location = $global:fasdrDatabase.GetProviderDatabaseLocation($provid ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At /Users/vors/.local/share/powershell/Modules/Fasdr/1.0.135/Fasdr.psm1:489 char:17
+ if (!(Test-Path $location)) {
+ ~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand
I assumed it could work on unix, because Travis CI badge indicates that it has a CI on non-windows platforms. Is it a case?
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.