CLOSED: [2020-03-18 Wed 23:37] :PROPERTIES: :CREATED: [2020-03-18 Wed 23:16] :ID: 2020-03-18-demo-filetags-tagging :END: :LOGBOOK: - State "DONE" from "NEXT" [2020-03-18 Wed 23:37] :END: This is part of a multi-step demo: 1. [[id:2020-03-18-demo-filetags-intro][Demo introduction]] 2. [[id:2020-03-18-demo-date2name][Adding date- and/or time-stamps to files]] 3. [[id:2020-03-18-demo-appendfilename][Appending some text to file names]] 4. *Tagging files* 5. [[id:2020-03-18-demo-filetags-filter][Filter files according to their tags]] 6. [[id:2020-03-18-demo-filetags-mk-tagtrees][Generating TagTrees and navigating them]] 7. [[id:2020-03-18-demo-filetags-tag-tagtrees][File manipulation in filtered views or TagTrees]] 8. [[id:2020-03-18-demo-filetags-setup][Quick Setup Instructions]] ------------------------ Here you can see how keywords or tags are added to file names with the versatile [[https://github.com/novoid/filetags][filetags]] tool: #+BEGIN_HTML Screencast showing tagging using filetags #+END_HTML What is shown: 1. The *optional =.filetags= file* is shown. - If you want to use such a file, =filetags= is looking for it in the current folder and any parent folder. - A =.filetags= file contains one or more tags per line. These tags are then part of the =TAB=-completion. - If more than one tag is in a line, they are mutually exclusive. This means that when you tag a file with one of these tags, all others of the same line are removed (if found). See step 5 below. 2. The lunch menu *file gets tagged* with "public" using "filetags" from the "Send to" context menu. - You do not have to use tags that are defined in the optional =.filetags= file. You can "invent" any tag. - Tags do not contain spaces. Usually, it's a good idea to keep then in lower cases and use the plural form: "books" instead of "Book". 3. *Multiple image files gets tagged* with the tags "CustomerB" and "internal". - Selecting multiple files and tagging them offers a nice way of efficiently applying tags to many files at once. 4. The project report file gets tagged using the tags "draft", "confidential" and "customerB" via *tag abbreviation*. - Instead of typing "customerB", the tag abbreviation is used. Notice the numbers in the tag proposals which are based on the tags used in other files in the same folder. You can, for example, enter "42 foo bar" which applies the fourth tag, the second tag and the tags "foo" and "bar". 5. The project report gets tagged using "final" and "public", using *mutual exclusive tags*. - As explained above, mutual exclusive tags within the =.filetags= file makes it possible that the user is able to change a document from the status "draft" to the status "final" without un-tagging the "draft" tag. Not shown here: You can quickly remove tags from files by prepending =-= to the tag when entering tags: =-customberB= does remove the tag "customerB". Next: [[id:2020-03-18-demo-filetags-filter][Filter files according to their tags]]