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

Command palette/projects/text buffer extension API #18043

Open
1 task done
nd0ut opened this issue Sep 18, 2024 · 4 comments
Open
1 task done

Command palette/projects/text buffer extension API #18043

nd0ut opened this issue Sep 18, 2024 · 4 comments
Labels
command palette Feedback for the command palette editor Feedback for code editing, formatting, editor iterations, etc extension infrastructure Feedback for extensions APIs, creation, management, etc feature [core label]

Comments

@nd0ut
Copy link

nd0ut commented Sep 18, 2024

Check for existing issues

  • Completed

Describe the feature

Hi! I noticed that Zed has introduced an extension API, and I was planning to write an equivalent of the Project Manager (https://marketplace.visualstudio.com/items?itemName=alefragnani.project-manager) for VS Code. However, to my surprise, I found that the API does not allow adding custom commands to the command palette or managing the built-in projects.

I also thought about creating an equivalent of change-case (https://marketplace.visualstudio.com/items?itemName=wmaurer.change-case), but again ran into the lack of command palette API and the inability to control the text buffer.

Could you let me know if you plan to implement something like this, and is it included in the "General purpose extensions" section of the roadmap?

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@nd0ut nd0ut added admin read feature [core label] labels Sep 18, 2024
@elvishp2006
Copy link

Zed already have a native change case, do you want to extend this functionality in any way?

Captura de Tela 2024-09-18 às 18 25 17

@notpeter notpeter added editor Feedback for code editing, formatting, editor iterations, etc command palette Feedback for the command palette extension infrastructure Feedback for extensions APIs, creation, management, etc and removed triage labels Sep 19, 2024
@nd0ut
Copy link
Author

nd0ut commented Sep 19, 2024

Zed already have a native change case, do you want to extend this functionality in any way?

Oh, cool 🔥 I'm sorry, I missed this.

Regarding the project manager, personally, I really miss the automatic scanning for git repositories - that's the reason why I wanted to write an extension for this.

@eliasrenman
Copy link

eliasrenman commented Oct 8, 2024

I'd like to add on to this that what i'm missing to make my Zed editor complete are the commands given with the two extensions in VS Code: advanced-new-file and file-utils

These extensions combined give me the possibility with keyboard only (and the command palette)

  • Copy file
  • Move file
  • Rename File
  • Delete File
  • Create new file in specific directory

I think being able to create extensions with a command palette api would solve all of the functionality above.

@jacobwhall
Copy link

I would like to add commands to the command palette to manage dependencies in my coding projects and trigger build processes, as described here #7808.

The closest we have right now are "slash commands", an API for extensions to register commands to be used within the AI assistant panel. I played with these a bit in this project. I imagine command palette actions could have a very similar API.

Additionally, it is difficult for extensions to run external processes unless it's a language server, or something pretending to be a language server. If extensions are already allowed to download and run binaries for that purpose, surely we could allow this functionality to be used more easily in other contexts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command palette Feedback for the command palette editor Feedback for code editing, formatting, editor iterations, etc extension infrastructure Feedback for extensions APIs, creation, management, etc feature [core label]
Projects
None yet
Development

No branches or pull requests

5 participants