mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-09 01:54:58 +02:00
Added Helix to basic-apps.csv
This commit is contained in:
parent
107c95797f
commit
8928a3bce4
@ -10,6 +10,7 @@ APPLICATION, CATEGORY, APPID,
|
|||||||
"Google Chrome", "web browser", "Google.Chrome",
|
"Google Chrome", "web browser", "Google.Chrome",
|
||||||
"Greenshot", "screenshot utility", "9N8Z6RQX8LV8",
|
"Greenshot", "screenshot utility", "9N8Z6RQX8LV8",
|
||||||
"grepWin", "search tool", "StefansTools.grepWin",
|
"grepWin", "search tool", "StefansTools.grepWin",
|
||||||
|
"Helix", "text editor", "helix.helix",
|
||||||
"inSSIDer", "Wifi tool", "MetaGeek.inSSIDer",
|
"inSSIDer", "Wifi tool", "MetaGeek.inSSIDer",
|
||||||
"IrfanView", "image viewer", "9PJZ3BTL5PV6",
|
"IrfanView", "image viewer", "9PJZ3BTL5PV6",
|
||||||
"KDiff3", "file compare tool", "KDE.KDiff3",
|
"KDiff3", "file compare tool", "KDE.KDiff3",
|
||||||
|
|
@ -18,7 +18,7 @@ param([string]$path = "")
|
|||||||
|
|
||||||
function TryEditor { param([string]$editor, [string]$path)
|
function TryEditor { param([string]$editor, [string]$path)
|
||||||
try {
|
try {
|
||||||
Write-Host "$editor..." -noNewline
|
Write-Host "$editor/" -noNewline
|
||||||
& $editor "$path"
|
& $editor "$path"
|
||||||
if ($lastExitCode -ne 0) { "⚠️ Can't execute '$editor' - make sure it's installed and available"; exit 1 }
|
if ($lastExitCode -ne 0) { "⚠️ Can't execute '$editor' - make sure it's installed and available"; exit 1 }
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
@ -26,7 +26,7 @@ function TryEditor { param([string]$editor, [string]$path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($path -eq "" ) { $path = Read-Host "Enter the path to the text file" }
|
if ($path -eq "" ) { $path = Read-Host "Enter the path to the text file" }
|
||||||
Write-Host "Trying to open '$path' by " -noNewline
|
Write-Host "⏳ Editing 📄$path by trying " -noNewline
|
||||||
TryEditor "neovim" $path
|
TryEditor "neovim" $path
|
||||||
TryEditor "vim" $path
|
TryEditor "vim" $path
|
||||||
TryEditor "vi" $path
|
TryEditor "vi" $path
|
||||||
|
Loading…
Reference in New Issue
Block a user