Hacker News new | ask | show | jobs
by wkirby 3562 days ago
Actually the only thing that keeps me from switching back to ST3 is Atoms first class support for `.gitignore` and excluding files from the quick open menu.

I know there's a package that claims to update the file ignore pattern to match the open project, but it really doesn't work well at all.

3 comments

Create a Sublime project. You can have project settings to ignore file and folder patterns. I set this up at the same time I create a .gitignore file for a repo.

Whenever you re-open a project, it re-opens every tab you had when you closed the project, which is really nice. Even unsaved files are restored.

https://www.sublimetext.com/docs/3/projects.html

Just an FYI, Atom does these things too. Tracks all of your open windows, tabs, which tabs you were on, keeps unsaved changes, etc...
Can you make file ignore patterns in project settings pull from .gitignore though?
This is my exact issue! That's what keeps me coming back to Atom even though Sublime is much, much faster. The last package I saw tackle this required you to make a project -- which I just never do in Sublime.
Creating a projectname.sublime-project is usually my first step when I start a new development project. In fact, I do it so much I have a text expander shortcut for it.

Then I have a short bash alias `lime` that takes the place of `subl`: https://gist.github.com/imjared/db14e2c92df864ae048e1d2a94d0...

The benefit seems to be that it _isn't_ synced with my .gitignore so I never have to worry about accidentally committing a .env or similar. I can toggle files and folders on and off as I need to.

I second that, along with .gitignore handling I also terribly miss having new and changed files (in git) highlighted in the sidebar, which Atom has out of the box. They have a lot of feature requests for that, since their sidebar API doesn't even allow package developers to add it, and just like your case, it's the only feature keeping me from going back.