Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add File Action to open selected file in VS Code? #1

Open
chrisspiegl opened this issue Dec 29, 2021 · 3 comments
Open

Add File Action to open selected file in VS Code? #1

chrisspiegl opened this issue Dec 29, 2021 · 3 comments

Comments

@chrisspiegl
Copy link

Would it be possible to add a default File action Open with Visual Studio Code so that files and folders can be opened directly from the Alfred File Browser?

@chrisspiegl
Copy link
Author

I just did that manually, but maybe you'd like to add this to this workflow by default? Here is a screenshot showing how I set the File Action up.

However, currently this is limited to work only with one selected file. If I select multiple, it does not work (probably because of the query parameter which is forwarded to the script).

Capture 2021-12-29 at 09 27 46

@shaodahong
Copy link
Owner

you can enter code [filename/folder] and open it with vscode, but file must be exist

@chrisspiegl
Copy link
Author

@shaodahong What I am looking for is to use the file actions since I really like accessing files with Universal Actions / File Browser.

Mainly this is interesting because I am already with the file, I don't want to try to "search for it" in Alfred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants