bazelbuild / intellij

IntelliJ plugin for Bazel projects
https://ij.bazel.build/
Apache License 2.0
764 stars 304 forks source link

Target Manager #6265

Open ahmedyarub opened 7 months ago

ahmedyarub commented 7 months ago

Description of the feature request:

Add a GUI for managing targets. This is a prerequisite for multi-project repo and caching.

Which category does this issue belong to?

No response

What underlying problem are you trying to solve with this feature?

Easier management of project view targets and better caching integration in the future.

What operating system, Intellij IDE and programming languages are you using? Please provide specific versions.

All

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

tpasternak commented 7 months ago

cc @mai93 @ujohnny @agluszak @LeFrosch @blorente

blorente commented 7 months ago

I'm all for easier target management, but could you expand on what you'd like the UI to do? Switch between project views? Modify the targets section of the current project view?

ahmedyarub commented 7 months ago

Quick update: instead of creating a new window/modal, I'll add gutter buttons that can be used to add new directories, and enable/disable individual targets. This would later be integrated with my still-in-design "quick sync" feature. This is what I could do experimenting yesterday: image This button currently takes you to the Add Directory modal that already exists.

ahmedyarub commented 7 months ago

Quick update Untitled Project

ahmedyarub commented 7 months ago

Next I'll: 1- Temporary button that appears asking to resync OR just reload directory structure (we use that a lot!). 2- A button to automatically scan for new folders/targets and add them to file.

The I would focus on smarter management for caching.

tpasternak commented 7 months ago

honestly I'm not sure if the "Add Directory to Project" button would be that useful if users can just add a new line there, but the gutter icons are pretty cool!

ahmedyarub commented 7 months ago

honestly I'm not sure if the "Add Directory to Project" button would be that useful if users can just add a new line there, but the gutter icons are pretty cool!

I agree if you look at the button alone, but now imagine with me having a complete target manager there right on the editor. I think that the next iterations would make my idea clearer. And I'm still open to suggestions 😄