Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow custom date format #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thenbe
Copy link

@thenbe thenbe commented Sep 1, 2023

First, thanks for this tidy utility.

What

This change allows users to set a custom date format using an environment variable ROFI_SCREENSHOT_DATE_FORMAT.

Why?

  1. The current hardcoded format contains a space. File names without spaces are simpler to deal with in the terminal.
  2. This would allow setting more robust formats. For example, using a date format like +%Y-%m-%d-%H-%M-%S will cause the files to always have sane sorting, even when viewed through file trees that may not explicitly support sorting by date (eg. the file tree in your editor).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant