Blog

Brackets 0.40 Release (Find Exclusion Sets)

We’ve shipped a new and improved Brackets! If you don’t see an automatic update notification for it, be sure to manually “Check for Updates” from the Help menu, because there was a bug preventing update notifications from appearing under some circumstances. This bug is fixed in 0.40, so you should be all set after this one.

Exclusion Sets

The biggest improvement in the new release is the ability to manage multiple “exclusion sets”. Previously, you could exclude files and folders from searches. It’s often the case that you need to exclude different files depending on the project you’re working on or even within a single project if you’re searching either the client side code or the server side code, for example. The new Find in Files bar supports that:

 

Exclusion sets in Find in Files

Exclusion sets in Find in Files

 

Why exclude files? Brackets file search has gotten much faster since we introduced caching a few releases back. Even so, if you can reduce the files that Brackets needs to search, you’ll speed up those searches even more. But, more importantly, excluding files you know are not interesting improves your search results and lets you focus on the matches you truly need.

The New UI

Where there used to be a button to modify the list of excluded files, now there’s a drop down menu.

New Exclusion Set… opens up the editing dialog to create a new exclusion set.

Don’t Exclude Files turns off the exclusions and tells Brackets you want to search all files in the project.

Below those two items is a list of your saved exclusion sets. The currently selected one has a checkmark next to it. You can edit any of these previously used sets by hovering over that item and clicking the pencil icon that appears.

Editing Exclusion Sets

Edit Exclusion Set dialog

Edit Exclusion Set dialog

The Edit Exclusion Set dialog lists the wildcards for files you wish to exclude, as it did before. New in this release is the ability to give the set of exclusions a name, making it easier to identify in the menu. Also new is a display of how many files in your project will be searched, giving you an idea of how effective your filter is. In the screenshot above, Brackets will only search 27% of the files in the project (which is Brackets itself). If I remove node_modules from the list of exclusions, I see this:

WithoutNodeModules

I jump to searching 76% of the files in the project. It’s easy to see that I’m saving myself a lot of searching. Even better, this can give me an indication that I may have typed something wrong if the effect on the number of files to search is more or less than I expected. Enter just “*” and you’ll see the number of files to search drop to zero!

API Documentation

Brackets committer Chema Balsas has put together a program for generating Brackets API documentation. He and Randy Edmunds worked together recently to get the docs cleaned up and online. There’s still some room for improvement, but we wanted to spread the word because these docs are already a big win for extension developers. Check out the Command Manager docs, for example, for a details on how commands are added to Brackets.

CommandManager Docs

CommandManager Docs

Community Contributions

8 Responses


7 Comments

  1. RobberPhex says:

    I hope that Brackets can release tar binary file for Linux(no t just Debian/Ubunt)

  2. […] Brackets release 40 is out […]

  3. It would be awesome if we could filter the search tree using the same (or similar) interface.

    Keep up the amazing work!

    .-A very happy Brackets user

  4. Chema Balsas says:

    Hey Felipe, I already though about it, but not sure when we’ll be able to get to it. If you wish, you could open an issue requesting the tree filter feature at https://github.com/jbalsas/apify/issues?state=open

  5. Bryce says:

    Thanks for asking Peter,

    It would be good to accommodate the Linux “low hanging fruit” — Mint, Ubuntu, Fedora, openSUSE.

  6. John says:

    A Fedora package would be great.

  7. Tim says:

    I find the exclusion filter to be counter intuitive, at least for my scenario. I actually want to use an inclusion filter. I’d like to just search in `*.js` for example. How can I do this?

One Trackback


    Warning: call_user_func() expects parameter 1 to be a valid callback, function 'thematic_pings' not found or invalid function name in /home/wp_twqxv4/blog.brackets.io/wp-includes/class-walker-comment.php on line 174

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*
*


× 8 = fifty six