Skip to content

Commit

Permalink
Update workflow version
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 12, 2025
1 parent 69ffec9 commit 76db6d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vscode-open-project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type keyword to search recent projects, enter to open.



[![](https://img.shields.io/badge/version-v0.5-green?style=for-the-badge)](https://img.shields.io/badge/version-v0.5-green?style=for-the-badge)
[![](https://img.shields.io/badge/version-v0.6-green?style=for-the-badge)](https://img.shields.io/badge/version-v0.6-green?style=for-the-badge)
[![](https://img.shields.io/badge/download-click-blue?style=for-the-badge)](https://github.com/alanhe421/alfred-workflows/raw/master/vscode-open-project/VSCode%20-%20Open%20Project.alfredworkflow)


Expand Down
2 changes: 1 addition & 1 deletion vscode-open-project/src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ type keyword to search recent projects, enter to open.</string>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.5</string>
<string>0.6</string>
<key>webaddress</key>
<string>https://github.com/alanhe421/alfred-workflows/tree/master/vscode-open-project</string>
</dict>
Expand Down
4 changes: 3 additions & 1 deletion vscode-open-project/src/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ OUTPUT='{"items": ['
# 遍历项目路径,生成 Alfred 格式的 JSON
IFS=$'\n'
for PROJECT in $PROJECTS; do
PROJECT_NAME=$(basename "$PROJECT" | ruby -ruri -e 'puts URI.decode_www_form_component(STDIN.read.chomp)')
# 对 PROJECT 进行 URL 解码
PROJECT=$(echo "$PROJECT" | ruby -ruri -e 'puts URI.decode_www_form_component(STDIN.read.chomp)')
PROJECT_NAME=$(basename "$PROJECT")

# 如果 query 不为空,则进行筛选
if [[ -n "$query" ]]; then
Expand Down

0 comments on commit 76db6d3

Please sign in to comment.