#60 ✓hold

Bug: Binary / compiled files are displayed

Reported by zachriggle | December 24th, 2010 @ 07:44 AM

What I did

Open a folder with a bunch of .py and .pyc files in it.

What I expected to happen

Only the .py files are visible.

What actually happened

All of the .pyc files were also visible.


Taking a look at a few .gitignore files should give you an idea of the types of files that can be safely filtered out. Adding in functionality to modify this filter list would be a good idea.

To get you started:

  • *.pyc
  • *.o
  • .*.swp (vim)
  • *.tmp
  • *~ (emacs)

Comments and changes to this ticket

  • Jakub Suder

    Jakub Suder December 25th, 2010 @ 10:09 PM

    • Assigned user set to “rsms”

    Also all image files (jpg, png, gif...) should be ignored.

  • Jonas Schneider

    Jonas Schneider December 26th, 2010 @ 01:14 PM

    I don't recommend ignoring image files. If you are coding a web app, you usually want to see them, even though you can't edit them. What about adding an image preview when opening jpg/png/gif/etc files instead of showing the binary source?

  • fcurella

    fcurella December 26th, 2010 @ 06:35 PM

    Possibly related: show invisibles files like .htaccess, but still hide stuff like .DS_Store files and .svn folders.

    As a reference, the regexes TextMate uses for this are:

    files: !(/\.(?!htaccess)[^/]*|\.(tmproj|o|pyc)|/Icon\r|/svn-commit(\.[2-9])?\.tmp)$
    folders: !.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$

  • rsms

    rsms December 26th, 2010 @ 09:01 PM

    • State changed from “new” to “hold”
    • Tag set to sidebar

    Sidebar is a quick hack and due for a total refactoring. Please ignore the sidebar and it's current useless state.

    However, I will not flag this as invalid since it might be relevant in a near future, but instead put the ticket on hold.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A text editor for Mac OS X