#+title: Ftag: organize files by giving them tags * What is Ftag I have struggled for a long time to properly manage my administrative documents. What I mean by /managing/ is: - being able to quickly find any file based on what is about (appartment, job...); - same based on date; - not having to duplicate files (e.g. my car insurance being in the directory =car= as well as =insurance=); - have a convenient way of packaging a few of them into an archive to send to someone. I createed Ftag in order to make the above easier. On top of that, I tried to build Ftag in a way that: - is command-line based; - is composable with standard tools (=grep=, =find=, ...); - allows encryption of documents; - allows synchronizing the data on multiple machine. * Installation #+begin_src console $ git clone https://tristanriehs.fr/git/ftag $ cd ftag $ make # make install #+end_src * Getting started First, initialize Ftag: #+begin_src console $ ftag init #+end_src Second, write all my documents' file names, which are in the =~/paperwork= directory, to a temporary file: #+begin_src console $ find ~/paperwork -type f -fprint0 /tmp/files #+end_src Third, give them to =ftag file add= using =xargs= to add them all to the Ftag database: #+begin_src console $ xargs -0 -a /tmp/files ftag file add -i #+end_src Fourth, create a bunch of tags and give files the proper tags (very tedious, but this is the only time we will have to do it manually for numerous files): #+begin_src console $ ftag tag add [...] $ ftag file tag [...] #+end_src