Ljzd-PRO / Ljzd-PRO/KToolBox

2 Possible Additional Features

Open
#350 1 comment 2 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
579
Forks
26
PR merge metrics
No merged PRs in 30d

Description

DETAILS

These are two features that I had created/edited into an older version, but I recently updated to the latest version due to API issues and to have a more up to date version. The previous version I was using was ver.0.7.0. If possible I'd like for these features to be implemented into the current master version.

Feature 1

Feature to either create a new folder or rename the attachments folder using the same properties in Post that is used for post_dirname_format with the .env.

..
├─ content.txt
├─ external_links.txt
├─ {}.png (file)
├─ post.json (metadata)
├─ attachments  -> Rename this folder using Post properties (ex; {title})
     ├─ 1.png
     └─ 2.png

For example, in the .env having:

KTOOLBOX_JOB__POST_DIRNAME_FORMAT={id} - ({published})
KTOOLBOX_JOB__POST_STRUCTURE__ATTACHMENTS_????={title}   # <- New Feature
This would have the very top folder named with the creator ID
      ├─Then a subfolder named "ID - Published Date"
              ├─Then another subfolder  named "Title_of_the_post"
..
Creator_Name
├─123456 - (2025-09-12)
     ├── content.txt
     ├── external_links.txt
     ├── {}.png (file)
     ├── post.json (metadata)
     ├── Title_of_Post  -> Renamed using Post properties: {title}
             ├─ 1.png
             └─ 2.png

Feature 2

A change or addition to sequential_filename to have the original name be kept as a property OR a sequential indentation to the original name if enabled. This would allow to keep the original file name and have it be indented with the sequential order.

For example:
With the .env containing:

KTOOLBOX_JOB__SEQUENTIAL_FILENAME=True

Currently the files will be saved as:

             ├─ 1.png
             └─ 2.png

But with the change to the env
With the .env containing:

KTOOLBOX_JOB__FILENAME_FORMAT={}_{filename} # <- "filename" being the example property of the original filename

OR

KTOOLBOX_JOB__SEQUENTIAL_FILENAME_INDENTATION=True # <- Having this be true will only indent the original filename with the sequential order: 1_Filename.png, 2_Filename.png, etc;

They would be saved as:

             ├─ 1_OriginalFileName.png
             └─ 2_OriginalFileName.png
etc;

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.