Live data from Hacker News

Ask HN: How do you keep your files organized on macOS?

news.ycombinator.com

11–20 of 143 posts

Re: Ask HN: How do you keep your files organized on macOS?

#11
I tend to keep most of my documents in Dropbox or iCloud, and use Alfred to find what I want by typing a word that I think is in the title. Dropbox can search within documents too, and I try to have an organized file structure.

Source code is in a Code directory. I try to keep that directory clean - only stuff I'm actually working on. Everything is in Git and can be pulled down very quickly if I need to spin it up again.

I used to love a document database that was geared for researchers and others who have to catalog a lot of information. It's called DevonThink. I had a license for it from one of the MacHeist bundles, but it was really overkill for my document needs.

Re: Ask HN: How do you keep your files organized on macOS?

#12
post #3
post #2

I don't use tags at all. I just use good old fashioned directories. My directory structures go pretty deep.

Neither do I. I find that tags are "optional" so they aren't used 100% of the time, but you are forced to place your file in a folder somewhere.

Folders are just mandatory tags

Re: Ask HN: How do you keep your files organized on macOS?

#13
- ~/ for work stuff

- ~/code for personal projects

- Photos, music, documents, calendars, etc. synced through iCloud

- Other various stuff in iCloud Drive, symlinked to ~/cloud for easy access. Got a stash directory there for random files that I can't bother organizing

Everything else I assume is ephemeral and don't mind if lost.

Using Git for tech projects. Same for dotfiles. No plugins so everything just works by copying to ~.

Re: Ask HN: How do you keep your files organized on macOS?

#14
Have tried all apps out there, even the "Database" ones - but it's not portable and it's an instant lock-in. Plus most of the Apps bind to folders anyway, so you'll have a lot of "junk" that you have no idea what it is.

What I've found to work is this.

Main root folders few and named easily.

- Customers

- Internal

- Private

- VMs

All sub-folders have numbers, so they can always sort by name so they're always in the same order.

00 - Tests

10 - Code

11 - Code (Testing)

12 - Code (Other)

20 - Design (Sites)

25 - Design (Other)

30 - Services

35 - Marketing

40 - Apps (Web)

41 - Apps (Hosted)

50 - Docs

51 - Guides

60 - Sysadmin

etc...

This creates a logical and consequential structure that's easy to update, change and manage and you can have many levels.

Just consider your numbers for your use-case so you won't run out and sub-numbers can be unclear/messy to look at and navigate.

For managing downloaded files automatically, I use Hazel.

Re: Ask HN: How do you keep your files organized on macOS?

#15
-Barebone folders. Tags don't play well with terminal and other *nix filesys.

-A ~/dev folder with dev stuff in it.

-Dropbox/iCloud for important, heavily accessed content.

-Alias on the Desktop for all the WIP/very active projects (usually from my ~/dev/ stuff and synced folder w/ dropbox or icloud)

-Dock folder shortcuts for often accessed folders + grid pop-up menu so I can dragNdrop stuff.

- Also, Finder sidebar shortcuts for these folders.

- Downloads are always messy, I usually clean-up every year when I fresh install the new release of macOS.

- For images/photos/etc I tend to use dirs with year and quarter numbers, like 19Q1 as for the 1st quarter os 2019. Prevents huge dirs that take too long for Finder/Samba to index.

Re: Ask HN: How do you keep your files organized on macOS?

#17

Have tried all apps out there, even the "Database" ones - but it's not portable and it's an instant lock-in. Plus most of the Apps bind to folders anyway, so you'll have a lot of "junk" that you have no idea what it is. What I've found to work is this. Main root folders few and named easily. - Customers - Internal - Private - VMs All sub-folders have numbers, so they can always sort by name so they're always in the s…

You could just use four digits, 5001 - Midfile stuff, 7000 - End stuff, 0999 - Fairly upwards stuff.

No need to feel so cramped then.

Re: Ask HN: How do you keep your files organized on macOS?

