diff --git a/ide-launcher-advanced@adrianopaonessa/CHANGELOG.md b/ide-launcher-advanced@adrianopaonessa/CHANGELOG.md index e670efc7..379ffeb1 100644 --- a/ide-launcher-advanced@adrianopaonessa/CHANGELOG.md +++ b/ide-launcher-advanced@adrianopaonessa/CHANGELOG.md @@ -1,6 +1,10 @@ +### 1.0.4 + +* New Sublime Text support, now you can open your project with Sublime Text :D + ### 1.0.3 -New catalan translation (Thanks to [Odyssey][Odyssey] on GitHub) +* New catalan translation (Thanks to [Odyssey][Odyssey] on GitHub) ### 1.0.2 diff --git a/ide-launcher-advanced@adrianopaonessa/README.md b/ide-launcher-advanced@adrianopaonessa/README.md index 48427fba..75caea53 100644 --- a/ide-launcher-advanced@adrianopaonessa/README.md +++ b/ide-launcher-advanced@adrianopaonessa/README.md @@ -12,7 +12,7 @@ This is the list of the currently available editors. - Visual Studio Code Insiders - VSCodium - VSCodium Insiders - +- Sublime Text ## Required things @@ -23,4 +23,5 @@ Required commands for each IDE: - `code` required for Visual Studio Code - `code-insiders` required for Visual Studio Code Insiders - `codium` required for VSCodium -- `codium-insiders` required for VSCodium Insiders \ No newline at end of file +- `codium-insiders` required for VSCodium Insiders +- `subl` required for Sublime Text diff --git a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/launcher.sh b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/launcher.sh index b0784495..a8bc52f4 100755 --- a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/launcher.sh +++ b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/launcher.sh @@ -4,6 +4,7 @@ vscodeInstalled=true vsCodeInsiderInstalled=true vsCodiumInstalled=true vsCodiumInsidersInstalled=true +sublimeTextInstalled=true installedNum=0 installedIDEs=() @@ -36,6 +37,12 @@ else installedIDEs+=("VSCodium Insiders"); fi +if ! command -v subl &> /dev/null ; then sublimeTextInstalled=false; +else + installedNum=$((installedNum+1)); + installedIDEs+=("Sublime Text"); +fi + ######################################### # Check if more than one app is installed check_more_than_one() { @@ -58,23 +65,39 @@ check_more_than_one() { if [ "$IDE" -eq "$i" ] ; then echo; echo "Launching ${installedIDEs[$i]}..."; - if [ "${installedIDEs[$i]}" == "Visual Studio Code" ] ; then code "${CURRENT_DIR}"; - elif [ "${installedIDEs[$i]}" == "Visual Studio Code Insiders" ] ; then code-insiders "${CURRENT_DIR}"; - elif [ "${installedIDEs[$i]}" == "VSCodium" ] ; then codium "${CURRENT_DIR}"; - elif [ "${installedIDEs[$i]}" == "VSCodium Insiders" ] ; then codium-insiders "${CURRENT_DIR}"; + if [ "${installedIDEs[$i]}" == "Visual Studio Code" ] ; then code "${CURRENT_DIR}"; exit 0; + elif [ "${installedIDEs[$i]}" == "Visual Studio Code Insiders" ] ; then code-insiders "${CURRENT_DIR}"; exit 0; + elif [ "${installedIDEs[$i]}" == "VSCodium" ] ; then codium "${CURRENT_DIR}"; exit 0; + elif [ "${installedIDEs[$i]}" == "VSCodium Insiders" ] ; then codium-insiders "${CURRENT_DIR}"; exit 0; + elif [ "${installedIDEs[$i]}" == "Sublime Text" ] ; then subl "${CURRENT_DIR}"; sublime_launched; else echo;echo "Error: Value not valid, retry";echo;echo "=============================="; check_more_than_one; fi fi done + + check_more_than_one else # Launch the installed one if $vscodeInstalled ; then code "${CURRENT_DIR}"; elif $vsCodeInsiderInstalled ; then code-insiders "${CURRENT_DIR}"; elif $vsCodiumInstalled ; then codium "${CURRENT_DIR}"; elif $vsCodiumInsidersInstalled ; then codium-insiders "${CURRENT_DIR}"; + elif $sublimeTextInstalled ; then subl "${CURRENT_DIR}"; else echo;echo "Error: Value not valid, retry";echo;echo "=============================="; check_more_than_one; fi fi } +sublime_launched() { + echo;echo;echo; + echo "=================================================================================="; + echo "Sublime Text launched. This window will stay open to prevent the IDE from closing."; + echo "This window will close automatically when Sublime Text is closed."; + echo "=================================================================================="; + + # Loop until Sublime is closed + while [ -n "$(pgrep -f sublime_text)" ] ; do sleep 1 ; done + exit 0; +} + check_more_than_one exit 0 \ No newline at end of file diff --git a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/metadata.json b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/metadata.json index db6d54c5..a5215cbc 100644 --- a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/metadata.json +++ b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/metadata.json @@ -1,7 +1,7 @@ { - "description": "Launch your IDE (VSCode, VSCode Insiders, VSCodium and VSCodium Insiders) within the current directory.", + "description": "Launch your IDE (VSCode, VSCode Insiders, VSCodium, Sublime Text and VSCodium Insiders) within the current directory.", "uuid": "ide-launcher-advanced@adrianopaonessa", "name": "Advanced IDE Launcher", "author": "Adriano Paonessa", - "version": "1.0.3" + "version": "1.0.4" } \ No newline at end of file diff --git a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/ca.po b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/ca.po index 489ef1c1..283b71eb 100644 --- a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/ca.po +++ b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/ca.po @@ -5,7 +5,7 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: ide-launcher-advanced@adrianopaonessa 1.0.3\n" +"Project-Id-Version: ide-launcher-advanced@adrianopaonessa 1.0.4\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/" "issues\n" "POT-Creation-Date: 2024-09-10 23:04+0200\n" diff --git a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/es.po b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/es.po index f27933d8..c56e803b 100644 --- a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/es.po +++ b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/es.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: ide-launcher-advanced@adrianopaonessa 1.0.3\n" +"Project-Id-Version: ide-launcher-advanced@adrianopaonessa 1.0.4\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/" "issues\n" "POT-Creation-Date: 2024-09-10 23:04+0200\n" diff --git a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/ide-launcher-advanced@adrianopaonessa.pot b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/ide-launcher-advanced@adrianopaonessa.pot index 2851221f..a4c5fee2 100644 --- a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/ide-launcher-advanced@adrianopaonessa.pot +++ b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/ide-launcher-advanced@adrianopaonessa.pot @@ -5,7 +5,7 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: ide-launcher-advanced@adrianopaonessa 1.0.3\n" +"Project-Id-Version: ide-launcher-advanced@adrianopaonessa 1.0.4\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/" "issues\n" "POT-Creation-Date: 2024-09-10 23:04+0200\n" diff --git a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/it.po b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/it.po index 9209ce3f..7ca14fe9 100644 --- a/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/it.po +++ b/ide-launcher-advanced@adrianopaonessa/files/ide-launcher-advanced@adrianopaonessa/po/it.po @@ -5,7 +5,7 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: ide-launcher-advanced@adrianopaonessa 1.0.3\n" +"Project-Id-Version: ide-launcher-advanced@adrianopaonessa 1.0.4\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/" "issues\n" "POT-Creation-Date: 2024-09-10 23:04+0200\n"