holzschu / holzschu/a-shell

Bookmarks aren't accessible from within Shortcuts

Đang mở
#653 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Perl
Star
3.9k
Fork
213
Merge trung bình
1 phút
Pull request đã merge (30 ngày)
1

Mô tả

Hello,

I see similar reports here regarding paths while running a-shell from Shortcuts but I didn't find anything that would help me there.

Here is a quote from README:

> Shortcuts can be executed either "In Extension" or "In App".
> …
> Both kind of shortcuts run by default in the same specific directory, `$SHORTCUTS` or `~shortcuts`. Of course, since you can run the commands `cd` and `jump` in a shortcut, you can pretty much go anywhere.

Basically, `cd` is not working for me when I use bookmarks with the "in-extension" option.

![image](https://github.com/holzschu/a-shell/assets/129271/9649cc2e-197b-481c-a5d9-9680b3131411)

When I'm doing `cd ~/Library` a-shell changes to a directory that has no Python packages or something that I see from within the app. Thus running commands like `~/Library/bin/myapp` or `~home/Library/bin/myapp` in Shortcuts end with an error `myapp: command not found`.

Strictly speaking "in-extension" mode appears unusable because I cannot reach the app's files somehow.

Am I doing something wrong?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start by reproducing the reported `cd ~/Library` behavior in an iOS Shortcut using the “In Extension” option, then compare it with “In App” and the README’s `$SHORTCUTS` directory description. Trace how bookmarks and app-file paths are exposed to the extension; done means the expected app files are reachable from an in-extension Shortcut or the limitation is clearly documented.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
ios
Lĩnh vực
cli, mobile-dev
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.