Earlier quoted context omitted.
You should try ripgrep
Why? It has pretty much the same functionality as ag and comparable speed.
Ask HN: How do you organise your files and folders?
101–110 of 182 posts
Re: Ask HN: How do you organise your files and folders?
#102shell darwinism. I toss files onto the Desktop, and have a cron that runs every night, deleting files older than 30 days. This knife-in-the-steering-wheel approach leaves me constantly scrambling to make sure my files are all properly curated into a more suitable hierarchy, of which is not interesting.
I wasn’t familiar with this concept so I searched around. Is it this? https://en.m.wikipedia.org/wiki/Gordon_Tullock#Tullock's_spi...
Re: Ask HN: How do you organise your files and folders?
#103Re: Ask HN: How do you organise your files and folders?
#104Save 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.
Re: Ask HN: How do you organise your files and folders?
#105Everything (files, PDFs, etc) that’s important goes into DEVONthink for future referencing. The app is excellent for finding files that relate and can do things like “I think this file goes into the folder ‘water bills’ based on other files in that folder. Move it?”. It’s also e2e encrypted and syncs to multiple cloud storages at once.
Everything that’s not in DEVONthink is considered temporary. I have hazel on my Mac automatically clean up old files in locations like desktop/downloads that are older than x and move it into the trash. If something is important I have to decide this early otherwise it gets thrown (but I could restore it for a while until hazel auto-cleans my trash)
Folders like Documents/, I leave as is. If apps want to write in there they can, but I don’t consider that location important. For more important app data I use iCloud and each app writes in their iCloud specific folder.
For nuggets that refuse to write anywhere else and only into a folder inside Documents, I have hazels sync feature replicate that specific folder automatically into a other location, like inside iCloud Drive.
Then if anything goes wrong I have an arq backup :)
Re: Ask HN: How do you organise your files and folders?
#106Re: Ask HN: How do you organise your files and folders?
#107* Don't let bare files exist at the "top level" (~), have a limited number of buckets * All new stuff goes into an inbox (pragmatically, ~/Downloads) and gets REGULARLY moved over
Putting all the stuff from Downloads into folders takes For me, the different buckets end up as either "browseable" or "searchable". For example, ~/ebooks is pretty sensibly organised into programming, fiction, etc., and all the files have human names, whereas I have a "statements/receipts/leases" bucket that's just a big bucket of junk that will hopefully pop up in search if I ever need it.
Re: Ask HN: How do you organise your files and folders?
#108 ~/
│── .cfg # bare git repo with my dotfiles
│── local # e.g. make install --prefix=~/local
│ - lib, bin, man
│── .trash # files to delete
│ # VARIOUS DIRECTORIES WITH REPOS
│── src # clone public open source repos, e.g. for contribution, research or debugging
│── stellar # personal repositories
│ - archive # hold tgz of repos to save space and indexing
│ - repo1
│ - repo2
│── apple # contains repos for a previous company
│── microsoft. # repos from another company , consulting project, charity effortRe: Ask HN: How do you organise your files and folders?
#109The SSD is partitioned to two, where system and program files are in one, and projects are in a separate partition.
A 1TB HDD attached has two partitions, one to contain photos (organized by year/event), music (genre/artist), etc.
The other partition contains temporary files. Browser downloads, torrent downloads, encoded media files, etc go on here. If I don't bother to move a file elsewhere, it's deleted after 30 days automatically.
A third HDD is for backups. I use idrive 5TB plan for cloud backups, but also use Windows backups just in case.
An external hard drive contains movies, all photos (I have a Nikon DSLR and shoot in raw), and a copy of veracrypt drives I manually backup to).
I occasionally mount a veracrypt drive (16GB) for private keys, financial documents, passport scans, bank statements, etc).