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

feasibility integrate with vscode cli(code) #789

Closed
flavono123 opened this issue Apr 15, 2024 · 3 comments
Closed

feasibility integrate with vscode cli(code) #789

flavono123 opened this issue Apr 15, 2024 · 3 comments

Comments

@flavono123
Copy link

flavono123 commented Apr 15, 2024

is it possible that such as cd does. index the paths state and open(rather than move) in vscode.
or any problem? i guess open new file would collide with.

@ajeetdsouza
Copy link
Owner

zoxide is designed for scriptability. Here's a simple POSIX function that does what you want:

zc() {
  _result="$(zoxide query -- "$@")" && code "$_result"
}}

@flavono123
Copy link
Author

good.
is there a way also on fzf? when stroke space+tab

@ajeetdsouza
Copy link
Owner

zci() {
  _result="$(zoxide query --interactive -- "$@")" && code "$_result"
}}

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