Live data from Hacker News

Ask HN: How do you organise your files and folders?

news.ycombinator.com

111–120 of 182 posts

Re: Ask HN: How do you organise your files and folders?

#111
post #7

`ag -g 'some-piece-of-the-name-that-seems-kind-of-likely'` [0] [0] https://github.com/ggreer/the_silver_searcher

fzf piped to xargs. Fzf is a fuzzy interactive string search, by default searches path names below current directory. Allows selecting multiple entries with --multi

I never realized how crucial fzf was to my workflow til a fish shell update broke it and I was paralyzed til I got it fixed

Re: Ask HN: How do you organise your files and folders?

#112
To preface, I'm a PhD student in computer science. I spend about 50% of my time reading, 25% writing, and the other 25% coding, so my organisation is highly focussed around that workflow at the moment.

1. I follow BSD guidelines where possible (https://www.freebsd.org/doc/handbook/dirstructure.html), with the extension of a portable ~/.local/bin directory of scripts that's symlinked to my dotfiles.

2. Projects (mine or otherwise) live in ~/Repositories, with reverse domain name. E.g. ~/Repositories/gitlab.com/harritaylor/project name. I am a heavy user of z (https://github.com/rupa/z), so the big nesting doesn't bother me at all. I found that if I tried to organise it into some ~/work ~/projects directory I would spend time messing around with it/organising and sometimes even kept two distinct versions of software projects going. Oh, also: I use `git grep --line-number -e "TODO"` to keep track of what I need to do in a project. I really tried with stuff like org mode, but in the end I found it was so much easier to just drop a "TODO" in a comment within the context of the code, and use a high level description of the problem in my separate notes.

3. I keep a ~/Notes directory for https://obsidian.md, with a subfolder of ~/Notes/pdf/ for papers. This is synced via git to my iPad with working copy to markup notes, as I find it a lot easier to read and process papers on the sofa rather than at the desk. For each paper I make a markdown file of notes with the name of the reference (author:year.md), and keep all my citations organised in my ~/Notes/references.bib file.

4. I use bookmark OS for anything found on the web that is not immediately useful (usually from hacker news and twitter), rather than cluttering up daily notes or git cloning it. I used to use pocket for this but I've recently split "to read in downtime" and "to research" into two different services to avoid burnout. I dedicate around an hour a week pruning this after I have worked through my reading list.

5. "Working documents" such as current presentations or paper drafts live on the desktop for quick reference in meetings, as well as immediate reminders that they still exist.

6. I haven't figured out a useful way of organising my documents otherwise: I currently treat ~/Documents as an archive, organising by context (freelance, phd, private), and the folder prepended by the most specific time `YY_MM_DD-name`. It's super clunky, it doesn't really work, but it's the best thing I've found so far.

This setup is totally portable by design, and I have reproduced this working environment between my work mac (boo, I know), a linux VM on a windows PC, and my remote linux workstation. The biggest revelation for me personally was the ~/Repositories and `z` combination. No more remembering where I cloned a project in the spur of the moment!

Now, to read everyone else's solutions and figure out my (6)!

Re: Ask HN: How do you organise your files and folders?

#113
post #98

00.INFO - Notes, references, some original sources 10.TASKS - Any work I do for a specific person that can be completed in a week 20.PROJECTS - Multiple related tasks or tasks that have transmogrified into a full-blown project 30.MEDIA - Says what it does on the tin 40.ORGANIZATIONS - Different groups I've joined X0.CORE - Private or important to me alone X1.PRIMARY - Important to me and I'm responsible for it X2.SEC…

I'm surprised your dates are M.Y rather than Y.M. Doesn't that get confusing over time?

Re: Ask HN: How do you organise your files and folders?

#115

Documents/Current/ is a symlink Documents/Months/2020-06/ . Anything that survives more than a month gets promoted to Documents/Projects , with symlinks to that location from any month-directory where I work on that project. If anything, it is an excellent way, ahem, to discover FreeBSD symlinked directory arcana. The “..” directory never seems to be what I expect it to be. Everything is rsyncd to NAS:/tank/Backups/…

While I wouldn't exactly call my own setup organized, what organization I do successfully maintain is similar. Everything has a permanent location in a structure that has very obviously been poorly tweaked over many years, and then I use symlinks for things I use more often.

Re: Ask HN: How do you organise your files and folders?

#117

~/dev # git repositories, unfiled. ~/Downloads # ... everything else In yesteryear I used to do a bit of local photo management (but now that's done in google photos for the most part) and a bit of local music management (but that's spotify/youtube nowadays). I would organize things differently but I've always been unsatisfied with having to reify some arbitrary subset of metadata about each file into a directory str…

YYYY/MM/DD or even YYYY/MM definitely tends to be too granular for photos in my experience, but I've been dumping the recent year's photos / videos into a YYYY directory every January (which takes seconds to do), and it's been great. Gives me a fresh new directory for all the new media for the year, without directory fatigue when looking for older photos. I also clear out the photos / videos on my phone at the same time for the same reason.

That said, google photos is where I go to search my photos. I'd love something self-hosted, but I don't care enough to weigh options and implement something, and I especially don't care enough to build my own.

Google's File API sounds really interesting. I personally want a tag-based filesystem that can _look_ and even have interactions like directories and files, but works like a graph. There was a great discussion about that sort of filesystem in this thread: https://news.ycombinator.com/item?id=16763235

Re: Ask HN: How do you organise your files and folders?

#118
Save files to my desktop. When it gets too messy, I throw a one-liner "hide desktop icons on mac" command in Terminal. When it never gets messy again, I don't repeat.

defaults write com.apple.finder CreateDesktop -bool false && killall Finder

I'm about 2~3 years deep at the moment.

Re: Ask HN: How do you organise your files and folders?

#119
post #84

Save files to my desktop. When it gets too messy, I throw everything in a folder called "Cleanup". Repeat. When it gets messy again, I rename the Cleanup folder to Cleanup_ , then throw that and everything else in a new folder called "Cleanup". I'm about 7 deep at the moment.

I have hard drives on shelves that are basically this. One thing I have been doing to reduce this is to have one folder that is for things like this and everything else is considered ephemeral. It sort of helps my to classify things as definitely don't want to lose (usually cloud to start so non issue) vs if I lost this it would be annoying, but not the end of the world.

I think in many ways I am a digital hoarder, files, bookmarks, HN up votes... the ephemeral strategy is so I have to actively decide if this is something that can't be lost, or if not, it must be ephemerally classified. These are my only two choices now

Post reply on HN