Skip to content

Instantly share code, notes, and snippets.

@farukcan
Last active February 27, 2023 21:25
Show Gist options
  • Save farukcan/4dbd669a37dc1bc9d7d9df38c85981ca to your computer and use it in GitHub Desktop.
Save farukcan/4dbd669a37dc1bc9d7d9df38c85981ca to your computer and use it in GitHub Desktop.
Visual Powershell Files and Folders
{
"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