Last active
February 27, 2023 21:25
-
-
Save farukcan/4dbd669a37dc1bc9d7d9df38c85981ca to your computer and use it in GitHub Desktop.
Visual Powershell Files and Folders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "Files and Folders", | |
"Author": "farukcan", | |
"Website": "https://github.com/farukcan/visualps", | |
"Commands": [ | |
{ | |
"Name": "ππ List Workspace", | |
"Scripts": [ | |
"ls" | |
] | |
}, | |
{ | |
"Name": "ππ List Workspace Folder", | |
"Scripts": [ | |
"ls \"{text:Path to folder}\"" | |
] | |
}, | |
{ | |
"Name": "βπ Create Folder", | |
"Scripts": [ | |
"New-Item -Path \"{folder:Create To Here}\\{text:Folder Name}\" -ItemType Directory" | |
] | |
}, | |
{ | |
"Name": "βπ Create Folder to Workspace", | |
"Scripts": [ | |
"New-Item -Path \"{text:Folder Name}\" -ItemType Directory" | |
] | |
}, | |
{ | |
"Name": "βπ Create File", | |
"Scripts": [ | |
"New-Item -Path \"{save:File Name}\" -ItemType File" | |
] | |
}, | |
{ | |
"Name": "βπ Create File to Workspace", | |
"Scripts": [ | |
"New-Item -Path \"{text:File Name}\" -ItemType File" | |
] | |
}, | |
{ | |
"Name": "ππ Copy Folder", | |
"Scripts": [ | |
"Copy-Item -Path \"{folder:Select Folder To Copy}\" -Destination \"{folder:Destination Path}\\{text:Target Folder Name}\" -Recurse" | |
] | |
}, | |
{ | |
"Name": "ππ Copy Folder to Workspace", | |
"Scripts": [ | |
"Copy-Item -Path \"{folder:Select Folder To Copy}\" -Destination \"{text:Target Folder Name}\" -Recurse" | |
] | |
}, | |
{ | |
"Name": "ππ Copy File", | |
"Scripts": [ | |
"Copy-Item -Path \"{file:Select File to Copy}\" -Destination \"{save:Target}\"" | |
] | |
}, | |
{ | |
"Name": "ππ Copy File to Workspace", | |
"Scripts": [ | |
"Copy-Item -Path \"{file:Select File to Copy}\" -Destination \"{text:Target}\"" | |
] | |
}, | |
{ | |
"Name": "ποΈπ Delete Folder", | |
"Scripts": [ | |
"Remove-Item -Path \"{folder:Target Folder}\" -Recurse" | |
] | |
}, | |
{ | |
"Name": "ποΈπ Delete File", | |
"Scripts": [ | |
"Remove-Item -Path \"{file:Target File}\"" | |
] | |
}, | |
{ | |
"Name": "ππ Move Folder", | |
"Scripts": [ | |
"Move-Item -Path \"{folder:Select Folder To Move}\" -Destination \"{folder:Destination Path}\\{text:Target Folder Name}\"" | |
] | |
}, | |
{ | |
"Name": "ππ Move Folder To Workspace", | |
"Scripts": [ | |
"Move-Item -Path \"{folder:Select Folder To Move}\" -Destination \"{text:Target Folder Name}\"" | |
] | |
}, | |
{ | |
"Name": "ππ Move File", | |
"Scripts": [ | |
"Move-Item -Path \"{file:Select File to Copy}\" -Destination \"{save:Target}\"" | |
] | |
}, | |
{ | |
"Name": "ππ Move File to Workspace", | |
"Scripts": [ | |
"Move-Item -Path \"{file:Select File to Copy}\" -Destination \"{text:Target}\"" | |
] | |
}, | |
{ | |
"Name": "ππ Get File Content", | |
"Scripts": [ | |
"Get-Content \"{file:File}\"" | |
] | |
}, | |
{ | |
"Name": "ππ Get File Content (WS)", | |
"Scripts": [ | |
"Get-Content \"{text:File}\"" | |
] | |
}, | |
{ | |
"Name": "βπ Check Existence (WS)", | |
"Scripts": [ | |
"Test-Path \"{text:Path}\"" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment