Hi there!
In would like to ask you for an advice, how to name each file to get the simple, consistent and structured system for file names.
e.g. filename_version_date
Looking forward for your advice.
Mike
Hi there!
In would like to ask you for an advice, how to name each file to get the simple, consistent and structured system for file names.
e.g. filename_version_date
Looking forward for your advice.
Mike
Hi Mike.
Sometimes I find it useful to use the Johnny.Decimal ID in the filename. In these situations:
File > Recent
list. I find it helpful to have this list show the JD ID of the file, so now itās less important what that file is named.There will be other situations; up to you to decide.
In this case, I find the JD ID is the most important thing and other details become less relevant. So hereās a real-life example:
D85.43.11 Area complete template.mindnode
Generally I use dates for static documents: my electricity bill, say. Itās April 2024ās bill and thatāll never change.
In this case the date is always first and in the ISO 8601 format.
2024-04-22 Red Energy electricity bill.pdf
Iāll generally rename the file because the file you get from your electricity providerās portal will be called something like ā¦ well, let me see what I got mailed recently ā¦ yep, 765670_A215.pdf
.
For me, the current version of a document is the one in the folder. It doesnāt need a date.
But then if I archive off a copy, Iāll create a subfolder archive
and the file goes in there with the date as above.
Some people ā hi, @LucyDecimal ā prefer the date in the file name at all times. Totally up to you.
Similarly I find manually adding version numbers to file names to be inconsistent and not worth the bother.
You either have a version control system, or you donāt. Iāve never seen manual version control ā that table at the front of a document at work where youāre supposed to update when you make a change ā Iāve never seen that work. Donāt bother.
The date, as described above, is sufficient and more reliable for tracking of older versions.
If you distribute a document, you may want to add the date to its file name for this reason. In this case, as this is for tracking and not sorting, Iād do this:
D85.43.11 Area complete template 2024-04-22.mindnode
Otherwise, if you just have a file with a name, just give it a nice sensible name; whatever makes sense to you.
I tend to find people strive for really short file names. Why? Computer words are free.[1] Be descriptive; help future you.
Unless youāre at work and Microsoft limits what you can type. Sucks to be you. ā©ļø
I spent some time thinking about this a few months back, when I was reorganizing some shared stuff.
Figured I could share in case it helps someone.
I came up with the following scheme: YYYY-MM-DD_DocumentTitle_Subtitle_Version_Metadata.FileExtension
.
As en example, if we had a board meeting today and the minutes of meeting was written tomorrow, the following files would (eventually) be generate:
2024-04-28_BoardMeeting_MoM.docx
2024-04-28_BoardMeeting_MoM_240429.pdf
2024-04-28_BoardMeeting_MoM_240429_Signed.pdf
These are essentially the same document, but in different forms.
You could put many MoM in a single folder and they would group automatically.
If the document is revised, each version is kept as a PDF and can be held separately. (We write the version number inside the document and use todays date as number)
We can easily find the version we need; the working document, or the scanned signed copy.
We always treat the original file (the editable) as dirty, meaning it can be either a draft or released version but you cannot really tell.
Hope that helps someone!
Hi @johnnydecimal ! Thanks for your insights, you helped me. I like the rules reagarding the version number and date in the filename.
Hi @osau ! Many thanks also for your example. I am curious more about the version name, whatās the āalgorithmā behind? Version is derived from the shorten format of the date? I usually add version number as e.g. ā2024-04-28_BoardMeeting_MoM_v01.pdfā
Exactly, I use YYMMDD
for versioning, but only for derivatives. (Export) Johnny explained this perfectly above. I rarely distribute the original file. Usually a PDF or other format suitable for viewing and archiving.
With respect to date formats, why would one not use:
YYYYMMDD 20240625
And instead use:
YYYY-MM-DD 2024-06-25
The 2nd option has more typing and the 1st option is equally easily found and sorted by a computer.
I have been using the first option for years and renaming all my files would be an incredible burden.
Also, if I were to use a version number at the end of the file, I would not use a v, I would just use a 2 digit but usually 3 digit code like the following (000- 999):
20240625_Project_A_Report_003.docx
For many people, I expect YYYY-MM-DD is more human-readable, but if the other works for you I canāt see any reason to change.
The first isnāt just a little more readable: itās much more readable. And thatās important.
Hereās the trick: donāt be typing these dates out by hand. Find yourself some software ā I use Alfredās āsnippetsā feature, but there are dozens of things that do this ā and set it up to insert the date for you.
For example, anywhere in my system I can type ;;jpdate
and Iāll get 2024-06-25
.
That weird string is because:
;;
so all of my snippets start with that. This way nothing āexpandsā unexpectedly.jpdate
stands for āJapanese date formatā, as when I set this up a decade+ ago Iād heard that this is the format that they use.Similarly ;;jptime
puts in a full time stamp.
Downside: doesnāt work on iOS.
I have been using the first option for years and renaming all my files would be an incredible burden.
If itās been working for you for ages, thatās great. But for new people, starting this habit today: use the dashes. Trust me.
Thank you for the replies.
Much appreciated and experience trumps many opinions about issues.
Would anybody have a script that is able to search every file wilth the date format yyyymmdd in the front of the file name and convert the first 8 characters to the date format yyyy-mm-dd so that I can deal with this issue?
I also use software that hates spaces in file names and folder names. ESRI arcgis.
Do I just use the underscore in file names and folders that the particular software would access?
So in general spaces are preferred over underscores?
If youāre used to yyyymmdd
Iām not saying itās wrong.
Because you will be able to change them with a script ā¦ problem is, how confident are you in that script? Do you really want to run it over all of your files? Thatād make me really nervous.
You could do it folder-by-folder I guess and eyeball the results. ChatGPT gives me a plausible looking bash script that uses regex.
But donāt just be running that! Do like a hundred backups, etc.
Do I just use the underscore in file names and folders that the particular software would access?
So in general spaces are preferred over underscores?
I use spaces everywhere. If you donāt primarily conduct your work at the CLI, spaces are the right choice. Computers handle spaces. Itās just another character.
If you do do a lot at the CLI, having to constantly\ escape\ every\ space
gets boring, so I understand why those people use underscores.
And if you have specific software that canāt handle spaces, then thereās probably not much you can do about that.
Hi all,
I work as an Engineering Information Management professional and Iām really enjoying learning the JD system.
Some tips for naming files appended to the JD number I can offer are:
File Type - File Description
So in my professional world examples would be:
SPECIFICATION - DELIVERABLE IDENTIFICATION.pdf
SPECIFICATION - REFERENCE DATA.xlsx
CLASS LIBRARY - EQUIPMENT.xlsx
CLASS LIBRARY - DOCUMENT.xlsx
In my personal world examples would be:
NAME - Driving License - UK.pdf
NAME - Driving License - NZ.pdf
NAME - Driving License - AU.pdf
UK2017-18 - Tax Return.pdf
UK2019-20 - Fluor P45.pdf
Everything lines up nicely when sorted alphabetically and you can spot a naming error a mile off.
Hope this helps,
Mark
Hi! Welcome.
This is great advice and speaks to something at the very core of Johnny.Decimal:
At the end of the day, it doesnāt really matter what you pick. Pick what works for you. Pick what you like the look of. Whatever tickles your neat bone.
When I had an IT job, I judged people if their file systems looked like this. And some did, believe me.
Job applications/
āāā Application for Bob Bobson.doc
āāā Jones, John - application.doc
āāā Susan Smith application.doc
āāā xavier aardvark- application.doc
Dashes! No dashes! Surname, Firstname. The other way. Neither way. AARRRHHGHGHHHH!
And people would say, but those were the file names I got sentā.
And I would say, I donāt care! Rename them, or what youāre showing me is that you have no attention to detail, and that I canāt trust you.
;;metoo
I use the ;; in TextExpander as there will be no other instance where Iāll ever, purposely, type ;;
I havenāt set up the auto date snippet yet in TEā¦ but now Iām really curious and will be doing some deep diving today ā and need to get TE syncād across all my devices. So far I only use it on my Mac, but having it do the same repeatable tasks on my iPad and iPhone would be, well, priceless!
Edit: my new date snippet works like a charm in TextExpander (on my Mac) but now Iām trying to figure out why the snippets donāt work on my iPad ā weird, cuz this is where I created it!
How does TE work on iOS, is it a separate keyboard?
HI Johnny
No its just an app ā one that I believe is available through the website, or via SetApp if you belong to that service.
Where StreamDeck and all its incarnations are primarily HW devices, TextExpander is a software app that you can, or should be able to, use across all your Mac devices. In the busiest time of our business cycle(s) I use it a lot for things like: email signatures; email contact enquiries; customer tips regarding payment methods, shipping methods, ordering instructions ā all of which are available by simply pressing ;;andwhatevermytwotofourdigit code is for what would normally be minutes of typing.
each week TE send me an email with how much time I have saved by using the app ā and it often shows literally hours of time saved!
So how does it work on iOS? Iām sitting on my iPad now ā how do I get a date out of TE? Do I have to switch to it?
Edit: I realise Iām perfectly capable of looking this up for myself.
truthfully I use it exclusively on my Mac these daysā¦ and not recently on my old iPad Pro ā¦ but just bought a new iPad Air and was looking to install it on that iPad but canāt get into my account. I was about to test it on the new iPad that has a working keyboard, cuz my old iPad Pro keyboard died in 2019, so havenāt used it much for any degree of typing.
Now Iām curious to find out if my new iPad/keyboard will work with TE.