Live data from Hacker News

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

news.ycombinator.com

171–180 of 182 posts

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

#171
post #125

Earlier quoted context omitted.

I was discussing browser tabs with others. I usually middle click a bunch of articles on HN, then go read all the tabs until there are none left. I close by browser often. But one of my friends, he keeps every tab forever. He always has everything at his fingertips, but a reboot or power loss is a crisis. So I discovered talking to other that MANY do that too. hundreds of tabs is not as uncommon as you would imagine.…

My Windows desktop will routinely be using over 20GB of RAM with just Firefox with a few tabs, not even a dozen, Discord, and Teams running. It's boggling to me that people can run hundreds of tabs, even though I have definitely seen it. Watching them fumble around trying to find the right tab is also hilarious. It's like a roulette game.

Also, having many different browser windows spread out over 10+ desktops makes it even harder to find the right tab among those 100+

Can make my blood start boiling

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

#172

Earlier quoted context omitted.

Are your venvs themselves the git repo too? Sounds like they're not, because you have a different project folder. What's your rationale for now putting the venv inside the project and ignoring it? À la node_modules. I've shifted to this after years of your method and like it. I do hate .gitignore expanding arbitrarily. But that's life.

I also put virtualenvs in a single centralized location (~/.virtualenvs), and manage their contents via Poetry. The main reason is that I sync my Git projects via Tresorit (“encrypted Dropbox”). This lets me switch computers without committing and pushing code that is not “ready”; makes it easier to sync all projects I work on to my backup server; and lets me copy around project files that I don’t want to commit (e.g…

Late reply: I used to do this. These days, I treat my projects like cattle, not pets.[1]

Using nix I made everything reproducible. So given a project name and branch name, everything is checked out (shallow checkout for big projects) and setup for me. If I'm working on another machine, just run "launch org/project " and profit.

There are edge cases: if I forget to push, I do remote in and do that. When I'm done with a branch, I make it a habit to purge that "instance" of the project. But first I have git go through the project and its submodules (if any) and ensure everything has been pushed and the repo not modified.

Note: my projects are database backed and have state etc. All of that is part of the setup script, per project. If your database is in a customized-state for development for a super specific scenario, then you're probably not automatically testing it and that's a code smell to me.

[1] https://medium.com/@Joachim8675309/devops-concepts-pets-vs-c...

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

#173

I use a system I created called: Shelf, Desktop, Cabinet. I use the 'shelf' folder to store all the files I use and reuse (usually, transform) at work. E.g. templates, stock photos, contracts, pieces of code etc. My actual projects are sub-folders inside the 'desktop' folder. Metaphorically speaking, they are 'sitting on the desktop'. Folders are named like this: 'client_name - project_name'. Whereas 'client' can be…

Similar to mine too. Though my 'Desktop' is my Google Drive folder, always sync to cloud. My real desktop though, is temporary place for pile of files of current working project of that day. I clean up this real desktop at the end of the day, put the files into their rightful place or delete it, just some old habit.

I have some kind of 'shelf' too, but your idea about taking element from soon-to-archive project and put it in a shelf is what I overlook. I'll give it a try!

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

#175

Does the total time searching for files exceed the time it would take to meticulously organize them? https://www.voidtools.com/

Search is definitely faster, but I think both compliment each other. I use Everything(and Listary) about 90% of time too. But I think there has to be some kind of rough hierarchy in place, to make the scope of search smaller and find the files quicker.

Also, sometimes you cannot find that one file you're looking for with search, or worse, cannot even remember what it's called, but with some light organization, you at least have some idea where that file resides.

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

#176
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 a simple batch script moving files to the necessary folder. Jpg,png,gif's will be gone to images (or docs/images) etc.

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

#177

I use a system I created called: Shelf, Desktop, Cabinet. I use the 'shelf' folder to store all the files I use and reuse (usually, transform) at work. E.g. templates, stock photos, contracts, pieces of code etc. My actual projects are sub-folders inside the 'desktop' folder. Metaphorically speaking, they are 'sitting on the desktop'. Folders are named like this: 'client_name - project_name'. Whereas 'client' can be…

Similar to mine too. Though my 'Desktop' is my Google Drive folder, always sync to cloud. My real desktop though, is temporary place for pile of files of current working project of that day. I clean up this real desktop at the end of the day, put the files into their rightful place or delete it, just some old habit. I have some kind of 'shelf' too, but your idea about taking element from soon-to-archive project and p…

It can be hard to separate things in the beginning because if you ask yourself: "What is important from this work that should be in shelf?", your answer would tend to be "everything". So, instead, you should be asking yourself "which elements can I be reusing in future work?" regardless of their importance.

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

#178

Photos: In folders named "YYYY/MM.N Descriptive event title" like "2019/05.1 Birdwalk with Stephanie". This really helps me find things later. Technical library: Academic Topic/subtopic/ then pdf title Music: I use beets now, which imports and organizes everything Household: Accounts folder, Mortgage folder, Appliances folder with subfolders for each appliance containing manuals, photos, and maintenance info. Systems…

>Photos: In folders named "YYYY/MM.N Descriptive event title" like "2019/05.1 Birdwalk with Stephanie". This really helps me find things later.

To find things later I use the tags feature of Shotwell

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

#179
Great question!

I have a pretty standard organization of my home folder, not interesting enough to describe except one mildly interesting method (very mildly interesting):

Everything that is not in a subfolder of my home folder but directly at the root, gets archived once a month to a path like /archive/2020/04. I keep the last rolling 3 years of archive. The rest gets automatically deleted, but is permanent backed up in a B2 bucket.

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

#180
I found the replies from three years ago useful: https://news.ycombinator.com/item?id=14604454

I use my email inbox as a task-queue, and try to move important info into personal notes (vimwiki), so I consider email alongside files and folders. I've learned to optimize my notes for information retrieval, rather than easy entry -- spelling out new acronyms, for example -- with the goal of making it searchable later. I think there was a HN post about personal note taking last month, re: productivity.

I'm heavily command-line focused and my preference for long-term storage is Markdown.

I use PDFs in only a few ways: - References, bulletins, bills, etc. through `less`. `:r!less foo.pdf` will load it into vim, and I tend to check those into vimwiki. Editing by hand allows individualized tags, and anonymization, which is important in my sector. - Articles via Mandeley (but this is overkill unless you want to cross-reference between new articles)

I distribute my home directory with rsync and backup regularly with restic. Both have sophisticated exclude rules, if you need 'em. restic observes the tar-compatible CACHEDIR.TAG droppings, which is easier to use than rsync's proprietary rule filters. For example, a properly-formed CACHEDIR.TAG in ~/.local/cache will direct tar and restic to skip that big directory.

To edit a remote file, slice out something important for later into notes, `vim scp://remote/path` is a neat trick. Only a few keystrokes to put it into vimwiki, or vice-versa (edit the remote file by inserting part of a locally-stored note). vimwiki is the only plugin required.

Many of my systems are shared between multiple human users. On home systems, some users are only interested in using file shares (not terminal access). I create groups Videos, Music, Photos, etc. Make each human user's respective directories stickied to those groups, and you can read (and, importantly, backup) without `sudo` intervening (see `sudo -n` if you find yourself toiling over this). On home and work systems, I use `stow` perhaps more than I should: I build with PREFIX=$HOME/.local/$toolname, then stow it into place with `cd ~/.local ; stow -S $toolname`. This allows custom builds of, say, `cmake` or `git` without system-wide changes. Oh, for Python 2 specifically, I install my own pip out of reach of anyone else.

`stow` is a symlink manager intended to lubricate different UNIX packages that are individually lodged under /usr/local/stow. It's written in Perl, so some systems (early stages of linux-from-scratch, for example) have xstow, which does not have Perl dependency. I see a lot of comments here about ~/Desktop and ~/Photos management, so here's one idea:

Create ~/Archive/2020-06/{Desktop,Photos} and, inside ~/Archive run `stow -S 2020-06`. This creates symlinks ~/Desktop -> ~/Archive/2020-06/Desktop and similar. When you feel like dumping weight, script up something like `mkdir 2020-07/{Desktop,Photos} ; stow -D 2020-06 ; stow -S 2020-07`. The timestamped organization is preserved for you without having to interact with timestamps.

PS> The screenshotting facility is underdeveloped for command-line workers. I'd rather be able to grab the local tmux scrollback buffer, throw it into the editor, possibly saving it to notes, even if just temporarily. An image would be unacceptable, so I overrode the screenshot key to grab tmux scrollback if in focus. This permits a specific search when I can't remember the branch where an obscure error occurred years ago.

PPS> You can script your own capabilities for `less` to open nonflat files. It automatically throws PDFs through pdftotext, but you may desire something like: - Pretty-print and colorize JSON - Read OpenOffice docs - Syntax highlighting - Parse SSL certificates

Post reply on HN