• Madrigal@lemmy.world
    link
    fedilink
    English
    arrow-up
    54
    ·
    9 days ago

    File names are for plebs.

    Serious people use document management systems and rich metadata to manage these things.

    /snoot

  • wiase@discuss.online
    link
    fedilink
    English
    arrow-up
    33
    arrow-down
    1
    ·
    9 days ago

    No, but seriously, half of my research time is wasted on renaming downloaded files. (Yeah, I know, there’s reference management software but people use different ones, so sharing papers or storing tgem for easy access is still dependent on properly named files.)

    • spiffmeister@aussie.zone
      link
      fedilink
      English
      arrow-up
      8
      ·
      9 days ago

      Why aren’t you just sending people a doi or a hyperlink if they want a paper? And if they have asked for a specific paper surely they can do the renaming?

    • sga@lemmings.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      7 days ago

      I have a script which fetches bib entries for pdfs, and then renames it to my prefered format (names of author (no more than 2) - name of paper).

      in case you are interested

      
      #!/usr/bin/env sh
      
      newnamefn(){
      	bib="$(pdf2bib "$1")"
      	name="$(echo "$bib" | grep "title = " | cut -d'{' -f 2 | cut -d'{' -f 1 )"
      	authors=$(echo "$bib" | grep "author = " | cut -d'{' -f 2 | cut -d'{' -f 1  | sed -z 's/\ and\ /\n/g' | head -n 2 | tr '\n' ' ')
      	echo "$authors-$name" | detox --inline
      }
      
      for i in "$@" ; do 
      	newname="$(newnamefn "$i")" 
      	mv "$i" "${i%/*}/$newname".pdf
      done
      
      

      detox --inline is just a utility which makes the file names shell friendly (removes special characters and spaces), but that is optional. Also, technically the newnamefn is what does all of the job, and below is just a loop to iterate on all files that are given as input like script file1 "file2" file3, where file2 had some special characters, so enclosed in "" quotes. you can also translate it to python, then you would not even require sed and grep (you can just get output in json-esque format). I have a small keybinding in my file manager, which renames all selected files, so I do not have to spend any amount of my mind

      you can make it work in any os (maybe use some llm for it), you just have to install pdf2bib

  • piconaut@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    26
    ·
    9 days ago

    It’s not my fault. All the servers hosting papers name them like this. Go complain to them. No seriously, go complain to them. This has annoyed me for quite some time.

  • Sanctus@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    9 days ago

    bitch_ass_transmission_bill_2025
    taxes_2025 fucking_student_loan_bullshit_2025

  • Gustephan@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    8 days ago

    Seriously, why would anybody bother putting their papers in a folder when the desktop is just right there?

      • Gustephan@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        7 days ago

        I’m one of them, haha. My archives are nice and organized, but anything related to a current project I’m working on either lives on the desktop or lives at ~, depending on which machine I’m using. Automated output type files go into a structure (like any kind of processed or cleaned data), but figures? References? Drafts? FFA on the desktop. For whatever reason I just cannot function with an organized workspace

  • kalpol@lemmy.ca
    link
    fedilink
    English
    arrow-up
    4
    ·
    8 days ago

    It changed my life. Mainly because of the automatic citation handling and bibliography generation in LyX.