adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.26k stars 7.63k forks source link

Project tree doesn't exclude .svn & .git folders for this user #9979

Open stephane-r opened 9 years ago

stephane-r commented 9 years ago

Hi community,

I'm new user on Brackets (Sublime Text before) and i would like know i can add my git/svn folder to ignor on my sidebar ?

Possible to create a project manager ? (rename project, etc.)

Thank you !

TheRyanBurke commented 9 years ago

+1 for an "Exclude from project" right click option in project file list. Would make Quick Open more useful if I can exclude node_modules!

MiguelCastillo commented 9 years ago

This is the extension we use for now. https://github.com/gruehle/exclude-folders

stephane-r commented 9 years ago

Hi guys,

I've test this plugin "exclude-folders" but, where is the main.js ? :)

For the projects manager, it's ok, i use the Projects plugin : perfect :)

MiguelCastillo commented 9 years ago

@LeG3nDz Once you installed the extension, you will need to find the extension in order to change it main.js. Easiest way is to use brackets for that. Go to the Help menu and select Show Extensions Folder. Look for the extension and change the main.js to include whatever else you need. Restart brackets so that the changes take effect.

Not optimal, but it gets you there for now :)

stephane-r commented 9 years ago

Thank you Miguel ! It's perfect :)

peterflynn commented 9 years ago

@LeG3nDz Actually though, your .git or .svn folders should never be shown by Brackets -- were you actually seeing those in the folder tree originally? It's definitely a bug if so. Can you try Debug > Reload With Extensions in the menu and see if that's still happening?

Also, fyi, in the near future we will begin work on a built-in feature for hiding files -- please follow #8816 for updates.

stephane-r commented 9 years ago

@peterflynn I've restart my brackets without the extentions :

brackets

peterflynn commented 9 years ago

@LeG3nDz Are you still seeing this issue with extensions disabled? And can you confirm you're running an official build downloaded from http://brackets.io (not running from the git source repo or anything else)?

If so, can you try this:

  1. Debug > Show Developer Tools
  2. Paste this into the console:
require("filesystem/FileSystem").resolve(require("project/ProjectManager").getProjectRoot().fullPath + ".svn", function (err, entry) { console.log(entry); })

What output do you see?

  1. Still in dev tools, use Ctrl-O to open ProjectModel. Locate the function _shouldShowName().
  2. Click in the gutter to out a breakpoint inside it, then right-click the breakpoint and choose Edit Breakpoint. Type name.indexOf(".svn") !== -1 and press Enter.
  3. Choose Debug > Reload Without Extensions again

Does it pause on the breakpoint? If so, what does the function return? What is the value of name? What is the call stack?

Thanks!