Git Product home page Git Product logo

date2name's Issues

Extract EXIF time-stamp from JPEG image header

Add the ability to extract the EXIF data from images, and use that for the filename date on image files.

I noticed you use a bash script for your camera files, but it could be useful to have included in this script.

Installation

Could you provide instructions on the installation process?

Rename based on EXIF creation date

Excellent tool! I was wondering if you are planning on extending the rename functionality based on EXIF creation date (useful for media files).

update on pypi, README.org is not well supported

The project description of date2name (2024.3.10.1) on pypi doesn't resolve well.

The documentation page appears like a copy-paste of the README.org; however contrasting to for instance GitHub, pypi doesn't appear to support the orgmode syntax (yet). Maybe the a C-e h h to generate an .html were an approach more suitable here.

2024-03-11_date2name_pypi_01-800

2024-03-11_date2name_pypi_02-800

I got to know about the update because it is one of the pages update scanner checks this once a day for me.

-c [creation date] using current date

I am using date2name -c file.txt and getting the current date prepended (2020-06-10), instead of the creation date. The file's creation date is 2013-08-13, and its modification date is 2020-06-08. I wonder whether I am doing something wrong (!). Thanks for any tips.

Feature Request: Inherent Tags

Hello Novoid! I began using FileTags recently to replace an older sorting system I've been using for years. One of my favorite features in FileTags is the ability to use mutually exclusive tagging, which has made my life a whole lot easier.

That being said, I find myself seeking more efficiency in my workflow. I think an excellent way to achieve this would be through Inherent Tags, which would allow a single tag to imply other tags.

For example, suppose I wanted to tag a photograph with "dogs"; it could then be assumed that I also wanted to tag the photo with "animals". Another example would be "bacon", which could have the inherent tag "food". This would be an excellent way to apply multiple tags in half the effort, which is something important for my personal workflow.

I wouldn't claim to know how this could be implemented into your model, but I imagine it integrated in a similar way to how mutually exclusive tags currently exist. Perhaps inherent tags would be contained within brackets {dogs animals} or derive their meaning through a precursor (+dogs +animals) in the same line.

Naturally this only shaves off a few moments, but in the grand scheme it speeds things up considerably over long sessions. I'm curious to hear your thoughts either way, thanks for the tools!

pip install does no longer install the script

Previously pipx install date2name or pip install --user date2name installed the script for the user (in Linux) under ~/.local/bin. Seems the upgrade to poetry broke this since no script is installed anymore. For example pipx gives the following error indicating that no script or binary is installed:

No apps associated with package date2name or its dependencies. If you are attempting to install a library, pipx should not be used. Consider using pip or a similar tool instead.

Changing the the scripts section to use poetry solves this for me when installed locally:

-[project.scripts]
+[tool.poetry.scripts]
 date2name="date2name:main"

Write unit tests

This beautiful tool deserves a set of basic unit tests, testing the main functionality.
I don't have the expertise to define proper tests that check the correct handling of different timestamps. If you do think you do have a nice idea how this could be done, please drop me a line or a pull request.

note error retracting time stamp --withtime

date2name fails to revoke successfully the time stamp --withtime date2name prepends.

The version hosted on PyPi (May 9, 2018) does not understand (yet) --remove altogether when presenting a file in pattern of 2021-09-22_test.txt. The current version hosted on GitHub (commit 051254b, Sep 20, 2021) recognizes --remove but truncates 2021-09-21T13.59.59_test.txt only to 21T13.59.59_test.txt; the anticipated pattern would be test.txt.

For documentation, the attached .zip contains test_generator.org from which Makefile and testing test_date2name.py are tangled. To ease visual comparison in a file browser like Thunar while performing the tests, additional delays are set; this form of the .org thus is /not/ for inclusion in the in the project's Git history.

2021-09-22_date2name.zip

underscore after date sometimes appears and others not

file.txt becomes 2018-11-3_file.txt

whereas

file1518722398544 - Copy somename.jpeg ---> 2018-03-11 file1518722398544 - Copy somename.jpeg

with no underscore.

So, I was wondering, is this a feature? At what times should we expect the _ (underscore) to appear after the file name. Thanks.

--ctime uses current date on macOS

Here's an example of me trying to add the date to a standard text file:

$ stat -f "%SB" pipeline.sh
Oct 19 20:51:22 2018

$ date2name --ctime pipeline.sh
/pipeline.sh                              →  2019-04-01_pipeline.sh

It looks like date2name can't read the "birth time" correctly on macOS, as it's just prepending today's date to the file.

It does pick up the mtime

$ mv 2019-04-01_pipeline.sh pipeline.sh

$ date2name --mtime pipeline.sh
/pipeline.sh                              →  2018-10-19_pipeline.sh

…but this isn't great, as I want to rename lots of old files that I've modified after the creation date.

I did a little digging, and it looks like you can call os.stat(path).st_birthtime here to get the real created time. I'm not sure whether there's any cross-platform compatibility to worry about with st_birthtime though.

Thanks for the nice tool 😃.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.