docudigger icon indicating copy to clipboard operation
docudigger copied to clipboard

File name should be able to be changed by the user with template variables

Open Disane87 opened this issue 2 years ago • 1 comments

Currently the filename is fixed. This should be changed toi enable the user to set the filename by his needs.

Disane87 avatar Jul 12 '23 07:07 Disane87

We don't need any template library, we can achieve this by typescript only:

let stringWithVars = (str, obj) => str.replace(/\${(.*?)}/g, (x,g)=> obj[g]);

But this only applies when there is no computation or advanced formatting needed. Everything else needs a template engine like Handlebars or somethign else.

What do you think @fwartner?

Disane87 avatar Jul 12 '23 07:07 Disane87

Hi, @Disane87. I'm Dosu, and I'm helping the docudigger team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Enhancement proposal to customize filenames using template variables.
  • Current system uses fixed filenames; proposal aims for more flexibility.
  • Suggested a TypeScript solution for basic variable replacement.
  • Mentioned the need for a template engine like Handlebars for complex formatting.
  • Awaiting feedback from @fwartner on the proposed approach.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the docudigger repository. If so, you can keep the discussion open by commenting here.
  • If there is no further activity, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Apr 21 '25 16:04 dosubot[bot]