off-plugin icon indicating copy to clipboard operation
off-plugin copied to clipboard

Checkbox to use all opened projects or not project related stuff

Open Chris2011 opened this issue 11 years ago • 7 comments

For maven modules, its hard to switch via drop down to the correct submodule. I would like to have an option to use all opened projects, required projects, child projects or whatever. I use my keyboard as often as I can and when I go to the dropdown list, open it and use arrow down to go to the right project and between the default one and that one, what I want, there are 5 projects between and after use key down, drop down closes. Better is to use key down and if I choose one, I press enter or space.

Regards

Chris

Chris2011 avatar Sep 12 '14 11:09 Chris2011

+1 for this feature request OFF is a must-have plugin for NetBeans, but it's quite hard to use with maven modules. In my project there are ~20-40 opened modules at a time.

futaz avatar Sep 24 '15 10:09 futaz

@mjomble what do you think?

ku1ik avatar Sep 24 '15 10:09 ku1ik

Unfortunately, I have migrated from NetBeans to Atom since taking over this project and my interest in developing this further has dropped.

Atom has a feature like OFF as one of the default packages - https://atom.io/packages/fuzzy-finder - but it doesn't seem to have proper maven support.

However, I may be able to provide some help for developing this plugin for anyone who wants to try to build this feature on their own. This would be a good starting point: https://github.com/sickill/off-plugin#building-from-source

mjomble avatar Sep 24 '15 10:09 mjomble

Mhh. That is quite difficult, because the indexing is currently per project. The code has to be refactored to hold an index for support multiple projects at the same.

@Chris2011: When there are multiple matches in several projects, how should the dialog present them?

markiewb avatar Mar 06 '16 12:03 markiewb

@markiewb first you should have a checkbox to search for files in other projects (like in idea/webstorm etc. - Search for non-project files). So then if you check this checkbox, the results from the selected project should be the very first elements. After this a line to separate the other elements would be great and maybe an other, brighter color, if you are not interested in this items. Maybe you can have a look at WebStorm or so.

Chris2011 avatar Mar 07 '16 08:03 Chris2011

2016-03-07_20h07_35 @Chris2011: I don't understand the separator logic. See the screenshot.

markiewb avatar Mar 07 '16 19:03 markiewb

As you can see in the screenshot, there is a horizontal line between those elements which has 90-100% identity with the search word, for example: "colorcho" -> ColorChooserWhatever and JColorChooser. Those files are maybe in the same project but different, because we search for colorcho at the beginning of the text so these files are under the horizontal line. If these files are not inside the project as in your second screenshot, you see it under the horizontal line like AbstractColorChooser...

Chris2011 avatar Mar 07 '16 19:03 Chris2011