#18

Have tried all apps out there, even the "Database" ones - but it's not portable and it's an instant lock-in. Plus most of the Apps bind to folders anyway, so you'll have a lot of "junk" that you have no idea what it is. What I've found to work is this. Main root folders few and named easily. - Customers - Internal - Private - VMs All sub-folders have numbers, so they can always sort by name so they're always in the s…

Out of curiosity, why wouldn’t you want them to sort alphabetically?

Re: Ask HN: How do you keep your files organized on macOS?

#19
The thing can be easily implemented with mdutils (may not be the actual name, i’m On my phone so can’t check) and bash. You can setup a few common destination folders, and watch folders such as the ~/downalods. Then you can still use tags for files, and run a bash script which read the tag of files with mdutils, then move files based on tag pattern to different destinations.

Hazel and maid both can do this, but I don’t wan to spend that much on something I can scramble in a hour nor learn Ruby. So I just use bash for this.

Re: Ask HN: How do you keep your files organized on macOS?

#20
DON'T KEEP THEM ORGANIZED... USE SEARCH

Learn to love Search, but give yourself a manual cheat mode that doesn't take any effort to maintain.

I use the application "Hazel" with two tactics, one to clean up Desktop, one to clean up Downloads.

For desktop, I use a freshness rule, and then a manual lookup hack. If it's likely this file isn't changing any more, Hazel sweeps it into folder.

In downloads, I do freshness, but with a variant manual lookup hack.

DO GIVE YOURSELF A MANUAL/MEMORY METHOD TO FINDING FILES

What I mean by manual cheat mode or manual hack is, can I find this file very quickly using just what I have in my head, without having had to identify content and file accordingly?

For the hack, I file by buckets of dates. What I've found is, I can generally recall what I was working on when I had that file, and from that I can recall generally when I was working on it. So, if I can "file by date" with an appropriate granularity where I balance a fuzzy "when" with a glanceable number of files, then I can find it by looking in usually one but at most maybe three buckets. Bonus: date folders also make it easy to scope searches.

Depending on the nature of work, my buckets range from quarterly at the largest, to weekly at the smallest. I name them YYYY QN/FILE, YYYY/YYYY-MM/FILE, or YYYY/YYYY-WW/FILE. If I'm doing quarterly, the folders are not nested inside the year.

For downloads, I add a layer between the date folder and file: domain. I used to just use domain and replace files of same name like "latest.zip" but over time I began to value having the prior version of downloaded things. So downloads look like YYYY QN/DOMAIN/FILE.

AUTOMATED SCHEME EXAMPLE

Putting it together, my current scheme on home laptop is:

    Desktop 

    - File by Week Last Opened > YYYY QN/FILE
      method: sort into subfolder
      trigger: date last opened not blank and last opened is not last 2 days
      date = date last opened

    - File by Week Last Modified If Not Opened > YYYUY QN/FILE
      method: sort into subfolder
      trigger: date last opened is blank and last modified is not last 2 days
      date = date modified
 
    Downloads

    - Quarterly Sources > YYYY/DOMAIN/FILE
      method: sort into subfolder
      trigger: date added not last 4 weeks
      date = date added
Hazel has additional features such as what to do with duplicates, that you can tailor to your preferences.

As a further bucketing mechanism, if you use many machines for different modalities and collect all those files into a single 'cloud' place they all can reach, you can append the machine or hostname to the dated bucket. That lets you have selective sync rules to different machines, but also find all the content in one place.

ALWAYS BE ORGANIZED, BY NEVER ORGANIZING!

I never file anything anywhere, I just let these rules grab them and squirrel them away. If I need a set of files across dated folders, monthly bank PDFs for example, I pop open a folder, see the relevant filename, and run a search for that, then select all and send to accountant.

SPECIALS

Code repos are special cased, within a source code management folder tree, not worked from desktop. Vagrant and Virtual Box VMs, Pictures, Media, Music, also special case managed by their tools.

Post reply on HN