brackets-bower icon indicating copy to clipboard operation
brackets-bower copied to clipboard

Prevent accidental installation of a package

Open JKVeganAbroad opened this issue 9 years ago • 1 comments

When you attempt to install a package (File » Install from Bower...), the Bower Registry loads, and AutoFill suggestions appear just below the textbox:

screen shot 2015-12-03 at 1 56 41 pm

Before the AutoFill suggestions appear, Brackets indicates that it is "Loading Bower Registry . . ." (or similar message). This can take a while, so let's assume you decide to edit your code whilst you wait for the Bower Registry to load: You attempt to click on some code, but then the Bower Registry suddenly finished loading, and the pre-filled suggestions magically appear where you're just about to click. And now, accidentally, you're installing some random package, and you can't stop the process.

Suggestions:

  • Idea 1: When you click on an AutoFill suggestion, it should simply replace the text in the text box, and await for you to confirm by pressing [Enter]
  • Idea 2: Before installing a package, display a confirmation dialogue "Would you like Bower to install package 'xyz' ? [Install] [Cancel]"
    • Perhaps, also, if you type in a package that wasn't found in the Bower Registry, a dialogue box could appear saying "Bower could not find the package 'xyz'. Would you like to reload the Bower Registry? [Reload] [Cancel]"
  • Idea 3: Provide the ability to abort an installation

JKVeganAbroad avatar Dec 03 '15 03:12 JKVeganAbroad

I like the option 2! And in the dialog to confirm or cancel the installation, more detail about the package to install could be displayed.

albertinad avatar Dec 12 '15 02:12 albertinad